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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64 5 #if V8_TARGET_ARCH_ARM64
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 3231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3242 3242
3243 __ Adds(x0, x0, Smi::FromInt(count_value)); 3243 __ Adds(x0, x0, Smi::FromInt(count_value));
3244 __ B(vc, &done); 3244 __ B(vc, &done);
3245 // Call stub. Undo operation first. 3245 // Call stub. Undo operation first.
3246 __ Sub(x0, x0, Smi::FromInt(count_value)); 3246 __ Sub(x0, x0, Smi::FromInt(count_value));
3247 __ B(&stub_call); 3247 __ B(&stub_call);
3248 __ Bind(&slow); 3248 __ Bind(&slow);
3249 } 3249 }
3250 3250
3251 // Convert old value into a number. 3251 // Convert old value into a number.
3252 ToNumberStub convert_stub(isolate()); 3252 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
3253 __ CallStub(&convert_stub);
3254 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); 3253 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
3255 3254
3256 // Save result for postfix expressions. 3255 // Save result for postfix expressions.
3257 if (expr->is_postfix()) { 3256 if (expr->is_postfix()) {
3258 if (!context()->IsEffect()) { 3257 if (!context()->IsEffect()) {
3259 // Save the result on the stack. If we have a named or keyed property 3258 // Save the result on the stack. If we have a named or keyed property
3260 // we store the result under the receiver that is currently on top 3259 // we store the result under the receiver that is currently on top
3261 // of the stack. 3260 // of the stack.
3262 switch (assign_type) { 3261 switch (assign_type) {
3263 case VARIABLE: 3262 case VARIABLE:
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
3892 } 3891 }
3893 3892
3894 return INTERRUPT; 3893 return INTERRUPT;
3895 } 3894 }
3896 3895
3897 3896
3898 } // namespace internal 3897 } // namespace internal
3899 } // namespace v8 3898 } // namespace v8
3900 3899
3901 #endif // V8_TARGET_ARCH_ARM64 3900 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698