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: string | 6 pool type: string |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 eval('var x = 10;'); return x; | 12 eval('var x = 10;'); return x; |
13 " | 13 " |
14 frame size: 9 | 14 frame size: 9 |
15 parameter count: 1 | 15 parameter count: 1 |
16 bytecode array length: 67 | 16 bytecode array length: 69 |
17 bytecodes: [ | 17 bytecodes: [ |
18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 18 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
19 B(PushContext), R(0), | 19 B(PushContext), R(0), |
20 B(Ldar), R(this), | 20 B(Ldar), R(this), |
21 B(StaContextSlot), R(context), U8(4), | 21 B(StaContextSlot), R(context), U8(4), |
22 B(CreateMappedArguments), | 22 B(CreateMappedArguments), |
23 B(StaContextSlot), R(context), U8(5), | 23 B(StaContextSlot), R(context), U8(5), |
24 B(Ldar), R(new_target), | 24 B(Ldar), R(new_target), |
25 B(StaContextSlot), R(context), U8(6), | 25 B(StaContextSlot), R(context), U8(6), |
26 B(StackCheck), | 26 B(StackCheck), |
27 B(LdaConstant), U8(0), | 27 B(LdaConstant), U8(0), |
28 B(Star), R(3), | 28 B(Star), R(3), |
29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, | 29 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, |
30 B(LdaConstant), U8(1), | 30 B(LdaConstant), U8(1), |
31 B(Star), R(3), | 31 B(Star), R(3), |
32 B(Mov), R(1), R(4), | 32 B(Mov), R(1), R(4), |
33 B(Mov), R(3), R(5), | 33 B(Mov), R(3), R(5), |
34 B(Mov), R(closure), R(6), | 34 B(Mov), R(closure), R(6), |
35 B(LdaZero), | 35 B(LdaZero), |
36 B(Star), R(7), | 36 B(Star), R(7), |
37 B(LdaSmi8), U8(30), | 37 B(LdaSmi8), U8(30), |
38 B(Star), R(8), | 38 B(Star), R(8), |
39 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), | 39 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), |
40 B(Star), R(1), | 40 B(Star), R(1), |
41 B(Call), R(1), R(2), U8(2), U8(0), | 41 B(Call), R(1), R(2), U8(2), U8(0), |
42 B(LdaLookupSlot), U8(2), | 42 B(LdaLookupSlot), U8(2), |
| 43 B(PopContext), R(0), |
43 B(Return), | 44 B(Return), |
44 ] | 45 ] |
45 constant pool: [ | 46 constant pool: [ |
46 "eval", | 47 "eval", |
47 "var x = 10;", | 48 "var x = 10;", |
48 "x", | 49 "x", |
49 ] | 50 ] |
50 handlers: [ | 51 handlers: [ |
51 ] | 52 ] |
52 | 53 |
53 --- | 54 --- |
54 snippet: " | 55 snippet: " |
55 eval('var x = 10;'); return typeof x; | 56 eval('var x = 10;'); return typeof x; |
56 " | 57 " |
57 frame size: 9 | 58 frame size: 9 |
58 parameter count: 1 | 59 parameter count: 1 |
59 bytecode array length: 68 | 60 bytecode array length: 70 |
60 bytecodes: [ | 61 bytecodes: [ |
61 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 62 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
62 B(PushContext), R(0), | 63 B(PushContext), R(0), |
63 B(Ldar), R(this), | 64 B(Ldar), R(this), |
64 B(StaContextSlot), R(context), U8(4), | 65 B(StaContextSlot), R(context), U8(4), |
65 B(CreateMappedArguments), | 66 B(CreateMappedArguments), |
66 B(StaContextSlot), R(context), U8(5), | 67 B(StaContextSlot), R(context), U8(5), |
67 B(Ldar), R(new_target), | 68 B(Ldar), R(new_target), |
68 B(StaContextSlot), R(context), U8(6), | 69 B(StaContextSlot), R(context), U8(6), |
69 B(StackCheck), | 70 B(StackCheck), |
70 B(LdaConstant), U8(0), | 71 B(LdaConstant), U8(0), |
71 B(Star), R(3), | 72 B(Star), R(3), |
72 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, | 73 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, |
73 B(LdaConstant), U8(1), | 74 B(LdaConstant), U8(1), |
74 B(Star), R(3), | 75 B(Star), R(3), |
75 B(Mov), R(1), R(4), | 76 B(Mov), R(1), R(4), |
76 B(Mov), R(3), R(5), | 77 B(Mov), R(3), R(5), |
77 B(Mov), R(closure), R(6), | 78 B(Mov), R(closure), R(6), |
78 B(LdaZero), | 79 B(LdaZero), |
79 B(Star), R(7), | 80 B(Star), R(7), |
80 B(LdaSmi8), U8(30), | 81 B(LdaSmi8), U8(30), |
81 B(Star), R(8), | 82 B(Star), R(8), |
82 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), | 83 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), |
83 B(Star), R(1), | 84 B(Star), R(1), |
84 B(Call), R(1), R(2), U8(2), U8(0), | 85 B(Call), R(1), R(2), U8(2), U8(0), |
85 B(LdaLookupSlotInsideTypeof), U8(2), | 86 B(LdaLookupSlotInsideTypeof), U8(2), |
86 B(TypeOf), | 87 B(TypeOf), |
| 88 B(PopContext), R(0), |
87 B(Return), | 89 B(Return), |
88 ] | 90 ] |
89 constant pool: [ | 91 constant pool: [ |
90 "eval", | 92 "eval", |
91 "var x = 10;", | 93 "var x = 10;", |
92 "x", | 94 "x", |
93 ] | 95 ] |
94 handlers: [ | 96 handlers: [ |
95 ] | 97 ] |
96 | 98 |
97 --- | 99 --- |
98 snippet: " | 100 snippet: " |
99 x = 20; return eval(''); | 101 x = 20; return eval(''); |
100 " | 102 " |
101 frame size: 9 | 103 frame size: 9 |
102 parameter count: 1 | 104 parameter count: 1 |
103 bytecode array length: 69 | 105 bytecode array length: 71 |
104 bytecodes: [ | 106 bytecodes: [ |
105 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 107 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
106 B(PushContext), R(0), | 108 B(PushContext), R(0), |
107 B(Ldar), R(this), | 109 B(Ldar), R(this), |
108 B(StaContextSlot), R(context), U8(4), | 110 B(StaContextSlot), R(context), U8(4), |
109 B(CreateMappedArguments), | 111 B(CreateMappedArguments), |
110 B(StaContextSlot), R(context), U8(5), | 112 B(StaContextSlot), R(context), U8(5), |
111 B(Ldar), R(new_target), | 113 B(Ldar), R(new_target), |
112 B(StaContextSlot), R(context), U8(6), | 114 B(StaContextSlot), R(context), U8(6), |
113 B(StackCheck), | 115 B(StackCheck), |
114 B(LdaSmi8), U8(20), | 116 B(LdaSmi8), U8(20), |
115 B(StaLookupSlotSloppy), U8(0), | 117 B(StaLookupSlotSloppy), U8(0), |
116 B(LdaConstant), U8(1), | 118 B(LdaConstant), U8(1), |
117 B(Star), R(3), | 119 B(Star), R(3), |
118 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, | 120 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(3), U8(1), R(1)
, |
119 B(LdaConstant), U8(2), | 121 B(LdaConstant), U8(2), |
120 B(Star), R(3), | 122 B(Star), R(3), |
121 B(Mov), R(1), R(4), | 123 B(Mov), R(1), R(4), |
122 B(Mov), R(3), R(5), | 124 B(Mov), R(3), R(5), |
123 B(Mov), R(closure), R(6), | 125 B(Mov), R(closure), R(6), |
124 B(LdaZero), | 126 B(LdaZero), |
125 B(Star), R(7), | 127 B(Star), R(7), |
126 B(LdaSmi8), U8(30), | 128 B(LdaSmi8), U8(30), |
127 B(Star), R(8), | 129 B(Star), R(8), |
128 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), | 130 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(5), |
129 B(Star), R(1), | 131 B(Star), R(1), |
130 B(Call), R(1), R(2), U8(2), U8(0), | 132 B(Call), R(1), R(2), U8(2), U8(0), |
| 133 B(PopContext), R(0), |
131 B(Return), | 134 B(Return), |
132 ] | 135 ] |
133 constant pool: [ | 136 constant pool: [ |
134 "x", | 137 "x", |
135 "eval", | 138 "eval", |
136 "", | 139 "", |
137 ] | 140 ] |
138 handlers: [ | 141 handlers: [ |
139 ] | 142 ] |
140 | 143 |
OLD | NEW |