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

Side by Side Diff: src/x87/full-codegen-x87.cc

Issue 1086083002: [turbofan] Fix ForInStatement that deopts during filter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Ported to all architectures. Created 5 years, 8 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
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1192 DCHECK(Smi::FromInt(0) == 0); 1192 DCHECK(Smi::FromInt(0) == 0);
1193 __ test(edx, edx); 1193 __ test(edx, edx);
1194 __ j(zero, &update_each); 1194 __ j(zero, &update_each);
1195 1195
1196 // Convert the entry to a string or null if it isn't a property 1196 // Convert the entry to a string or null if it isn't a property
1197 // anymore. If the property has been removed while iterating, we 1197 // anymore. If the property has been removed while iterating, we
1198 // just skip it. 1198 // just skip it.
1199 __ push(ecx); // Enumerable. 1199 __ push(ecx); // Enumerable.
1200 __ push(ebx); // Current entry. 1200 __ push(ebx); // Current entry.
1201 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION); 1201 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION);
1202 PrepareForBailoutForId(stmt->FilterId(), TOS_REG);
1202 __ test(eax, eax); 1203 __ test(eax, eax);
1203 __ j(equal, loop_statement.continue_label()); 1204 __ j(equal, loop_statement.continue_label());
1204 __ mov(ebx, eax); 1205 __ mov(ebx, eax);
1205 1206
1206 // Update the 'each' property or variable from the possibly filtered 1207 // Update the 'each' property or variable from the possibly filtered
1207 // entry in register ebx. 1208 // entry in register ebx.
1208 __ bind(&update_each); 1209 __ bind(&update_each);
1209 __ mov(result_register(), ebx); 1210 __ mov(result_register(), ebx);
1210 // Perform the assignment as if via '='. 1211 // Perform the assignment as if via '='.
1211 { EffectContext context(this); 1212 { EffectContext context(this);
(...skipping 4170 matching lines...) Expand 10 before | Expand all | Expand 10 after
5382 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5383 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5383 Assembler::target_address_at(call_target_address, 5384 Assembler::target_address_at(call_target_address,
5384 unoptimized_code)); 5385 unoptimized_code));
5385 return OSR_AFTER_STACK_CHECK; 5386 return OSR_AFTER_STACK_CHECK;
5386 } 5387 }
5387 5388
5388 5389
5389 } } // namespace v8::internal 5390 } } // namespace v8::internal
5390 5391
5391 #endif // V8_TARGET_ARCH_X87 5392 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698