Index: src/wasm/wasm-objects.cc |
diff --git a/src/wasm/wasm-objects.cc b/src/wasm/wasm-objects.cc |
index 68f66d246d495d148a8ca79e742f46590346eb43..b96be04c7c8ad684130456bf22695e691eab12b7 100644 |
--- a/src/wasm/wasm-objects.cc |
+++ b/src/wasm/wasm-objects.cc |
@@ -97,6 +97,14 @@ WasmModuleObject* WasmModuleObject::cast(Object* object) { |
return reinterpret_cast<WasmModuleObject*>(object); |
} |
+bool WasmModuleObject::IsWasmModuleObject(Object* object) { |
+ return object->IsJSObject() && |
+ JSObject::cast(object)->GetInternalFieldCount() == kFieldCount; |
+} |
+ |
+DEFINE_GETTER(WasmModuleObject, compiled_module, kCompiledModule, |
+ WasmCompiledModule) |
+ |
Handle<WasmTableObject> WasmTableObject::New(Isolate* isolate, uint32_t initial, |
uint32_t maximum, |
Handle<FixedArray>* js_functions) { |