| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 42f1cb63b30c32628e6bfaaa2c11db98a8b967db..c8c4d046e94c4a8b56495a1ff6d0b5428fdcfb40 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -4218,13 +4218,23 @@ void BytecodeArray::set_osr_loop_nesting_level(int depth) {
|
| WRITE_INT8_FIELD(this, kOSRNestingLevelOffset, depth);
|
| }
|
|
|
| +BytecodeArray::Age BytecodeArray::bytecode_age() const {
|
| + return static_cast<Age>(READ_INT8_FIELD(this, kBytecodeAgeOffset));
|
| +}
|
| +
|
| +void BytecodeArray::set_bytecode_age(BytecodeArray::Age age) {
|
| + DCHECK_GE(age, kFirstBytecodeAge);
|
| + DCHECK_LE(age, kLastBytecodeAge);
|
| + STATIC_ASSERT(kLastBytecodeAge <= kMaxInt8);
|
| + WRITE_INT8_FIELD(this, kBytecodeAgeOffset, static_cast<int8_t>(age));
|
| +}
|
| +
|
| int BytecodeArray::parameter_count() const {
|
| // Parameter count is stored as the size on stack of the parameters to allow
|
| // it to be used directly by generated code.
|
| return READ_INT_FIELD(this, kParameterSizeOffset) >> kPointerSizeLog2;
|
| }
|
|
|
| -
|
| ACCESSORS(BytecodeArray, constant_pool, FixedArray, kConstantPoolOffset)
|
| ACCESSORS(BytecodeArray, handler_table, FixedArray, kHandlerTableOffset)
|
| ACCESSORS(BytecodeArray, source_position_table, ByteArray,
|
|
|