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/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
791 } | 791 } |
792 | 792 |
793 // Invoke the code and pass argc as r0. | 793 // Invoke the code and pass argc as r0. |
794 __ mov(r0, Operand(r3)); | 794 __ mov(r0, Operand(r3)); |
795 if (is_construct) { | 795 if (is_construct) { |
796 // No type feedback cell is available | 796 // No type feedback cell is available |
797 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 797 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
798 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 798 CallConstructStub stub(masm->isolate(), NO_CALL_CONSTRUCTOR_FLAGS); |
799 __ CallStub(&stub); | 799 __ CallStub(&stub); |
800 } else { | 800 } else { |
801 ParameterCount actual(r0); | 801 __ Call(masm->isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); |
802 __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); | |
803 } | 802 } |
804 // Exit the JS frame and remove the parameters (except function), and | 803 // Exit the JS frame and remove the parameters (except function), and |
805 // return. | 804 // return. |
806 // Respect ABI stack constraint. | 805 // Respect ABI stack constraint. |
807 } | 806 } |
808 __ Jump(lr); | 807 __ Jump(lr); |
809 | 808 |
810 // r0: result | 809 // r0: result |
811 } | 810 } |
812 | 811 |
(...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 } | 1787 } |
1789 } | 1788 } |
1790 | 1789 |
1791 | 1790 |
1792 #undef __ | 1791 #undef __ |
1793 | 1792 |
1794 } // namespace internal | 1793 } // namespace internal |
1795 } // namespace v8 | 1794 } // namespace v8 |
1796 | 1795 |
1797 #endif // V8_TARGET_ARCH_ARM | 1796 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |