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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/arm64/full-codegen-arm64.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 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_ARM 7 #if V8_TARGET_ARCH_ARM
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 4658 matching lines...) Expand 10 before | Expand all | Expand 10 after
4669 4669
4670 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC); 4670 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC);
4671 __ b(vc, &done); 4671 __ b(vc, &done);
4672 // Call stub. Undo operation first. 4672 // Call stub. Undo operation first.
4673 __ sub(r0, r0, Operand(Smi::FromInt(count_value))); 4673 __ sub(r0, r0, Operand(Smi::FromInt(count_value)));
4674 __ jmp(&stub_call); 4674 __ jmp(&stub_call);
4675 __ bind(&slow); 4675 __ bind(&slow);
4676 } 4676 }
4677 ToNumberStub convert_stub(isolate()); 4677 ToNumberStub convert_stub(isolate());
4678 __ CallStub(&convert_stub); 4678 __ CallStub(&convert_stub);
4679 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG);
4679 4680
4680 // Save result for postfix expressions. 4681 // Save result for postfix expressions.
4681 if (expr->is_postfix()) { 4682 if (expr->is_postfix()) {
4682 if (!context()->IsEffect()) { 4683 if (!context()->IsEffect()) {
4683 // Save the result on the stack. If we have a named or keyed property 4684 // Save the result on the stack. If we have a named or keyed property
4684 // we store the result under the receiver that is currently on top 4685 // we store the result under the receiver that is currently on top
4685 // of the stack. 4686 // of the stack.
4686 switch (assign_type) { 4687 switch (assign_type) {
4687 case VARIABLE: 4688 case VARIABLE:
4688 __ push(r0); 4689 __ push(r0);
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
5299 5300
5300 DCHECK(interrupt_address == 5301 DCHECK(interrupt_address ==
5301 isolate->builtins()->OsrAfterStackCheck()->entry()); 5302 isolate->builtins()->OsrAfterStackCheck()->entry());
5302 return OSR_AFTER_STACK_CHECK; 5303 return OSR_AFTER_STACK_CHECK;
5303 } 5304 }
5304 5305
5305 5306
5306 } } // namespace v8::internal 5307 } } // namespace v8::internal
5307 5308
5308 #endif // V8_TARGET_ARCH_ARM 5309 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698