OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2804 // -- lr : return address | 2804 // -- lr : return address |
2805 // ----------------------------------- | 2805 // ----------------------------------- |
2806 __ SmiTag(x1); | 2806 __ SmiTag(x1); |
2807 __ Move(x2, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); | 2807 __ Move(x2, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); |
2808 __ Push(x1, x2); | 2808 __ Push(x1, x2); |
2809 __ Move(cp, Smi::FromInt(0)); | 2809 __ Move(cp, Smi::FromInt(0)); |
2810 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); | 2810 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); |
2811 } | 2811 } |
2812 | 2812 |
2813 // static | 2813 // static |
| 2814 void Builtins::Generate_Abort(MacroAssembler* masm) { |
| 2815 ASM_LOCATION("Builtins::Generate_Abort"); |
| 2816 // ----------- S t a t e ------------- |
| 2817 // -- x1 : message_id as Smi |
| 2818 // -- lr : return address |
| 2819 // ----------------------------------- |
| 2820 __ Push(x1); |
| 2821 __ Move(cp, Smi::FromInt(0)); |
| 2822 __ TailCallRuntime(Runtime::kAbort); |
| 2823 } |
| 2824 |
| 2825 // static |
2814 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { | 2826 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
2815 // The StringToNumber stub takes one argument in x0. | 2827 // The StringToNumber stub takes one argument in x0. |
2816 __ AssertString(x0); | 2828 __ AssertString(x0); |
2817 | 2829 |
2818 // Check if string has a cached array index. | 2830 // Check if string has a cached array index. |
2819 Label runtime; | 2831 Label runtime; |
2820 __ Ldr(x2, FieldMemOperand(x0, String::kHashFieldOffset)); | 2832 __ Ldr(x2, FieldMemOperand(x0, String::kHashFieldOffset)); |
2821 __ Tst(x2, Operand(String::kContainsCachedArrayIndexMask)); | 2833 __ Tst(x2, Operand(String::kContainsCachedArrayIndexMask)); |
2822 __ B(ne, &runtime); | 2834 __ B(ne, &runtime); |
2823 __ IndexFromHash(x2, x0); | 2835 __ IndexFromHash(x2, x0); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 __ Unreachable(); | 3011 __ Unreachable(); |
3000 } | 3012 } |
3001 } | 3013 } |
3002 | 3014 |
3003 #undef __ | 3015 #undef __ |
3004 | 3016 |
3005 } // namespace internal | 3017 } // namespace internal |
3006 } // namespace v8 | 3018 } // namespace v8 |
3007 | 3019 |
3008 #endif // V8_TARGET_ARCH_ARM | 3020 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |