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

Side by Side Diff: src/full-codegen/mips64/full-codegen-mips64.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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3321 matching lines...) Expand 10 before | Expand all | Expand 10 after
3332 Register scratch1 = a1; 3332 Register scratch1 = a1;
3333 __ li(scratch1, Operand(Smi::FromInt(count_value))); 3333 __ li(scratch1, Operand(Smi::FromInt(count_value)));
3334 __ DaddBranchNoOvf(v0, v0, Operand(scratch1), &done); 3334 __ DaddBranchNoOvf(v0, v0, Operand(scratch1), &done);
3335 // Call stub. Undo operation first. 3335 // Call stub. Undo operation first.
3336 __ Move(v0, a0); 3336 __ Move(v0, a0);
3337 __ jmp(&stub_call); 3337 __ jmp(&stub_call);
3338 __ bind(&slow); 3338 __ bind(&slow);
3339 } 3339 }
3340 3340
3341 // Convert old value into a number. 3341 // Convert old value into a number.
3342 ToNumberStub convert_stub(isolate()); 3342 __ Call(isolate()->builtins()->ToNumber(), RelocInfo::CODE_TARGET);
3343 __ CallStub(&convert_stub);
3344 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER); 3343 PrepareForBailoutForId(expr->ToNumberId(), BailoutState::TOS_REGISTER);
3345 3344
3346 // Save result for postfix expressions. 3345 // Save result for postfix expressions.
3347 if (expr->is_postfix()) { 3346 if (expr->is_postfix()) {
3348 if (!context()->IsEffect()) { 3347 if (!context()->IsEffect()) {
3349 // Save the result on the stack. If we have a named or keyed property 3348 // Save the result on the stack. If we have a named or keyed property
3350 // we store the result under the receiver that is currently on top 3349 // we store the result under the receiver that is currently on top
3351 // of the stack. 3350 // of the stack.
3352 switch (assign_type) { 3351 switch (assign_type) {
3353 case VARIABLE: 3352 case VARIABLE:
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3835 reinterpret_cast<uint64_t>( 3834 reinterpret_cast<uint64_t>(
3836 isolate->builtins()->OnStackReplacement()->entry())); 3835 isolate->builtins()->OnStackReplacement()->entry()));
3837 return ON_STACK_REPLACEMENT; 3836 return ON_STACK_REPLACEMENT;
3838 } 3837 }
3839 3838
3840 3839
3841 } // namespace internal 3840 } // namespace internal
3842 } // namespace v8 3841 } // namespace v8
3843 3842
3844 #endif // V8_TARGET_ARCH_MIPS64 3843 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698