Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 4f5938abd5b2e7bd5337b48536b48dfc54b4abb5..30e1e17198efe63818fff9192be0b77d6f83be9d 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4099,12 +4099,13 @@ void BytecodeArray::set_interrupt_budget(int interrupt_budget) { |
} |
int BytecodeArray::osr_loop_nesting_level() const { |
- return READ_INT_FIELD(this, kOSRNestingLevelOffset); |
+ return READ_INT8_FIELD(this, kOSRNestingLevelOffset); |
} |
void BytecodeArray::set_osr_loop_nesting_level(int depth) { |
DCHECK(0 <= depth && depth <= AbstractCode::kMaxLoopNestingMarker); |
- WRITE_INT_FIELD(this, kOSRNestingLevelOffset, depth); |
+ STATIC_ASSERT(AbstractCode::kMaxLoopNestingMarker < kMaxInt8); |
+ WRITE_INT8_FIELD(this, kOSRNestingLevelOffset, depth); |
} |
int BytecodeArray::parameter_count() const { |