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