blob: 97e403e655b8435819a95fb75dd474a3ce404bcc [file] [log] [blame]
Ben Murdochda12d292016-06-02 14:46:10 +01001#
2# Autogenerated by generate-bytecode-expectations.
3#
4
5---
6pool type: mixed
7execute: no
8wrap: no
9top level: yes
10
11---
12snippet: "
13 var a = 1;
14"
15frame size: 4
16parameter count: 1
17bytecode array length: 31
18bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010019 B(LdaConstant), U8(0),
20 B(Star), R(1),
21 B(LdaZero),
22 B(Star), R(2),
23 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
24 /* 0 E> */ B(StackCheck),
25 /* 8 S> */ B(LdaConstant), U8(1),
26 B(Star), R(1),
27 B(LdaZero),
28 B(Star), R(2),
29 B(LdaSmi), U8(1),
30 B(Star), R(3),
31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
32 B(LdaUndefined),
33 /* 10 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010034]
35constant pool: [
36 InstanceType::FIXED_ARRAY_TYPE,
37 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
38]
39handlers: [
40]
41
42---
43snippet: "
44 function f() {}
45"
46frame size: 2
47parameter count: 1
48bytecode array length: 15
49bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010050 B(LdaConstant), U8(0),
51 B(Star), R(0),
52 B(LdaZero),
53 B(Star), R(1),
54 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(0), U8(2),
55 /* 0 E> */ B(StackCheck),
56 B(LdaUndefined),
57 /* 15 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010058]
59constant pool: [
60 InstanceType::FIXED_ARRAY_TYPE,
61]
62handlers: [
63]
64
65---
66snippet: "
67 var a = 1;
68 a=2;
69"
70frame size: 4
71parameter count: 1
72bytecode array length: 37
73bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +010074 B(LdaConstant), U8(0),
75 B(Star), R(1),
76 B(LdaZero),
77 B(Star), R(2),
78 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
79 /* 0 E> */ B(StackCheck),
80 /* 8 S> */ B(LdaConstant), U8(1),
81 B(Star), R(1),
82 B(LdaZero),
83 B(Star), R(2),
84 B(LdaSmi), U8(1),
85 B(Star), R(3),
86 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3),
87 /* 11 S> */ B(LdaSmi), U8(2),
88 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3),
89 B(Star), R(0),
90 /* 15 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +010091]
92constant pool: [
93 InstanceType::FIXED_ARRAY_TYPE,
94 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
95]
96handlers: [
97]
98
99---
100snippet: "
101 function f() {}
102 f();
103"
104frame size: 3
105parameter count: 1
Ben Murdoch61f157c2016-09-16 13:49:30 +0100106bytecode array length: 26
Ben Murdochda12d292016-06-02 14:46:10 +0100107bytecodes: [
Ben Murdochc5610432016-08-08 18:44:38 +0100108 B(LdaConstant), U8(0),
109 B(Star), R(1),
110 B(LdaZero),
111 B(Star), R(2),
112 B(CallRuntime), U16(Runtime::kDeclareGlobals), R(1), U8(2),
113 /* 0 E> */ B(StackCheck),
Ben Murdoch61f157c2016-09-16 13:49:30 +0100114 /* 16 S> */ B(LdrUndefined), R(2),
115 B(LdrGlobal), U8(1), R(1),
Ben Murdochc5610432016-08-08 18:44:38 +0100116 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3),
117 B(Star), R(0),
118 /* 20 S> */ B(Return),
Ben Murdochda12d292016-06-02 14:46:10 +0100119]
120constant pool: [
121 InstanceType::FIXED_ARRAY_TYPE,
Ben Murdochda12d292016-06-02 14:46:10 +0100122]
123handlers: [
124]
125