OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: mixed | |
7 execute: no | 6 execute: no |
8 wrap: no | 7 wrap: no |
9 top level: yes | 8 top level: yes |
10 | 9 |
11 --- | 10 --- |
12 snippet: " | 11 snippet: " |
13 var a = 1; | 12 var a = 1; |
14 " | 13 " |
15 frame size: 4 | 14 frame size: 4 |
16 parameter count: 1 | 15 parameter count: 1 |
(...skipping 10 matching lines...) Expand all Loading... |
27 B(Star), R(1), | 26 B(Star), R(1), |
28 B(LdaZero), | 27 B(LdaZero), |
29 B(Star), R(2), | 28 B(Star), R(2), |
30 B(LdaSmi), U8(1), | 29 B(LdaSmi), U8(1), |
31 B(Star), R(3), | 30 B(Star), R(3), |
32 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), | 31 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
33 B(LdaUndefined), | 32 B(LdaUndefined), |
34 /* 10 S> */ B(Return), | 33 /* 10 S> */ B(Return), |
35 ] | 34 ] |
36 constant pool: [ | 35 constant pool: [ |
37 InstanceType::FIXED_ARRAY_TYPE, | 36 FIXED_ARRAY_TYPE, |
38 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 37 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
39 ] | 38 ] |
40 handlers: [ | 39 handlers: [ |
41 ] | 40 ] |
42 | 41 |
43 --- | 42 --- |
44 snippet: " | 43 snippet: " |
45 function f() {} | 44 function f() {} |
46 " | 45 " |
47 frame size: 3 | 46 frame size: 3 |
48 parameter count: 1 | 47 parameter count: 1 |
49 bytecode array length: 18 | 48 bytecode array length: 18 |
50 bytecodes: [ | 49 bytecodes: [ |
51 B(LdaConstant), U8(0), | 50 B(LdaConstant), U8(0), |
52 B(Star), R(0), | 51 B(Star), R(0), |
53 B(LdaZero), | 52 B(LdaZero), |
54 B(Star), R(1), | 53 B(Star), R(1), |
55 B(Mov), R(closure), R(2), | 54 B(Mov), R(closure), R(2), |
56 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(0
), U8(3), | 55 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(0
), U8(3), |
57 /* 0 E> */ B(StackCheck), | 56 /* 0 E> */ B(StackCheck), |
58 B(LdaUndefined), | 57 B(LdaUndefined), |
59 /* 15 S> */ B(Return), | 58 /* 15 S> */ B(Return), |
60 ] | 59 ] |
61 constant pool: [ | 60 constant pool: [ |
62 InstanceType::FIXED_ARRAY_TYPE, | 61 FIXED_ARRAY_TYPE, |
63 ] | 62 ] |
64 handlers: [ | 63 handlers: [ |
65 ] | 64 ] |
66 | 65 |
67 --- | 66 --- |
68 snippet: " | 67 snippet: " |
69 var a = 1; | 68 var a = 1; |
70 a=2; | 69 a=2; |
71 " | 70 " |
72 frame size: 4 | 71 frame size: 4 |
(...skipping 13 matching lines...) Expand all Loading... |
86 B(Star), R(2), | 85 B(Star), R(2), |
87 B(LdaSmi), U8(1), | 86 B(LdaSmi), U8(1), |
88 B(Star), R(3), | 87 B(Star), R(3), |
89 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), | 88 B(CallRuntime), U16(Runtime::kInitializeVarGlobal), R(1), U8(3), |
90 /* 11 S> */ B(LdaSmi), U8(2), | 89 /* 11 S> */ B(LdaSmi), U8(2), |
91 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3), | 90 /* 12 E> */ B(StaGlobalSloppy), U8(1), U8(3), |
92 B(Star), R(0), | 91 B(Star), R(0), |
93 /* 15 S> */ B(Return), | 92 /* 15 S> */ B(Return), |
94 ] | 93 ] |
95 constant pool: [ | 94 constant pool: [ |
96 InstanceType::FIXED_ARRAY_TYPE, | 95 FIXED_ARRAY_TYPE, |
97 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 96 ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"], |
98 ] | 97 ] |
99 handlers: [ | 98 handlers: [ |
100 ] | 99 ] |
101 | 100 |
102 --- | 101 --- |
103 snippet: " | 102 snippet: " |
104 function f() {} | 103 function f() {} |
105 f(); | 104 f(); |
106 " | 105 " |
107 frame size: 4 | 106 frame size: 4 |
108 parameter count: 1 | 107 parameter count: 1 |
109 bytecode array length: 29 | 108 bytecode array length: 29 |
110 bytecodes: [ | 109 bytecodes: [ |
111 B(LdaConstant), U8(0), | 110 B(LdaConstant), U8(0), |
112 B(Star), R(1), | 111 B(Star), R(1), |
113 B(LdaZero), | 112 B(LdaZero), |
114 B(Star), R(2), | 113 B(Star), R(2), |
115 B(Mov), R(closure), R(3), | 114 B(Mov), R(closure), R(3), |
116 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), | 115 B(CallRuntime), U16(Runtime::kDeclareGlobalsForInterpreter), R(1
), U8(3), |
117 /* 0 E> */ B(StackCheck), | 116 /* 0 E> */ B(StackCheck), |
118 /* 16 S> */ B(LdrUndefined), R(2), | 117 /* 16 S> */ B(LdrUndefined), R(2), |
119 B(LdrGlobal), U8(1), R(1), | 118 B(LdrGlobal), U8(1), R(1), |
120 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3), | 119 /* 16 E> */ B(Call), R(1), R(2), U8(1), U8(3), |
121 B(Star), R(0), | 120 B(Star), R(0), |
122 /* 20 S> */ B(Return), | 121 /* 20 S> */ B(Return), |
123 ] | 122 ] |
124 constant pool: [ | 123 constant pool: [ |
125 InstanceType::FIXED_ARRAY_TYPE, | 124 FIXED_ARRAY_TYPE, |
126 ] | 125 ] |
127 handlers: [ | 126 handlers: [ |
128 ] | 127 ] |
129 | 128 |
OLD | NEW |