| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 1839699f2535ca4374adf2eacf552230b7b528f2..afb73b64f1b95dabf52353afd99594e9421965ce 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -6195,6 +6195,16 @@ class Map: public HeapObject {
|
| bool IsJSObjectMap() {
|
| return instance_type() >= FIRST_JS_OBJECT_TYPE;
|
| }
|
| + bool IsJSGlobalProxyMap() {
|
| + return instance_type() == JS_GLOBAL_PROXY_TYPE;
|
| + }
|
| + bool IsJSGlobalObjectMap() {
|
| + return instance_type() == JS_GLOBAL_OBJECT_TYPE;
|
| + }
|
| + bool IsGlobalObjectMap() {
|
| + const InstanceType type = instance_type();
|
| + return type == JS_GLOBAL_OBJECT_TYPE || type == JS_BUILTINS_OBJECT_TYPE;
|
| + }
|
|
|
| // Fires when the layout of an object with a leaf map changes.
|
| // This includes adding transitions to the leaf map or changing
|
|
|