| 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 2818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2829 void Builtins::Generate_Abort(MacroAssembler* masm) { | 2829 void Builtins::Generate_Abort(MacroAssembler* masm) { |
| 2830 // ----------- S t a t e ------------- | 2830 // ----------- S t a t e ------------- |
| 2831 // -- r1 : message_id as Smi | 2831 // -- r1 : message_id as Smi |
| 2832 // -- lr : return address | 2832 // -- lr : return address |
| 2833 // ----------------------------------- | 2833 // ----------------------------------- |
| 2834 __ Push(r1); | 2834 __ Push(r1); |
| 2835 __ Move(cp, Smi::FromInt(0)); | 2835 __ Move(cp, Smi::FromInt(0)); |
| 2836 __ TailCallRuntime(Runtime::kAbort); | 2836 __ TailCallRuntime(Runtime::kAbort); |
| 2837 } | 2837 } |
| 2838 | 2838 |
| 2839 void Builtins::Generate_ToNumber(MacroAssembler* masm) { | |
| 2840 // The ToNumber stub takes one argument in r0. | |
| 2841 STATIC_ASSERT(kSmiTag == 0); | |
| 2842 __ tst(r0, Operand(kSmiTagMask)); | |
| 2843 __ Ret(eq); | |
| 2844 | |
| 2845 __ CompareObjectType(r0, r1, r1, HEAP_NUMBER_TYPE); | |
| 2846 // r0: receiver | |
| 2847 // r1: receiver instance type | |
| 2848 __ Ret(eq); | |
| 2849 | |
| 2850 __ Jump(masm->isolate()->builtins()->NonNumberToNumber(), | |
| 2851 RelocInfo::CODE_TARGET); | |
| 2852 } | |
| 2853 | |
| 2854 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { | 2839 void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
| 2855 // ----------- S t a t e ------------- | 2840 // ----------- S t a t e ------------- |
| 2856 // -- r0 : actual number of arguments | 2841 // -- r0 : actual number of arguments |
| 2857 // -- r1 : function (passed through to callee) | 2842 // -- r1 : function (passed through to callee) |
| 2858 // -- r2 : expected number of arguments | 2843 // -- r2 : expected number of arguments |
| 2859 // -- r3 : new target (passed through to callee) | 2844 // -- r3 : new target (passed through to callee) |
| 2860 // ----------------------------------- | 2845 // ----------------------------------- |
| 2861 | 2846 |
| 2862 Label invoke, dont_adapt_arguments, stack_overflow; | 2847 Label invoke, dont_adapt_arguments, stack_overflow; |
| 2863 | 2848 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2973 __ bkpt(0); | 2958 __ bkpt(0); |
| 2974 } | 2959 } |
| 2975 } | 2960 } |
| 2976 | 2961 |
| 2977 #undef __ | 2962 #undef __ |
| 2978 | 2963 |
| 2979 } // namespace internal | 2964 } // namespace internal |
| 2980 } // namespace v8 | 2965 } // namespace v8 |
| 2981 | 2966 |
| 2982 #endif // V8_TARGET_ARCH_ARM | 2967 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |