| 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_ARM64_INSTRUCTIONS_ARM64_H_ | 5 #ifndef V8_ARM64_INSTRUCTIONS_ARM64_H_ |
| 6 #define V8_ARM64_INSTRUCTIONS_ARM64_H_ | 6 #define V8_ARM64_INSTRUCTIONS_ARM64_H_ |
| 7 | 7 |
| 8 #include "src/arm64/constants-arm64.h" | 8 #include "src/arm64/constants-arm64.h" |
| 9 #include "src/arm64/utils-arm64.h" | 9 #include "src/arm64/utils-arm64.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // which is encoded as | 331 // which is encoded as |
| 332 // orr r<n>, xzr, r<n> | 332 // orr r<n>, xzr, r<n> |
| 333 return (Mask(LogicalShiftedMask) == ORR_x) && | 333 return (Mask(LogicalShiftedMask) == ORR_x) && |
| 334 (Rd() == Rm()) && | 334 (Rd() == Rm()) && |
| 335 (Rd() == n); | 335 (Rd() == n); |
| 336 } | 336 } |
| 337 | 337 |
| 338 // Find the PC offset encoded in this instruction. 'this' may be a branch or | 338 // Find the PC offset encoded in this instruction. 'this' may be a branch or |
| 339 // a PC-relative addressing instruction. | 339 // a PC-relative addressing instruction. |
| 340 // The offset returned is unscaled. | 340 // The offset returned is unscaled. |
| 341 ptrdiff_t ImmPCOffset(); | 341 int64_t ImmPCOffset(); |
| 342 | 342 |
| 343 // Find the target of this instruction. 'this' may be a branch or a | 343 // Find the target of this instruction. 'this' may be a branch or a |
| 344 // PC-relative addressing instruction. | 344 // PC-relative addressing instruction. |
| 345 Instruction* ImmPCOffsetTarget(); | 345 Instruction* ImmPCOffsetTarget(); |
| 346 | 346 |
| 347 static bool IsValidImmPCOffset(ImmBranchType branch_type, int32_t offset); | 347 static bool IsValidImmPCOffset(ImmBranchType branch_type, int32_t offset); |
| 348 bool IsTargetInImmPCOffsetRange(Instruction* target); | 348 bool IsTargetInImmPCOffsetRange(Instruction* target); |
| 349 // Patch a PC-relative offset to refer to 'target'. 'this' may be a branch or | 349 // Patch a PC-relative offset to refer to 'target'. 'this' may be a branch or |
| 350 // a PC-relative addressing instruction. | 350 // a PC-relative addressing instruction. |
| 351 void SetImmPCOffsetTarget(Instruction* target); | 351 void SetImmPCOffsetTarget(Instruction* target); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 TRACE_ENABLE = 1 << 6, | 500 TRACE_ENABLE = 1 << 6, |
| 501 TRACE_DISABLE = 2 << 6, | 501 TRACE_DISABLE = 2 << 6, |
| 502 TRACE_OVERRIDE = 3 << 6 | 502 TRACE_OVERRIDE = 3 << 6 |
| 503 }; | 503 }; |
| 504 | 504 |
| 505 | 505 |
| 506 } } // namespace v8::internal | 506 } } // namespace v8::internal |
| 507 | 507 |
| 508 | 508 |
| 509 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_ | 509 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_ |
| OLD | NEW |