OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 2798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2809 // -- lr : return address | 2809 // -- lr : return address |
2810 // ----------------------------------- | 2810 // ----------------------------------- |
2811 __ SmiTag(r3); | 2811 __ SmiTag(r3); |
2812 __ LoadSmiLiteral(r4, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); | 2812 __ LoadSmiLiteral(r4, Smi::FromInt(AllocateTargetSpace::encode(OLD_SPACE))); |
2813 __ Push(r3, r4); | 2813 __ Push(r3, r4); |
2814 __ LoadSmiLiteral(cp, Smi::FromInt(0)); | 2814 __ LoadSmiLiteral(cp, Smi::FromInt(0)); |
2815 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); | 2815 __ TailCallRuntime(Runtime::kAllocateInTargetSpace); |
2816 } | 2816 } |
2817 | 2817 |
2818 // static | 2818 // static |
| 2819 void Builtins::Generate_Abort(MacroAssembler* masm) { |
| 2820 // ----------- S t a t e ------------- |
| 2821 // -- r3 : message_id as Smi |
| 2822 // -- lr : return address |
| 2823 // ----------------------------------- |
| 2824 __ push(r3); |
| 2825 __ LoadSmiLiteral(cp, Smi::FromInt(0)); |
| 2826 __ TailCallRuntime(Runtime::kAbort); |
| 2827 } |
| 2828 |
| 2829 // static |
2819 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { | 2830 void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
2820 // The StringToNumber stub takes one argument in r2. | 2831 // The StringToNumber stub takes one argument in r2. |
2821 __ AssertString(r2); | 2832 __ AssertString(r2); |
2822 | 2833 |
2823 // Check if string has a cached array index. | 2834 // Check if string has a cached array index. |
2824 Label runtime; | 2835 Label runtime; |
2825 __ LoadlW(r4, FieldMemOperand(r2, String::kHashFieldOffset)); | 2836 __ LoadlW(r4, FieldMemOperand(r2, String::kHashFieldOffset)); |
2826 __ And(r0, r4, Operand(String::kContainsCachedArrayIndexMask)); | 2837 __ And(r0, r4, Operand(String::kContainsCachedArrayIndexMask)); |
2827 __ bne(&runtime); | 2838 __ bne(&runtime); |
2828 __ IndexFromHash(r4, r2); | 2839 __ IndexFromHash(r4, r2); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2986 __ bkpt(0); | 2997 __ bkpt(0); |
2987 } | 2998 } |
2988 } | 2999 } |
2989 | 3000 |
2990 #undef __ | 3001 #undef __ |
2991 | 3002 |
2992 } // namespace internal | 3003 } // namespace internal |
2993 } // namespace v8 | 3004 } // namespace v8 |
2994 | 3005 |
2995 #endif // V8_TARGET_ARCH_S390 | 3006 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |