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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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/code-stubs.h ('k') | src/full-codegen/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 #if V8_TARGET_ARCH_ARM 5 #if V8_TARGET_ARCH_ARM
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 3311 matching lines...) Expand 10 before | Expand all | Expand 10 after
3322 3322
3323 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC); 3323 __ add(r0, r0, Operand(Smi::FromInt(count_value)), SetCC);
3324 __ b(vc, &done); 3324 __ b(vc, &done);
3325 // Call stub. Undo operation first. 3325 // Call stub. Undo operation first.
3326 __ sub(r0, r0, Operand(Smi::FromInt(count_value))); 3326 __ sub(r0, r0, Operand(Smi::FromInt(count_value)));
3327 __ jmp(&stub_call); 3327 __ jmp(&stub_call);
3328 __ bind(&slow); 3328 __ bind(&slow);
3329 } 3329 }
3330 3330
3331 // Convert old value into a number. 3331 // Convert old value into a number.
3332 ToNumberStub convert_stub(isolate()); 3332 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
3333 __ CallStub(&convert_stub);
3334 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); 3333 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
3335 3334
3336 // Save result for postfix expressions. 3335 // Save result for postfix expressions.
3337 if (expr->is_postfix()) { 3336 if (expr->is_postfix()) {
3338 if (!context()->IsEffect()) { 3337 if (!context()->IsEffect()) {
3339 // Save the result on the stack. If we have a named or keyed property 3338 // Save the result on the stack. If we have a named or keyed property
3340 // we store the result under the receiver that is currently on top 3339 // we store the result under the receiver that is currently on top
3341 // of the stack. 3340 // of the stack.
3342 switch (assign_type) { 3341 switch (assign_type) {
3343 case VARIABLE: 3342 case VARIABLE:
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
3883 DCHECK(interrupt_address == 3882 DCHECK(interrupt_address ==
3884 isolate->builtins()->OnStackReplacement()->entry()); 3883 isolate->builtins()->OnStackReplacement()->entry());
3885 return ON_STACK_REPLACEMENT; 3884 return ON_STACK_REPLACEMENT;
3886 } 3885 }
3887 3886
3888 3887
3889 } // namespace internal 3888 } // namespace internal
3890 } // namespace v8 3889 } // namespace v8
3891 3890
3892 #endif // V8_TARGET_ARCH_ARM 3891 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698