| OLD | NEW |
| 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 3807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3818 // Load the argument into a0 and convert it. | 3818 // Load the argument into a0 and convert it. |
| 3819 VisitForAccumulatorValue(args->at(0)); | 3819 VisitForAccumulatorValue(args->at(0)); |
| 3820 __ mov(a0, result_register()); | 3820 __ mov(a0, result_register()); |
| 3821 | 3821 |
| 3822 ToStringStub stub(isolate()); | 3822 ToStringStub stub(isolate()); |
| 3823 __ CallStub(&stub); | 3823 __ CallStub(&stub); |
| 3824 context()->Plug(v0); | 3824 context()->Plug(v0); |
| 3825 } | 3825 } |
| 3826 | 3826 |
| 3827 | 3827 |
| 3828 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
| 3829 ZoneList<Expression*>* args = expr->arguments(); |
| 3830 DCHECK_EQ(1, args->length()); |
| 3831 |
| 3832 // Load the argument into a0 and convert it. |
| 3833 VisitForAccumulatorValue(args->at(0)); |
| 3834 __ mov(a0, result_register()); |
| 3835 |
| 3836 ToNumberStub stub(isolate()); |
| 3837 __ CallStub(&stub); |
| 3838 context()->Plug(v0); |
| 3839 } |
| 3840 |
| 3841 |
| 3828 void FullCodeGenerator::EmitToName(CallRuntime* expr) { | 3842 void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
| 3829 ZoneList<Expression*>* args = expr->arguments(); | 3843 ZoneList<Expression*>* args = expr->arguments(); |
| 3830 DCHECK_EQ(1, args->length()); | 3844 DCHECK_EQ(1, args->length()); |
| 3831 | 3845 |
| 3832 // Load the argument into v0 and convert it. | 3846 // Load the argument into v0 and convert it. |
| 3833 VisitForAccumulatorValue(args->at(0)); | 3847 VisitForAccumulatorValue(args->at(0)); |
| 3834 | 3848 |
| 3835 Label convert, done_convert; | 3849 Label convert, done_convert; |
| 3836 __ JumpIfSmi(v0, &convert); | 3850 __ JumpIfSmi(v0, &convert); |
| 3837 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); | 3851 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5245 reinterpret_cast<uint64_t>( | 5259 reinterpret_cast<uint64_t>( |
| 5246 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5260 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5247 return OSR_AFTER_STACK_CHECK; | 5261 return OSR_AFTER_STACK_CHECK; |
| 5248 } | 5262 } |
| 5249 | 5263 |
| 5250 | 5264 |
| 5251 } // namespace internal | 5265 } // namespace internal |
| 5252 } // namespace v8 | 5266 } // namespace v8 |
| 5253 | 5267 |
| 5254 #endif // V8_TARGET_ARCH_MIPS64 | 5268 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |