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

Side by Side Diff: src/ppc/full-codegen-ppc.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/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
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 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after
1234 // For proxies, no filtering is done. 1234 // For proxies, no filtering is done.
1235 // TODO(rossberg): What if only a prototype is a proxy? Not specified yet. 1235 // TODO(rossberg): What if only a prototype is a proxy? Not specified yet.
1236 __ CmpSmiLiteral(r5, Smi::FromInt(0), r0); 1236 __ CmpSmiLiteral(r5, Smi::FromInt(0), r0);
1237 __ beq(&update_each); 1237 __ beq(&update_each);
1238 1238
1239 // Convert the entry to a string or (smi) 0 if it isn't a property 1239 // Convert the entry to a string or (smi) 0 if it isn't a property
1240 // any more. If the property has been removed while iterating, we 1240 // any more. If the property has been removed while iterating, we
1241 // just skip it. 1241 // just skip it.
1242 __ Push(r4, r6); // Enumerable and current entry. 1242 __ Push(r4, r6); // Enumerable and current entry.
1243 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION); 1243 __ InvokeBuiltin(Builtins::FILTER_KEY, CALL_FUNCTION);
1244 PrepareForBailoutForId(stmt->FilterId(), TOS_REG);
1244 __ mr(r6, r3); 1245 __ mr(r6, r3);
1245 __ cmpi(r6, Operand::Zero()); 1246 __ cmpi(r6, Operand::Zero());
1246 __ beq(loop_statement.continue_label()); 1247 __ beq(loop_statement.continue_label());
1247 1248
1248 // Update the 'each' property or variable from the possibly filtered 1249 // Update the 'each' property or variable from the possibly filtered
1249 // entry in register r6. 1250 // entry in register r6.
1250 __ bind(&update_each); 1251 __ bind(&update_each);
1251 __ mr(result_register(), r6); 1252 __ mr(result_register(), r6);
1252 // Perform the assignment as if via '='. 1253 // Perform the assignment as if via '='.
1253 { 1254 {
(...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after
5472 return ON_STACK_REPLACEMENT; 5473 return ON_STACK_REPLACEMENT;
5473 } 5474 }
5474 5475
5475 DCHECK(interrupt_address == 5476 DCHECK(interrupt_address ==
5476 isolate->builtins()->OsrAfterStackCheck()->entry()); 5477 isolate->builtins()->OsrAfterStackCheck()->entry());
5477 return OSR_AFTER_STACK_CHECK; 5478 return OSR_AFTER_STACK_CHECK;
5478 } 5479 }
5479 } 5480 }
5480 } // namespace v8::internal 5481 } // namespace v8::internal
5481 #endif // V8_TARGET_ARCH_PPC 5482 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698