Commit a020a05e authored by Milad Fa's avatar Milad Fa Committed by Commit Bot

s390: Use DCHECK_LE when checking kEagerWithResumeDeoptExitSize

brc or brcl may be emitted depending on the offset length.
The emitted instr size may be 4 or 6 bytes.

Change-Id: I542ae6a60378ee33e48e08d4f1cdeda4c4c70bb1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2572497Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#71603}
parent e33c13c2
...@@ -4629,7 +4629,7 @@ void TurboAssembler::CallForDeoptimization(Builtins::Name target, int, ...@@ -4629,7 +4629,7 @@ void TurboAssembler::CallForDeoptimization(Builtins::Name target, int,
: Deoptimizer::kNonLazyDeoptExitSize); : Deoptimizer::kNonLazyDeoptExitSize);
if (kind == DeoptimizeKind::kEagerWithResume) { if (kind == DeoptimizeKind::kEagerWithResume) {
b(ret); b(ret);
DCHECK_EQ(SizeOfCodeGeneratedSince(exit), DCHECK_LE(SizeOfCodeGeneratedSince(exit),
Deoptimizer::kEagerWithResumeDeoptExitSize); Deoptimizer::kEagerWithResumeDeoptExitSize);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment