diff options
Diffstat (limited to 'deps/v8/src/snapshot/code-serializer.h')
-rw-r--r-- | deps/v8/src/snapshot/code-serializer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/src/snapshot/code-serializer.h b/deps/v8/src/snapshot/code-serializer.h index e82a7d5dd6..b3c54d1c84 100644 --- a/deps/v8/src/snapshot/code-serializer.h +++ b/deps/v8/src/snapshot/code-serializer.h @@ -36,6 +36,7 @@ class CodeSerializer : public Serializer { UNREACHABLE(); } + virtual bool ElideObject(Object* obj) { return false; } void SerializeGeneric(HeapObject* heap_object, HowToCode how_to_code, WhereToPoint where_to_point); @@ -73,6 +74,8 @@ class WasmCompiledModuleSerializer : public CodeSerializer { } } + bool ElideObject(Object* obj) override { return obj->IsWeakCell(); }; + private: WasmCompiledModuleSerializer(Isolate* isolate, uint32_t source_hash) : CodeSerializer(isolate, source_hash) {} |