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_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 3789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3800 | 3800 |
3801 // Load the argument into r0 and convert it. | 3801 // Load the argument into r0 and convert it. |
3802 VisitForAccumulatorValue(args->at(0)); | 3802 VisitForAccumulatorValue(args->at(0)); |
3803 | 3803 |
3804 ToStringStub stub(isolate()); | 3804 ToStringStub stub(isolate()); |
3805 __ CallStub(&stub); | 3805 __ CallStub(&stub); |
3806 context()->Plug(r0); | 3806 context()->Plug(r0); |
3807 } | 3807 } |
3808 | 3808 |
3809 | 3809 |
| 3810 void FullCodeGenerator::EmitToNumber(CallRuntime* expr) { |
| 3811 ZoneList<Expression*>* args = expr->arguments(); |
| 3812 DCHECK_EQ(1, args->length()); |
| 3813 |
| 3814 // Load the argument into r0 and convert it. |
| 3815 VisitForAccumulatorValue(args->at(0)); |
| 3816 |
| 3817 ToNumberStub stub(isolate()); |
| 3818 __ CallStub(&stub); |
| 3819 context()->Plug(r0); |
| 3820 } |
| 3821 |
| 3822 |
3810 void FullCodeGenerator::EmitToName(CallRuntime* expr) { | 3823 void FullCodeGenerator::EmitToName(CallRuntime* expr) { |
3811 ZoneList<Expression*>* args = expr->arguments(); | 3824 ZoneList<Expression*>* args = expr->arguments(); |
3812 DCHECK_EQ(1, args->length()); | 3825 DCHECK_EQ(1, args->length()); |
3813 | 3826 |
3814 // Load the argument into r0 and convert it. | 3827 // Load the argument into r0 and convert it. |
3815 VisitForAccumulatorValue(args->at(0)); | 3828 VisitForAccumulatorValue(args->at(0)); |
3816 | 3829 |
3817 Label convert, done_convert; | 3830 Label convert, done_convert; |
3818 __ JumpIfSmi(r0, &convert); | 3831 __ JumpIfSmi(r0, &convert); |
3819 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); | 3832 STATIC_ASSERT(FIRST_NAME_TYPE == FIRST_TYPE); |
(...skipping 1449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5269 DCHECK(interrupt_address == | 5282 DCHECK(interrupt_address == |
5270 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5283 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5271 return OSR_AFTER_STACK_CHECK; | 5284 return OSR_AFTER_STACK_CHECK; |
5272 } | 5285 } |
5273 | 5286 |
5274 | 5287 |
5275 } // namespace internal | 5288 } // namespace internal |
5276 } // namespace v8 | 5289 } // namespace v8 |
5277 | 5290 |
5278 #endif // V8_TARGET_ARCH_ARM | 5291 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |