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