| 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 #ifndef V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ | 6 #define V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/arm64/delayed-masm-arm64.h" | 8 #include "src/crankshaft/arm64/delayed-masm-arm64.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 | 22 |
| 23 void DelayedMasm::Mov(const Register& rd, | 23 void DelayedMasm::Mov(const Register& rd, |
| 24 const Operand& operand, | 24 const Operand& operand, |
| 25 DiscardMoveMode discard_mode) { | 25 DiscardMoveMode discard_mode) { |
| 26 EmitPending(); | 26 EmitPending(); |
| 27 DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_); | 27 DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_); |
| 28 __ Mov(rd, operand, discard_mode); | 28 __ Mov(rd, operand, discard_mode); |
| 29 } | 29 } |
| 30 | 30 |
| 31 | 31 void DelayedMasm::Fmov(VRegister fd, VRegister fn) { |
| 32 void DelayedMasm::Fmov(FPRegister fd, FPRegister fn) { | |
| 33 EmitPending(); | 32 EmitPending(); |
| 34 __ Fmov(fd, fn); | 33 __ Fmov(fd, fn); |
| 35 } | 34 } |
| 36 | 35 |
| 37 | 36 void DelayedMasm::Fmov(VRegister fd, double imm) { |
| 38 void DelayedMasm::Fmov(FPRegister fd, double imm) { | |
| 39 EmitPending(); | 37 EmitPending(); |
| 40 __ Fmov(fd, imm); | 38 __ Fmov(fd, imm); |
| 41 } | 39 } |
| 42 | 40 |
| 43 | 41 |
| 44 void DelayedMasm::LoadObject(Register result, Handle<Object> object) { | 42 void DelayedMasm::LoadObject(Register result, Handle<Object> object) { |
| 45 EmitPending(); | 43 EmitPending(); |
| 46 DCHECK(!IsScratchRegister(result) || scratch_register_acquired_); | 44 DCHECK(!IsScratchRegister(result) || scratch_register_acquired_); |
| 47 __ LoadObject(result, object); | 45 __ LoadObject(result, object); |
| 48 } | 46 } |
| 49 | 47 |
| 50 | 48 |
| 51 #undef __ | 49 #undef __ |
| 52 | 50 |
| 53 } // namespace internal | 51 } // namespace internal |
| 54 } // namespace v8 | 52 } // namespace v8 |
| 55 | 53 |
| 56 #endif // V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ | 54 #endif // V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ |
| OLD | NEW |