| 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 #include "v8.h" | 5 #include "v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "codegen.h" | 9 #include "codegen.h" |
| 10 #include "debug.h" | 10 #include "debug.h" |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 } | 775 } |
| 776 if (kR9Available == 1) { | 776 if (kR9Available == 1) { |
| 777 __ mov(r9, Operand(r4)); | 777 __ mov(r9, Operand(r4)); |
| 778 } | 778 } |
| 779 | 779 |
| 780 // Invoke the code and pass argc as r0. | 780 // Invoke the code and pass argc as r0. |
| 781 __ mov(r0, Operand(r3)); | 781 __ mov(r0, Operand(r3)); |
| 782 if (is_construct) { | 782 if (is_construct) { |
| 783 // No type feedback cell is available | 783 // No type feedback cell is available |
| 784 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 784 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
| 785 CallConstructStub stub(masm->isolate(), NO_CALL_FUNCTION_FLAGS); | 785 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
| 786 __ CallStub(&stub); | 786 __ CallStub(&stub); |
| 787 } else { | 787 } else { |
| 788 ParameterCount actual(r0); | 788 ParameterCount actual(r0); |
| 789 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); | 789 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); |
| 790 } | 790 } |
| 791 // Exit the JS frame and remove the parameters (except function), and | 791 // Exit the JS frame and remove the parameters (except function), and |
| 792 // return. | 792 // return. |
| 793 // Respect ABI stack constraint. | 793 // Respect ABI stack constraint. |
| 794 } | 794 } |
| 795 __ Jump(lr); | 795 __ Jump(lr); |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 __ bkpt(0); | 1551 __ bkpt(0); |
| 1552 } | 1552 } |
| 1553 } | 1553 } |
| 1554 | 1554 |
| 1555 | 1555 |
| 1556 #undef __ | 1556 #undef __ |
| 1557 | 1557 |
| 1558 } } // namespace v8::internal | 1558 } } // namespace v8::internal |
| 1559 | 1559 |
| 1560 #endif // V8_TARGET_ARCH_ARM | 1560 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |