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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2781 // -- ra : return address | 2781 // -- ra : return address |
2782 // ----------------------------------- | 2782 // ----------------------------------- |
2783 __ SmiTag(a0); | 2783 __ SmiTag(a0); |
2784 __ Move(a1, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); | 2784 __ Move(a1, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); |
2785 __ Push(a0, a1); | 2785 __ Push(a0, a1); |
2786 __ Move(cp, Smi::FromInt(0)); | 2786 __ Move(cp, Smi::FromInt(0)); |
2787 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); | 2787 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); |
2788 } | 2788 } |
2789 | 2789 |
2790 // static | 2790 // static |
| 2791 void Builtins::Generate_Abort(MacroAssembler* masm) { |
| 2792 // ----------- S t a t e ------------- |
| 2793 // -- a0 : message_id as Smi |
| 2794 // -- ra : return address |
| 2795 // ----------------------------------- |
| 2796 __ Push(a0); |
| 2797 __ Move(cp, Smi::FromInt(0)); |
| 2798 __ TailCallRuntime(Runtime::kAbort); |
| 2799 } |
| 2800 |
| 2801 // static |
2791 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { | 2802 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
2792 // The StringToNumber stub takes on argument in a0. | 2803 // The StringToNumber stub takes on argument in a0. |
2793 __ AssertString(a0); | 2804 __ AssertString(a0); |
2794 | 2805 |
2795 // Check if string has a cached array index. | 2806 // Check if string has a cached array index. |
2796 Label runtime; | 2807 Label runtime; |
2797 __ lwu(a2, FieldMemOperand(a0, String::kHashFieldOffset)); | 2808 __ lwu(a2, FieldMemOperand(a0, String::kHashFieldOffset)); |
2798 __ And(at, a2, Operand(String::kContainsCachedArrayIndexMask)); | 2809 __ And(at, a2, Operand(String::kContainsCachedArrayIndexMask)); |
2799 __ Branch(&runtime, ne, at, Operand(zero_reg)); | 2810 __ Branch(&runtime, ne, at, Operand(zero_reg)); |
2800 __ IndexFromHash(a2, v0); | 2811 __ IndexFromHash(a2, v0); |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2965 __ break_(0xCC); | 2976 __ break_(0xCC); |
2966 } | 2977 } |
2967 } | 2978 } |
2968 | 2979 |
2969 #undef __ | 2980 #undef __ |
2970 | 2981 |
2971 } // namespace internal | 2982 } // namespace internal |
2972 } // namespace v8 | 2983 } // namespace v8 |
2973 | 2984 |
2974 #endif // V8_TARGET_ARCH_MIPS64 | 2985 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |