Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 4edd5298c6a928626fbde2ff6e3c3da8bd0b86f4..58dff8e37a248afa7794d2eb962b7ef18ee2f078 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -5501,6 +5501,10 @@ bool PrototypeInfo::HasObjectCreateMap() { |
return cache->IsWeakCell() && !WeakCell::cast(cache)->cleared(); |
} |
+bool FunctionTemplateInfo::instantiated() { |
+ return shared_function_info()->IsSharedFunctionInfo(); |
+} |
+ |
ACCESSORS(PrototypeInfo, prototype_users, Object, kPrototypeUsersOffset) |
ACCESSORS(PrototypeInfo, object_create_map, Object, kObjectCreateMap) |
SMI_ACCESSORS(PrototypeInfo, registry_slot, kRegistrySlotOffset) |
@@ -5557,6 +5561,9 @@ ACCESSORS(FunctionTemplateInfo, instance_call_handler, Object, |
kInstanceCallHandlerOffset) |
ACCESSORS(FunctionTemplateInfo, access_check_info, Object, |
kAccessCheckInfoOffset) |
+ACCESSORS(FunctionTemplateInfo, shared_function_info, Object, |
+ kSharedFunctionInfoOffset) |
+ |
SMI_ACCESSORS(FunctionTemplateInfo, flag, kFlagOffset) |
ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset) |
@@ -5662,7 +5669,6 @@ BOOL_ACCESSORS(FunctionTemplateInfo, flag, remove_prototype, |
kRemovePrototypeBit) |
BOOL_ACCESSORS(FunctionTemplateInfo, flag, do_not_cache, |
kDoNotCacheBit) |
-BOOL_ACCESSORS(FunctionTemplateInfo, flag, instantiated, kInstantiatedBit) |
BOOL_ACCESSORS(FunctionTemplateInfo, flag, accept_any_receiver, |
kAcceptAnyReceiver) |
BOOL_ACCESSORS(SharedFunctionInfo, start_position_and_type, is_named_expression, |