Index: src/objects-body-descriptors-inl.h |
diff --git a/src/objects-body-descriptors-inl.h b/src/objects-body-descriptors-inl.h |
index ba3c4be52fd2e4d1f7decf5d068cb1b61432ef30..8fe4c0a84a078cebcca999e6f00160699f71984f 100644 |
--- a/src/objects-body-descriptors-inl.h |
+++ b/src/objects-body-descriptors-inl.h |
@@ -193,19 +193,21 @@ class JSArrayBuffer::BodyDescriptor final : public BodyDescriptorBase { |
class BytecodeArray::BodyDescriptor final : public BodyDescriptorBase { |
public: |
static bool IsValidSlot(HeapObject* obj, int offset) { |
- return offset == kConstantPoolOffset; |
+ return offset == kConstantPoolOffset || offset == kHandlerTableOffset; |
} |
template <typename ObjectVisitor> |
static inline void IterateBody(HeapObject* obj, int object_size, |
ObjectVisitor* v) { |
IteratePointer(obj, kConstantPoolOffset, v); |
+ IteratePointer(obj, kHandlerTableOffset, v); |
} |
template <typename StaticVisitor> |
static inline void IterateBody(HeapObject* obj, int object_size) { |
Heap* heap = obj->GetHeap(); |
IteratePointer<StaticVisitor>(heap, obj, kConstantPoolOffset); |
+ IteratePointer<StaticVisitor>(heap, obj, kHandlerTableOffset); |
} |
static inline int SizeOf(Map* map, HeapObject* obj) { |