Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1201)

Unified Diff: src/snapshot/code-serializer.h

Issue 2305903002: [wasm] reuse the first compiled module (Closed)
Patch Set: use HeapNumber for storing mem size Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/snapshot/code-serializer.h
diff --git a/src/snapshot/code-serializer.h b/src/snapshot/code-serializer.h
index e82a7d5dd6d5787582263f850981e0988d3f8b22..e67cd17665bd912196b999962fb48760ea0e601e 100644
--- a/src/snapshot/code-serializer.h
+++ b/src/snapshot/code-serializer.h
@@ -36,6 +36,7 @@ class CodeSerializer : public Serializer {
UNREACHABLE();
}
+ virtual bool SkipOver(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 SkipOver(Object* obj) override { return obj->IsWeakCell(); };
+
private:
WasmCompiledModuleSerializer(Isolate* isolate, uint32_t source_hash)
: CodeSerializer(isolate, source_hash) {}

Powered by Google App Engine
This is Rietveld 408576698