| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index fe4438d246cb5668d5bdb59c245e89ccbb5ba9da..2b0b271af3306c0901c4cc69b55259242fe44981 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -143,6 +143,12 @@ bool HeapObject::IsFixedArrayBase() const {
|
| return IsFixedArray() || IsFixedDoubleArray() || IsFixedTypedArrayBase();
|
| }
|
|
|
| +bool HeapObject::IsWebAssemblyCompiledModule() const {
|
| + if (!IsJSObject()) return false;
|
| + return GetIsolate()->native_context()->wasm_module_constructor() ==
|
| + this->map()->GetConstructor();
|
| +}
|
| +
|
| bool HeapObject::IsFixedArray() const {
|
| InstanceType instance_type = map()->instance_type();
|
| return instance_type == FIXED_ARRAY_TYPE ||
|
|
|