Commit e53110f5 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

Fix Code::set_constant_pool_offset

constant_pool_offset can be equal to InstructionSize if the code doesn't
contains any extra entries.

Change-Id: I7340a0581cc9d97a802406b6c099412d38a673fc
Reviewed-on: https://chromium-review.googlesource.com/c/1412494Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#58835}
parent 77ed9993
......@@ -543,7 +543,7 @@ int Code::constant_pool_offset() const {
void Code::set_constant_pool_offset(int value) {
if (!FLAG_enable_embedded_constant_pool) return;
DCHECK_LT(value, InstructionSize());
DCHECK_LE(value, InstructionSize());
WRITE_INT_FIELD(this, kConstantPoolOffset, value);
}
......
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