| 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 2708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2719 // -- lr : return address | 2719 // -- lr : return address |
| 2720 // ----------------------------------- | 2720 // ----------------------------------- |
| 2721 __ SmiTag(r1); | 2721 __ SmiTag(r1); |
| 2722 __ Move(r2, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); | 2722 __ Move(r2, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); |
| 2723 __ Push(r1, r2); | 2723 __ Push(r1, r2); |
| 2724 __ Move(cp, Smi::FromInt(0)); | 2724 __ Move(cp, Smi::FromInt(0)); |
| 2725 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); | 2725 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); |
| 2726 } | 2726 } |
| 2727 | 2727 |
| 2728 // static | 2728 // static |
| 2729 void Builtins::Generate_Abort(MacroAssembler* masm) { | |
| 2730 // ----------- S t a t e ------------- | |
| 2731 // -- r1 : message_id as Smi | |
| 2732 // -- lr : return address | |
| 2733 // ----------------------------------- | |
| 2734 __ Push(r1); | |
| 2735 __ Move(cp, Smi::FromInt(0)); | |
| 2736 __ TailCallRuntime(Runtime::kAbort); | |
| 2737 } | |
| 2738 | |
| 2739 // static | |
| 2740 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { | 2729 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
| 2741 // The StringToNumber stub takes one argument in r0. | 2730 // The StringToNumber stub takes one argument in r0. |
| 2742 __ AssertString(r0); | 2731 __ AssertString(r0); |
| 2743 | 2732 |
| 2744 // Check if string has a cached array index. | 2733 // Check if string has a cached array index. |
| 2745 Label runtime; | 2734 Label runtime; |
| 2746 __ ldr(r2, FieldMemOperand(r0, String::kHashFieldOffset)); | 2735 __ ldr(r2, FieldMemOperand(r0, String::kHashFieldOffset)); |
| 2747 __ tst(r2, Operand(String::kContainsCachedArrayIndexMask)); | 2736 __ tst(r2, Operand(String::kContainsCachedArrayIndexMask)); |
| 2748 __ b(ne, &runtime); | 2737 __ b(ne, &runtime); |
| 2749 __ IndexFromHash(r2, r0); | 2738 __ IndexFromHash(r2, r0); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2898 __ bkpt(0); | 2887 __ bkpt(0); |
| 2899 } | 2888 } |
| 2900 } | 2889 } |
| 2901 | 2890 |
| 2902 #undef __ | 2891 #undef __ |
| 2903 | 2892 |
| 2904 } // namespace internal | 2893 } // namespace internal |
| 2905 } // namespace v8 | 2894 } // namespace v8 |
| 2906 | 2895 |
| 2907 #endif // V8_TARGET_ARCH_ARM | 2896 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |