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

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

Issue 841443004: [turbofan] Allow deoptimization for JSToNumber operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 11 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 4712 matching lines...) Expand 10 before | Expand all | Expand 10 after
4723 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value)); 4723 __ LoadSmiLiteral(scratch1, Smi::FromInt(count_value));
4724 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0); 4724 __ AddAndCheckForOverflow(r3, r3, scratch1, scratch2, r0);
4725 __ BranchOnNoOverflow(&done); 4725 __ BranchOnNoOverflow(&done);
4726 // Call stub. Undo operation first. 4726 // Call stub. Undo operation first.
4727 __ sub(r3, r3, scratch1); 4727 __ sub(r3, r3, scratch1);
4728 __ b(&stub_call); 4728 __ b(&stub_call);
4729 __ bind(&slow); 4729 __ bind(&slow);
4730 } 4730 }
4731 ToNumberStub convert_stub(isolate()); 4731 ToNumberStub convert_stub(isolate());
4732 __ CallStub(&convert_stub); 4732 __ CallStub(&convert_stub);
4733 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG);
4733 4734
4734 // Save result for postfix expressions. 4735 // Save result for postfix expressions.
4735 if (expr->is_postfix()) { 4736 if (expr->is_postfix()) {
4736 if (!context()->IsEffect()) { 4737 if (!context()->IsEffect()) {
4737 // Save the result on the stack. If we have a named or keyed property 4738 // Save the result on the stack. If we have a named or keyed property
4738 // we store the result under the receiver that is currently on top 4739 // we store the result under the receiver that is currently on top
4739 // of the stack. 4740 // of the stack.
4740 switch (assign_type) { 4741 switch (assign_type) {
4741 case VARIABLE: 4742 case VARIABLE:
4742 __ push(r3); 4743 __ push(r3);
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
5281 return ON_STACK_REPLACEMENT; 5282 return ON_STACK_REPLACEMENT;
5282 } 5283 }
5283 5284
5284 DCHECK(interrupt_address == 5285 DCHECK(interrupt_address ==
5285 isolate->builtins()->OsrAfterStackCheck()->entry()); 5286 isolate->builtins()->OsrAfterStackCheck()->entry());
5286 return OSR_AFTER_STACK_CHECK; 5287 return OSR_AFTER_STACK_CHECK;
5287 } 5288 }
5288 } 5289 }
5289 } // namespace v8::internal 5290 } // namespace v8::internal
5290 #endif // V8_TARGET_ARCH_PPC 5291 #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