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/arm64/macro-assembler-arm64-inl.h" | 8 #include "src/arm64/macro-assembler-arm64-inl.h" |
9 #include "src/crankshaft/arm64/delayed-masm-arm64.h" | 9 #include "src/crankshaft/arm64/delayed-masm-arm64.h" |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 | 38 |
39 void DelayedMasm::Mov(const Register& rd, | 39 void DelayedMasm::Mov(const Register& rd, |
40 const Operand& operand, | 40 const Operand& operand, |
41 DiscardMoveMode discard_mode) { | 41 DiscardMoveMode discard_mode) { |
42 EmitPending(); | 42 EmitPending(); |
43 DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_); | 43 DCHECK(!IsScratchRegister(rd) || scratch_register_acquired_); |
44 __ Mov(rd, operand, discard_mode); | 44 __ Mov(rd, operand, discard_mode); |
45 } | 45 } |
46 | 46 |
47 void DelayedMasm::Fmov(VRegister fd, VRegister fn) { | 47 |
| 48 void DelayedMasm::Fmov(FPRegister fd, FPRegister fn) { |
48 EmitPending(); | 49 EmitPending(); |
49 __ Fmov(fd, fn); | 50 __ Fmov(fd, fn); |
50 } | 51 } |
51 | 52 |
52 void DelayedMasm::Fmov(VRegister fd, double imm) { | 53 |
| 54 void DelayedMasm::Fmov(FPRegister fd, double imm) { |
53 EmitPending(); | 55 EmitPending(); |
54 __ Fmov(fd, imm); | 56 __ Fmov(fd, imm); |
55 } | 57 } |
56 | 58 |
57 | 59 |
58 void DelayedMasm::LoadObject(Register result, Handle<Object> object) { | 60 void DelayedMasm::LoadObject(Register result, Handle<Object> object) { |
59 EmitPending(); | 61 EmitPending(); |
60 DCHECK(!IsScratchRegister(result) || scratch_register_acquired_); | 62 DCHECK(!IsScratchRegister(result) || scratch_register_acquired_); |
61 __ LoadObject(result, object); | 63 __ LoadObject(result, object); |
62 } | 64 } |
63 | 65 |
64 void DelayedMasm::InitializeRootRegister() { masm_->InitializeRootRegister(); } | 66 void DelayedMasm::InitializeRootRegister() { masm_->InitializeRootRegister(); } |
65 | 67 |
66 #undef __ | 68 #undef __ |
67 | 69 |
68 } // namespace internal | 70 } // namespace internal |
69 } // namespace v8 | 71 } // namespace v8 |
70 | 72 |
71 #endif // V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ | 73 #endif // V8_CRANKSHAFT_ARM64_DELAYED_MASM_ARM64_INL_H_ |
OLD | NEW |