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

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

Issue 2051113002: [stubs] ToNumberStub --> ToNumber builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix full-code on non-x64 platforms Created 4 years, 6 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/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3199 matching lines...) Expand 10 before | Expand all | Expand 10 after
3210 Label::kNear); 3210 Label::kNear);
3211 } else { 3211 } else {
3212 __ SmiSubConstant(rax, rax, Smi::FromInt(1), constraints, &done, 3212 __ SmiSubConstant(rax, rax, Smi::FromInt(1), constraints, &done,
3213 Label::kNear); 3213 Label::kNear);
3214 } 3214 }
3215 __ jmp(&stub_call, Label::kNear); 3215 __ jmp(&stub_call, Label::kNear);
3216 __ bind(&slow); 3216 __ bind(&slow);
3217 } 3217 }
3218 3218
3219 // Convert old value into a number. 3219 // Convert old value into a number.
3220 ToNumberStub convert_stub(isolate()); 3220 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
3221 __ CallStub(&convert_stub);
3222 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); 3221 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
3223 3222
3224 // Save result for postfix expressions. 3223 // Save result for postfix expressions.
3225 if (expr->is_postfix()) { 3224 if (expr->is_postfix()) {
3226 if (!context()->IsEffect()) { 3225 if (!context()->IsEffect()) {
3227 // Save the result on the stack. If we have a named or keyed property 3226 // Save the result on the stack. If we have a named or keyed property
3228 // we store the result under the receiver that is currently on top 3227 // we store the result under the receiver that is currently on top
3229 // of the stack. 3228 // of the stack.
3230 switch (assign_type) { 3229 switch (assign_type) {
3231 case VARIABLE: 3230 case VARIABLE:
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
3704 DCHECK_EQ( 3703 DCHECK_EQ(
3705 isolate->builtins()->OnStackReplacement()->entry(), 3704 isolate->builtins()->OnStackReplacement()->entry(),
3706 Assembler::target_address_at(call_target_address, unoptimized_code)); 3705 Assembler::target_address_at(call_target_address, unoptimized_code));
3707 return ON_STACK_REPLACEMENT; 3706 return ON_STACK_REPLACEMENT;
3708 } 3707 }
3709 3708
3710 } // namespace internal 3709 } // namespace internal
3711 } // namespace v8 3710 } // namespace v8
3712 3711
3713 #endif // V8_TARGET_ARCH_X64 3712 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/full-codegen/ppc/full-codegen-ppc.cc ('k') | src/full-codegen/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698