Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/LookupSlot.golden

Issue 2487483004: Only treat possible eval calls going through 'with' as special. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Eval.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 wrap: yes 6 wrap: yes
7 test function name: f 7 test function name: f
8 8
9 --- 9 ---
10 snippet: " 10 snippet: "
11 eval('var x = 10;'); return x; 11 eval('var x = 10;'); return x;
12 " 12 "
13 frame size: 10 13 frame size: 10
14 parameter count: 1 14 parameter count: 1
15 bytecode array length: 67 15 bytecode array length: 66
16 bytecodes: [ 16 bytecodes: [
17 B(CreateFunctionContext), U8(3), 17 B(CreateFunctionContext), U8(3),
18 B(PushContext), R(0), 18 B(PushContext), R(0),
19 B(Ldar), R(this), 19 B(Ldar), R(this),
20 B(StaCurrentContextSlot), U8(4), 20 B(StaCurrentContextSlot), U8(4),
21 B(CreateMappedArguments), 21 B(CreateMappedArguments),
22 B(StaCurrentContextSlot), U8(6), 22 B(StaCurrentContextSlot), U8(6),
23 B(Ldar), R(new_target), 23 B(Ldar), R(new_target),
24 B(StaCurrentContextSlot), U8(5), 24 B(StaCurrentContextSlot), U8(5),
25 /* 10 E> */ B(StackCheck), 25 /* 10 E> */ B(StackCheck),
26 /* 14 S> */ B(LdaConstant), U8(0), 26 /* 14 S> */ B(LdaUndefined),
27 B(Star), R(4), 27 B(Star), R(2),
28 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4 ), U8(1), R(1), 28 /* 14 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
29 B(Star), R(1),
29 B(LdaConstant), U8(1), 30 B(LdaConstant), U8(1),
30 B(Star), R(3), 31 B(Star), R(3),
31 B(LdaZero), 32 B(LdaZero),
32 B(Star), R(7), 33 B(Star), R(7),
33 B(LdaSmi), U8(10), 34 B(LdaSmi), U8(10),
34 B(Star), R(8), 35 B(Star), R(8),
35 B(LdaSmi), U8(14), 36 B(LdaSmi), U8(14),
36 B(Star), R(9), 37 B(Star), R(9),
37 B(Mov), R(1), R(4), 38 B(Mov), R(1), R(4),
38 B(Mov), R(3), R(5), 39 B(Mov), R(3), R(5),
(...skipping 11 matching lines...) Expand all
50 ] 51 ]
51 handlers: [ 52 handlers: [
52 ] 53 ]
53 54
54 --- 55 ---
55 snippet: " 56 snippet: "
56 eval('var x = 10;'); return typeof x; 57 eval('var x = 10;'); return typeof x;
57 " 58 "
58 frame size: 10 59 frame size: 10
59 parameter count: 1 60 parameter count: 1
60 bytecode array length: 68 61 bytecode array length: 67
61 bytecodes: [ 62 bytecodes: [
62 B(CreateFunctionContext), U8(3), 63 B(CreateFunctionContext), U8(3),
63 B(PushContext), R(0), 64 B(PushContext), R(0),
64 B(Ldar), R(this), 65 B(Ldar), R(this),
65 B(StaCurrentContextSlot), U8(4), 66 B(StaCurrentContextSlot), U8(4),
66 B(CreateMappedArguments), 67 B(CreateMappedArguments),
67 B(StaCurrentContextSlot), U8(6), 68 B(StaCurrentContextSlot), U8(6),
68 B(Ldar), R(new_target), 69 B(Ldar), R(new_target),
69 B(StaCurrentContextSlot), U8(5), 70 B(StaCurrentContextSlot), U8(5),
70 /* 10 E> */ B(StackCheck), 71 /* 10 E> */ B(StackCheck),
71 /* 14 S> */ B(LdaConstant), U8(0), 72 /* 14 S> */ B(LdaUndefined),
72 B(Star), R(4), 73 B(Star), R(2),
73 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4 ), U8(1), R(1), 74 /* 14 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
75 B(Star), R(1),
74 B(LdaConstant), U8(1), 76 B(LdaConstant), U8(1),
75 B(Star), R(3), 77 B(Star), R(3),
76 B(LdaZero), 78 B(LdaZero),
77 B(Star), R(7), 79 B(Star), R(7),
78 B(LdaSmi), U8(10), 80 B(LdaSmi), U8(10),
79 B(Star), R(8), 81 B(Star), R(8),
80 B(LdaSmi), U8(14), 82 B(LdaSmi), U8(14),
81 B(Star), R(9), 83 B(Star), R(9),
82 B(Mov), R(1), R(4), 84 B(Mov), R(1), R(4),
83 B(Mov), R(3), R(5), 85 B(Mov), R(3), R(5),
(...skipping 12 matching lines...) Expand all
96 ] 98 ]
97 handlers: [ 99 handlers: [
98 ] 100 ]
99 101
100 --- 102 ---
101 snippet: " 103 snippet: "
102 x = 20; return eval(''); 104 x = 20; return eval('');
103 " 105 "
104 frame size: 10 106 frame size: 10
105 parameter count: 1 107 parameter count: 1
106 bytecode array length: 67 108 bytecode array length: 66
107 bytecodes: [ 109 bytecodes: [
108 B(CreateFunctionContext), U8(3), 110 B(CreateFunctionContext), U8(3),
109 B(PushContext), R(0), 111 B(PushContext), R(0),
110 B(Ldar), R(this), 112 B(Ldar), R(this),
111 B(StaCurrentContextSlot), U8(4), 113 B(StaCurrentContextSlot), U8(4),
112 B(CreateMappedArguments), 114 B(CreateMappedArguments),
113 B(StaCurrentContextSlot), U8(6), 115 B(StaCurrentContextSlot), U8(6),
114 B(Ldar), R(new_target), 116 B(Ldar), R(new_target),
115 B(StaCurrentContextSlot), U8(5), 117 B(StaCurrentContextSlot), U8(5),
116 /* 10 E> */ B(StackCheck), 118 /* 10 E> */ B(StackCheck),
117 /* 14 S> */ B(LdaSmi), U8(20), 119 /* 14 S> */ B(LdaSmi), U8(20),
118 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), 120 /* 16 E> */ B(StaLookupSlotSloppy), U8(0),
119 /* 22 S> */ B(LdaConstant), U8(1), 121 /* 22 S> */ B(LdaUndefined),
120 B(Star), R(4), 122 B(Star), R(2),
121 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4 ), U8(1), R(1), 123 /* 29 E> */ B(LdaLookupGlobalSlot), U8(1), U8(4), U8(1),
124 B(Star), R(1),
122 B(LdaConstant), U8(2), 125 B(LdaConstant), U8(2),
123 B(Star), R(3), 126 B(Star), R(3),
124 B(LdaZero), 127 B(LdaZero),
125 B(Star), R(7), 128 B(Star), R(7),
126 B(LdaSmi), U8(10), 129 B(LdaSmi), U8(10),
127 B(Star), R(8), 130 B(Star), R(8),
128 B(LdaSmi), U8(29), 131 B(LdaSmi), U8(29),
129 B(Star), R(9), 132 B(Star), R(9),
130 B(Mov), R(1), R(4), 133 B(Mov), R(1), R(4),
131 B(Mov), R(3), R(5), 134 B(Mov), R(3), R(5),
(...skipping 15 matching lines...) Expand all
147 snippet: " 150 snippet: "
148 var x = 20; 151 var x = 20;
149 f = function(){ 152 f = function(){
150 eval('var x = 10'); 153 eval('var x = 10');
151 return x; 154 return x;
152 } 155 }
153 f(); 156 f();
154 " 157 "
155 frame size: 10 158 frame size: 10
156 parameter count: 1 159 parameter count: 1
157 bytecode array length: 67 160 bytecode array length: 66
158 bytecodes: [ 161 bytecodes: [
159 B(CreateFunctionContext), U8(3), 162 B(CreateFunctionContext), U8(3),
160 B(PushContext), R(0), 163 B(PushContext), R(0),
161 B(Ldar), R(this), 164 B(Ldar), R(this),
162 B(StaCurrentContextSlot), U8(4), 165 B(StaCurrentContextSlot), U8(4),
163 B(CreateMappedArguments), 166 B(CreateMappedArguments),
164 B(StaCurrentContextSlot), U8(6), 167 B(StaCurrentContextSlot), U8(6),
165 B(Ldar), R(new_target), 168 B(Ldar), R(new_target),
166 B(StaCurrentContextSlot), U8(5), 169 B(StaCurrentContextSlot), U8(5),
167 /* 38 E> */ B(StackCheck), 170 /* 38 E> */ B(StackCheck),
168 /* 44 S> */ B(LdaConstant), U8(0), 171 /* 44 S> */ B(LdaUndefined),
169 B(Star), R(4), 172 B(Star), R(2),
170 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4 ), U8(1), R(1), 173 /* 44 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
174 B(Star), R(1),
171 B(LdaConstant), U8(1), 175 B(LdaConstant), U8(1),
172 B(Star), R(3), 176 B(Star), R(3),
173 B(LdaZero), 177 B(LdaZero),
174 B(Star), R(7), 178 B(Star), R(7),
175 B(LdaSmi), U8(38), 179 B(LdaSmi), U8(38),
176 B(Star), R(8), 180 B(Star), R(8),
177 B(LdaSmi), U8(44), 181 B(LdaSmi), U8(44),
178 B(Star), R(9), 182 B(Star), R(9),
179 B(Mov), R(1), R(4), 183 B(Mov), R(1), R(4),
180 B(Mov), R(3), R(5), 184 B(Mov), R(3), R(5),
(...skipping 16 matching lines...) Expand all
197 snippet: " 201 snippet: "
198 x = 20; 202 x = 20;
199 f = function(){ 203 f = function(){
200 eval('var x = 10'); 204 eval('var x = 10');
201 return x; 205 return x;
202 } 206 }
203 f(); 207 f();
204 " 208 "
205 frame size: 10 209 frame size: 10
206 parameter count: 1 210 parameter count: 1
207 bytecode array length: 67 211 bytecode array length: 66
208 bytecodes: [ 212 bytecodes: [
209 B(CreateFunctionContext), U8(3), 213 B(CreateFunctionContext), U8(3),
210 B(PushContext), R(0), 214 B(PushContext), R(0),
211 B(Ldar), R(this), 215 B(Ldar), R(this),
212 B(StaCurrentContextSlot), U8(4), 216 B(StaCurrentContextSlot), U8(4),
213 B(CreateMappedArguments), 217 B(CreateMappedArguments),
214 B(StaCurrentContextSlot), U8(6), 218 B(StaCurrentContextSlot), U8(6),
215 B(Ldar), R(new_target), 219 B(Ldar), R(new_target),
216 B(StaCurrentContextSlot), U8(5), 220 B(StaCurrentContextSlot), U8(5),
217 /* 34 E> */ B(StackCheck), 221 /* 34 E> */ B(StackCheck),
218 /* 40 S> */ B(LdaConstant), U8(0), 222 /* 40 S> */ B(LdaUndefined),
219 B(Star), R(4), 223 B(Star), R(2),
220 B(CallRuntimeForPair), U16(Runtime::kLoadLookupSlotForCall), R(4 ), U8(1), R(1), 224 /* 40 E> */ B(LdaLookupGlobalSlot), U8(0), U8(4), U8(1),
225 B(Star), R(1),
221 B(LdaConstant), U8(1), 226 B(LdaConstant), U8(1),
222 B(Star), R(3), 227 B(Star), R(3),
223 B(LdaZero), 228 B(LdaZero),
224 B(Star), R(7), 229 B(Star), R(7),
225 B(LdaSmi), U8(34), 230 B(LdaSmi), U8(34),
226 B(Star), R(8), 231 B(Star), R(8),
227 B(LdaSmi), U8(40), 232 B(LdaSmi), U8(40),
228 B(Star), R(9), 233 B(Star), R(9),
229 B(Mov), R(1), R(4), 234 B(Mov), R(1), R(4),
230 B(Mov), R(3), R(5), 235 B(Mov), R(3), R(5),
231 B(Mov), R(closure), R(6), 236 B(Mov), R(closure), R(6),
232 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6), 237 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4), U8(6),
233 B(Star), R(1), 238 B(Star), R(1),
234 /* 40 E> */ B(Call), R(1), R(2), U8(2), U8(2), 239 /* 40 E> */ B(Call), R(1), R(2), U8(2), U8(2),
235 /* 62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(6), U8(1), 240 /* 62 S> */ B(LdaLookupGlobalSlot), U8(2), U8(6), U8(1),
236 /* 72 S> */ B(Return), 241 /* 72 S> */ B(Return),
237 ] 242 ]
238 constant pool: [ 243 constant pool: [
239 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], 244 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"],
240 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], 245 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"],
241 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 246 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
242 ] 247 ]
243 handlers: [ 248 handlers: [
244 ] 249 ]
245 250
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Eval.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698