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

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

Issue 2272083003: Merge DeclarationScope::temps_ and Scope::ordered_variables_ into Scope::locals_ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fixes + add cornercase test + still failing cornercase test Created 4 years, 3 months 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
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 pool type: mixed 6 pool type: mixed
7 execute: yes 7 execute: yes
8 wrap: yes 8 wrap: yes
9 9
10 --- 10 ---
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 snippet: " 62 snippet: "
63 var x = 'potatoes'; 63 var x = 'potatoes';
64 for (var p in x) { return p; } 64 for (var p in x) { return p; }
65 " 65 "
66 frame size: 8 66 frame size: 8
67 parameter count: 1 67 parameter count: 1
68 bytecode array length: 44 68 bytecode array length: 44
69 bytecodes: [ 69 bytecodes: [
70 /* 30 E> */ B(StackCheck), 70 /* 30 E> */ B(StackCheck),
71 /* 42 S> */ B(LdaConstant), U8(0), 71 /* 42 S> */ B(LdaConstant), U8(0),
72 B(Star), R(1), 72 B(Star), R(0),
73 /* 68 S> */ B(JumpIfUndefined), U8(37), 73 /* 68 S> */ B(JumpIfUndefined), U8(37),
74 B(JumpIfNull), U8(35), 74 B(JumpIfNull), U8(35),
75 B(ToObject), R(3), 75 B(ToObject), R(3),
76 B(ForInPrepare), R(3), R(4), 76 B(ForInPrepare), R(3), R(4),
77 B(LdaZero), 77 B(LdaZero),
78 B(Star), R(7), 78 B(Star), R(7),
79 /* 63 S> */ B(ForInDone), R(7), R(6), 79 /* 63 S> */ B(ForInDone), R(7), R(6),
80 B(JumpIfTrue), U8(22), 80 B(JumpIfTrue), U8(22),
81 B(ForInNext), R(3), R(7), R(4), U8(1), 81 B(ForInNext), R(3), R(7), R(4), U8(1),
82 B(JumpIfUndefined), U8(9), 82 B(JumpIfUndefined), U8(9),
83 B(Star), R(0), 83 B(Star), R(1),
84 /* 54 E> */ B(StackCheck), 84 /* 54 E> */ B(StackCheck),
85 B(Star), R(2), 85 B(Star), R(2),
86 /* 73 S> */ B(Nop), 86 /* 73 S> */ B(Nop),
87 /* 85 S> */ B(Return), 87 /* 85 S> */ B(Return),
88 B(ForInStep), R(7), 88 B(ForInStep), R(7),
89 B(Star), R(7), 89 B(Star), R(7),
90 B(Jump), U8(-23), 90 B(Jump), U8(-23),
91 B(LdaUndefined), 91 B(LdaUndefined),
92 /* 85 S> */ B(Return), 92 /* 85 S> */ B(Return),
93 ] 93 ]
94 constant pool: [ 94 constant pool: [
95 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, 95 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
96 ] 96 ]
97 handlers: [ 97 handlers: [
98 ] 98 ]
99 99
100 --- 100 ---
101 snippet: " 101 snippet: "
102 var x = 0; 102 var x = 0;
103 for (var p in [1,2,3]) { x += p; } 103 for (var p in [1,2,3]) { x += p; }
104 " 104 "
105 frame size: 9 105 frame size: 9
106 parameter count: 1 106 parameter count: 1
107 bytecode array length: 55 107 bytecode array length: 55
108 bytecodes: [ 108 bytecodes: [
109 /* 30 E> */ B(StackCheck), 109 /* 30 E> */ B(StackCheck),
110 /* 42 S> */ B(LdaZero), 110 /* 42 S> */ B(LdaZero),
111 B(Star), R(1), 111 B(Star), R(0),
112 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3), 112 /* 59 S> */ B(CreateArrayLiteral), U8(0), U8(0), U8(3),
113 B(JumpIfUndefined), U8(45), 113 B(JumpIfUndefined), U8(45),
114 B(JumpIfNull), U8(43), 114 B(JumpIfNull), U8(43),
115 B(ToObject), R(3), 115 B(ToObject), R(3),
116 B(ForInPrepare), R(3), R(4), 116 B(ForInPrepare), R(3), R(4),
117 B(LdaZero), 117 B(LdaZero),
118 B(Star), R(7), 118 B(Star), R(7),
119 /* 54 S> */ B(ForInDone), R(7), R(6), 119 /* 54 S> */ B(ForInDone), R(7), R(6),
120 B(JumpIfTrue), U8(30), 120 B(JumpIfTrue), U8(30),
121 B(ForInNext), R(3), R(7), R(4), U8(2), 121 B(ForInNext), R(3), R(7), R(4), U8(2),
122 B(JumpIfUndefined), U8(17), 122 B(JumpIfUndefined), U8(17),
123 B(Star), R(0), 123 B(Star), R(1),
124 /* 45 E> */ B(StackCheck), 124 /* 45 E> */ B(StackCheck),
125 B(Star), R(2), 125 B(Star), R(2),
126 /* 70 S> */ B(Ldar), R(0), 126 /* 70 S> */ B(Ldar), R(1),
127 /* 75 E> */ B(Add), R(1), U8(1), 127 /* 75 E> */ B(Add), R(0), U8(1),
128 B(Mov), R(1), R(8), 128 B(Mov), R(0), R(8),
129 B(Star), R(1), 129 B(Star), R(0),
130 /* 72 E> */ B(ForInStep), R(7), 130 /* 72 E> */ B(ForInStep), R(7),
131 B(Star), R(7), 131 B(Star), R(7),
132 B(Jump), U8(-31), 132 B(Jump), U8(-31),
133 B(LdaUndefined), 133 B(LdaUndefined),
134 /* 80 S> */ B(Return), 134 /* 80 S> */ B(Return),
135 ] 135 ]
136 constant pool: [ 136 constant pool: [
137 InstanceType::FIXED_ARRAY_TYPE, 137 InstanceType::FIXED_ARRAY_TYPE,
138 ] 138 ]
139 handlers: [ 139 handlers: [
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 B(LdaUndefined), 232 B(LdaUndefined),
233 /* 98 S> */ B(Return), 233 /* 98 S> */ B(Return),
234 ] 234 ]
235 constant pool: [ 235 constant pool: [
236 InstanceType::FIXED_ARRAY_TYPE, 236 InstanceType::FIXED_ARRAY_TYPE,
237 InstanceType::FIXED_ARRAY_TYPE, 237 InstanceType::FIXED_ARRAY_TYPE,
238 ] 238 ]
239 handlers: [ 239 handlers: [
240 ] 240 ]
241 241
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698