summaryrefslogtreecommitdiff
path: root/deps/v8/src/codegen/arm64/instructions-arm64.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/codegen/arm64/instructions-arm64.h')
-rw-r--r--deps/v8/src/codegen/arm64/instructions-arm64.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/src/codegen/arm64/instructions-arm64.h b/deps/v8/src/codegen/arm64/instructions-arm64.h
index a73c3feed7..1132ba39db 100644
--- a/deps/v8/src/codegen/arm64/instructions-arm64.h
+++ b/deps/v8/src/codegen/arm64/instructions-arm64.h
@@ -390,6 +390,8 @@ class Instruction {
// PC-relative addressing instruction.
V8_EXPORT_PRIVATE Instruction* ImmPCOffsetTarget();
+ // Check if the offset is in range of a given branch type. The offset is
+ // a byte offset, unscaled.
static bool IsValidImmPCOffset(ImmBranchType branch_type, ptrdiff_t offset);
bool IsTargetInImmPCOffsetRange(Instruction* target);
// Patch a PC-relative offset to refer to 'target'. 'this' may be a branch or