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

Side by Side Diff: src/x64/full-codegen-x64.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/ppc/full-codegen-ppc.cc ('k') | src/x87/full-codegen-x87.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_X64 7 #if V8_TARGET_ARCH_X64
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 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after
4629 __ SmiAddConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); 4629 __ SmiAddConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear);
4630 } else { 4630 } else {
4631 __ SmiSubConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear); 4631 __ SmiSubConstant(rax, rax, Smi::FromInt(1), mode, &done, Label::kNear);
4632 } 4632 }
4633 __ jmp(&stub_call, Label::kNear); 4633 __ jmp(&stub_call, Label::kNear);
4634 __ bind(&slow); 4634 __ bind(&slow);
4635 } 4635 }
4636 4636
4637 ToNumberStub convert_stub(isolate()); 4637 ToNumberStub convert_stub(isolate());
4638 __ CallStub(&convert_stub); 4638 __ CallStub(&convert_stub);
4639 PrepareForBailoutForId(expr->ToNumberId(), TOS_REG);
4639 4640
4640 // Save result for postfix expressions. 4641 // Save result for postfix expressions.
4641 if (expr->is_postfix()) { 4642 if (expr->is_postfix()) {
4642 if (!context()->IsEffect()) { 4643 if (!context()->IsEffect()) {
4643 // Save the result on the stack. If we have a named or keyed property 4644 // Save the result on the stack. If we have a named or keyed property
4644 // we store the result under the receiver that is currently on top 4645 // we store the result under the receiver that is currently on top
4645 // of the stack. 4646 // of the stack.
4646 switch (assign_type) { 4647 switch (assign_type) {
4647 case VARIABLE: 4648 case VARIABLE:
4648 __ Push(rax); 4649 __ Push(rax);
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
5193 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5194 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5194 Assembler::target_address_at(call_target_address, 5195 Assembler::target_address_at(call_target_address,
5195 unoptimized_code)); 5196 unoptimized_code));
5196 return OSR_AFTER_STACK_CHECK; 5197 return OSR_AFTER_STACK_CHECK;
5197 } 5198 }
5198 5199
5199 5200
5200 } } // namespace v8::internal 5201 } } // namespace v8::internal
5201 5202
5202 #endif // V8_TARGET_ARCH_X64 5203 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698