Index: src/heap/objects-visiting-inl.h |
diff --git a/src/heap/objects-visiting-inl.h b/src/heap/objects-visiting-inl.h |
index fc1311c643c99597a336039cf5fe5fd170d1a266..c4086172d272f4230dc17083568ccb78be22a39c 100644 |
--- a/src/heap/objects-visiting-inl.h |
+++ b/src/heap/objects-visiting-inl.h |
@@ -60,7 +60,6 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { |
int>::Visit); |
table_.Register(kVisitByteArray, &VisitByteArray); |
- table_.Register(kVisitBytecodeArray, &VisitBytecodeArray); |
table_.Register( |
kVisitSharedFunctionInfo, |
@@ -103,19 +102,11 @@ void StaticNewSpaceVisitor<StaticVisitor>::Initialize() { |
table_.template RegisterSpecializations<StructVisitor, kVisitStruct, |
kVisitStructGeneric>(); |
-} |
-template <typename StaticVisitor> |
-int StaticNewSpaceVisitor<StaticVisitor>::VisitBytecodeArray( |
- Map* map, HeapObject* object) { |
- VisitPointers( |
- map->GetHeap(), object, |
- HeapObject::RawField(object, BytecodeArray::kConstantPoolOffset), |
- HeapObject::RawField(object, BytecodeArray::kFrameSizeOffset)); |
- return reinterpret_cast<BytecodeArray*>(object)->BytecodeArraySize(); |
+ table_.Register(kVisitBytecodeArray, &UnreachableVisitor); |
+ table_.Register(kVisitSharedFunctionInfo, &UnreachableVisitor); |
} |
- |
template <typename StaticVisitor> |
void StaticMarkingVisitor<StaticVisitor>::Initialize() { |
table_.Register(kVisitShortcutCandidate, |