| 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 #include <assert.h> // For assert | 5 #include <assert.h> // For assert |
| 6 #include <limits.h> // For LONG_MIN, LONG_MAX. | 6 #include <limits.h> // For LONG_MIN, LONG_MAX. |
| 7 | 7 |
| 8 #if V8_TARGET_ARCH_S390 | 8 #if V8_TARGET_ARCH_S390 |
| 9 | 9 |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 void MacroAssembler::MovDoubleToInt64(Register dst, DoubleRegister src) { | 953 void MacroAssembler::MovDoubleToInt64(Register dst, DoubleRegister src) { |
| 954 lgdr(dst, src); | 954 lgdr(dst, src); |
| 955 } | 955 } |
| 956 | 956 |
| 957 void MacroAssembler::MovInt64ToDouble(DoubleRegister dst, Register src) { | 957 void MacroAssembler::MovInt64ToDouble(DoubleRegister dst, Register src) { |
| 958 ldgr(dst, src); | 958 ldgr(dst, src); |
| 959 } | 959 } |
| 960 | 960 |
| 961 void MacroAssembler::StubPrologue(StackFrame::Type type, Register base, | 961 void MacroAssembler::StubPrologue(StackFrame::Type type, Register base, |
| 962 int prologue_offset) { | 962 int prologue_offset) { |
| 963 LoadSmiLiteral(r1, Smi::FromInt(type)); | 963 { |
| 964 PushCommonFrame(r1); | 964 ConstantPoolUnavailableScope constant_pool_unavailable(this); |
| 965 LoadSmiLiteral(r1, Smi::FromInt(type)); |
| 966 PushCommonFrame(r1); |
| 967 } |
| 965 } | 968 } |
| 966 | 969 |
| 967 void MacroAssembler::Prologue(bool code_pre_aging, Register base, | 970 void MacroAssembler::Prologue(bool code_pre_aging, Register base, |
| 968 int prologue_offset) { | 971 int prologue_offset) { |
| 969 DCHECK(!base.is(no_reg)); | 972 DCHECK(!base.is(no_reg)); |
| 970 { | 973 { |
| 971 PredictableCodeSizeScope predictible_code_size_scope( | 974 PredictableCodeSizeScope predictible_code_size_scope( |
| 972 this, kNoCodeAgeSequenceLength); | 975 this, kNoCodeAgeSequenceLength); |
| 973 // The following instructions must remain together and unmodified | 976 // The following instructions must remain together and unmodified |
| 974 // for code aging to work properly. | 977 // for code aging to work properly. |
| (...skipping 4549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5524 } | 5527 } |
| 5525 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); | 5528 if (mag.shift > 0) ShiftRightArith(result, result, Operand(mag.shift)); |
| 5526 ExtractBit(r0, dividend, 31); | 5529 ExtractBit(r0, dividend, 31); |
| 5527 AddP(result, r0); | 5530 AddP(result, r0); |
| 5528 } | 5531 } |
| 5529 | 5532 |
| 5530 } // namespace internal | 5533 } // namespace internal |
| 5531 } // namespace v8 | 5534 } // namespace v8 |
| 5532 | 5535 |
| 5533 #endif // V8_TARGET_ARCH_S390 | 5536 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |