| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 2bd8b533ace8ac88d0801d2559a5f6ba33b420c1..1a0664f8887ff1b235f8558d3f2a0fe9fae050f7 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -3639,8 +3639,17 @@ void BytecodeArray::set(int index, byte value) {
|
| }
|
|
|
|
|
| -INT_ACCESSORS(BytecodeArray, frame_size, kFrameSizeOffset)
|
| -INT_ACCESSORS(BytecodeArray, number_of_locals, kNumberOfLocalsOffset)
|
| +void BytecodeArray::set_frame_size(int frame_size) {
|
| + // We need at least one stack slot for the return register.
|
| + DCHECK_GE(frame_size, kPointerSize);
|
| + DCHECK(IsAligned(frame_size, static_cast<unsigned>(kPointerSize)));
|
| + WRITE_INT_FIELD(this, kFrameSizeOffset, frame_size);
|
| +}
|
| +
|
| +
|
| +int BytecodeArray::frame_size() const {
|
| + return READ_INT_FIELD(this, kFrameSizeOffset);
|
| +}
|
|
|
|
|
| Address BytecodeArray::GetFirstBytecodeAddress() {
|
|
|