| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 5b87748703959d0ad4daa766b5884650297e5311..d2f2a1364f1e8e859e1dde709808d4ff3a2c4326 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -1477,6 +1477,8 @@ HeapObjectContents HeapObject::ContentType() {
|
| } else if (type == JS_FUNCTION_TYPE) {
|
| return HeapObjectContents::kMixedValues;
|
| #endif
|
| + } else if (type == BYTECODE_ARRAY_TYPE) {
|
| + return HeapObjectContents::kMixedValues;
|
| } else if (type >= FIRST_FIXED_TYPED_ARRAY_TYPE &&
|
| type <= LAST_FIXED_TYPED_ARRAY_TYPE) {
|
| return HeapObjectContents::kMixedValues;
|
| @@ -4034,6 +4036,11 @@ Address ByteArray::GetDataStartAddress() {
|
| }
|
|
|
|
|
| +void BytecodeArray::BytecodeArrayIterateBody(ObjectVisitor* v) {
|
| + IteratePointer(v, kConstantPoolOffset);
|
| +}
|
| +
|
| +
|
| byte BytecodeArray::get(int index) {
|
| DCHECK(index >= 0 && index < this->length());
|
| return READ_BYTE_FIELD(this, kHeaderSize + index * kCharSize);
|
| @@ -4074,6 +4081,9 @@ int BytecodeArray::parameter_count() const {
|
| }
|
|
|
|
|
| +ACCESSORS(BytecodeArray, constant_pool, FixedArray, kConstantPoolOffset)
|
| +
|
| +
|
| Address BytecodeArray::GetFirstBytecodeAddress() {
|
| return reinterpret_cast<Address>(this) - kHeapObjectTag + kHeaderSize;
|
| }
|
|
|