| 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/debug/debug.h" | 10 #include "src/debug/debug.h" |
| (...skipping 3815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3826 __ jmp(&done); | 3826 __ jmp(&done); |
| 3827 | 3827 |
| 3828 NopRuntimeCallHelper call_helper; | 3828 NopRuntimeCallHelper call_helper; |
| 3829 generator.GenerateSlow(masm_, NOT_PART_OF_IC_HANDLER, call_helper); | 3829 generator.GenerateSlow(masm_, NOT_PART_OF_IC_HANDLER, call_helper); |
| 3830 | 3830 |
| 3831 __ bind(&done); | 3831 __ bind(&done); |
| 3832 context()->Plug(result); | 3832 context()->Plug(result); |
| 3833 } | 3833 } |
| 3834 | 3834 |
| 3835 | 3835 |
| 3836 void FullCodeGenerator::EmitStringAdd(CallRuntime* expr) { | |
| 3837 ZoneList<Expression*>* args = expr->arguments(); | |
| 3838 DCHECK_EQ(2, args->length()); | |
| 3839 VisitForStackValue(args->at(0)); | |
| 3840 VisitForAccumulatorValue(args->at(1)); | |
| 3841 | |
| 3842 __ pop(r1); | |
| 3843 StringAddStub stub(isolate(), STRING_ADD_CHECK_BOTH, NOT_TENURED); | |
| 3844 __ CallStub(&stub); | |
| 3845 context()->Plug(r0); | |
| 3846 } | |
| 3847 | |
| 3848 | |
| 3849 void FullCodeGenerator::EmitCall(CallRuntime* expr) { | 3836 void FullCodeGenerator::EmitCall(CallRuntime* expr) { |
| 3850 ZoneList<Expression*>* args = expr->arguments(); | 3837 ZoneList<Expression*>* args = expr->arguments(); |
| 3851 DCHECK_LE(2, args->length()); | 3838 DCHECK_LE(2, args->length()); |
| 3852 // Push target, receiver and arguments onto the stack. | 3839 // Push target, receiver and arguments onto the stack. |
| 3853 for (Expression* const arg : *args) { | 3840 for (Expression* const arg : *args) { |
| 3854 VisitForStackValue(arg); | 3841 VisitForStackValue(arg); |
| 3855 } | 3842 } |
| 3856 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 3843 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
| 3857 // Move target to r1. | 3844 // Move target to r1. |
| 3858 int const argc = args->length() - 2; | 3845 int const argc = args->length() - 2; |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5111 DCHECK(interrupt_address == | 5098 DCHECK(interrupt_address == |
| 5112 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5099 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5113 return OSR_AFTER_STACK_CHECK; | 5100 return OSR_AFTER_STACK_CHECK; |
| 5114 } | 5101 } |
| 5115 | 5102 |
| 5116 | 5103 |
| 5117 } // namespace internal | 5104 } // namespace internal |
| 5118 } // namespace v8 | 5105 } // namespace v8 |
| 5119 | 5106 |
| 5120 #endif // V8_TARGET_ARCH_ARM | 5107 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |