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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #define ARM64_DEFINE_FP_STATICS | 9 #define ARM64_DEFINE_FP_STATICS |
10 | 10 |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 switch (op) { | 175 switch (op) { |
176 case STP_x: | 176 case STP_x: |
177 case LDP_x: | 177 case LDP_x: |
178 case STP_d: | 178 case STP_d: |
179 case LDP_d: return LSDoubleWord; | 179 case LDP_d: return LSDoubleWord; |
180 default: return LSWord; | 180 default: return LSWord; |
181 } | 181 } |
182 } | 182 } |
183 | 183 |
184 | 184 |
185 ptrdiff_t Instruction::ImmPCOffset() { | 185 int64_t Instruction::ImmPCOffset() { |
186 ptrdiff_t offset; | 186 int64_t offset; |
187 if (IsPCRelAddressing()) { | 187 if (IsPCRelAddressing()) { |
188 // PC-relative addressing. Only ADR is supported. | 188 // PC-relative addressing. Only ADR is supported. |
189 offset = ImmPCRel(); | 189 offset = ImmPCRel(); |
190 } else if (BranchType() != UnknownBranchType) { | 190 } else if (BranchType() != UnknownBranchType) { |
191 // All PC-relative branches. | 191 // All PC-relative branches. |
192 // Relative branch offsets are instruction-size-aligned. | 192 // Relative branch offsets are instruction-size-aligned. |
193 offset = ImmBranch() << kInstructionSizeLog2; | 193 offset = ImmBranch() << kInstructionSizeLog2; |
194 } else { | 194 } else { |
195 // Load literal (offset from PC). | 195 // Load literal (offset from PC). |
196 DCHECK(IsLdrLiteral()); | 196 DCHECK(IsLdrLiteral()); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 uint64_t payload = ImmMoveWide(); | 308 uint64_t payload = ImmMoveWide(); |
309 // TODO(all): If we extend ::InlineData() to support bigger data, we need | 309 // TODO(all): If we extend ::InlineData() to support bigger data, we need |
310 // to update this method too. | 310 // to update this method too. |
311 return payload; | 311 return payload; |
312 } | 312 } |
313 | 313 |
314 | 314 |
315 } } // namespace v8::internal | 315 } } // namespace v8::internal |
316 | 316 |
317 #endif // V8_TARGET_ARCH_ARM64 | 317 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |