| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index d335ec4439a9c5f752737553d3b4b78ec81f0164..abe7c088574ff4ddce3346a69e112edd60f7f061 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;
|
| @@ -4028,6 +4030,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);
|
| @@ -4064,6 +4071,9 @@ int BytecodeArray::parameter_count() const {
|
| }
|
|
|
|
|
| +ACCESSORS(BytecodeArray, constant_pool, FixedArray, kConstantPoolOffset)
|
| +
|
| +
|
| Address BytecodeArray::GetFirstBytecodeAddress() {
|
| return reinterpret_cast<Address>(this) - kHeapObjectTag + kHeaderSize;
|
| }
|
|
|