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 |
2729 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { | 2740 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
2730 // The StringToNumber stub takes one argument in r0. | 2741 // The StringToNumber stub takes one argument in r0. |
2731 __ AssertString(r0); | 2742 __ AssertString(r0); |
2732 | 2743 |
2733 // Check if string has a cached array index. | 2744 // Check if string has a cached array index. |
2734 Label runtime; | 2745 Label runtime; |
2735 __ ldr(r2, FieldMemOperand(r0, String::kHashFieldOffset)); | 2746 __ ldr(r2, FieldMemOperand(r0, String::kHashFieldOffset)); |
2736 __ tst(r2, Operand(String::kContainsCachedArrayIndexMask)); | 2747 __ tst(r2, Operand(String::kContainsCachedArrayIndexMask)); |
2737 __ b(ne, &runtime); | 2748 __ b(ne, &runtime); |
2738 __ IndexFromHash(r2, r0); | 2749 __ IndexFromHash(r2, r0); |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2887 __ bkpt(0); | 2898 __ bkpt(0); |
2888 } | 2899 } |
2889 } | 2900 } |
2890 | 2901 |
2891 #undef __ | 2902 #undef __ |
2892 | 2903 |
2893 } // namespace internal | 2904 } // namespace internal |
2894 } // namespace v8 | 2905 } // namespace v8 |
2895 | 2906 |
2896 #endif // V8_TARGET_ARCH_ARM | 2907 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |