Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 196fb292b9b917571818f561aea0f61afd9c975a..1d94414eb37637333fd2779dda78ee84cc652fbf 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -3641,6 +3641,10 @@ AllocationResult Heap::CopyJSObject(JSObject* source, AllocationSite* site) { |
map->instance_type() == JS_ERROR_TYPE || |
map->instance_type() == JS_ARRAY_TYPE || |
map->instance_type() == JS_API_OBJECT_TYPE || |
+ map->instance_type() == WASM_INSTANCE_TYPE || |
+ map->instance_type() == WASM_MEMORY_TYPE || |
+ map->instance_type() == WASM_MODULE_TYPE || |
+ map->instance_type() == WASM_TABLE_TYPE || |
map->instance_type() == JS_SPECIAL_API_OBJECT_TYPE); |
int object_size = map->instance_size(); |