Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 21e6c70e3582fda1b2fac5197904ae368f464777..620589950adbeeaff437548afb4f8e64e119f5c6 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -2389,6 +2389,10 @@ class JSObject: public JSReceiver { |
Handle<JSObject> object, |
AllocationSiteUsageContext* site_context, |
DeepCopyHints hints = kNoHints); |
+ // Deep copies given object with special handling for JSFunctions which |
+ // 1) must be Api functions and 2) are not copied but left as is. |
+ MUST_USE_RESULT static MaybeHandle<JSObject> DeepCopyApiBoilerplate( |
+ Handle<JSObject> object); |
MUST_USE_RESULT static MaybeHandle<JSObject> DeepWalk( |
Handle<JSObject> object, |
AllocationSiteCreationContext* site_context); |
@@ -10467,15 +10471,16 @@ class CallHandlerInfo: public Struct { |
class TemplateInfo: public Struct { |
public: |
DECL_ACCESSORS(tag, Object) |
- inline int number_of_properties() const; |
- inline void set_number_of_properties(int value); |
+ DECL_ACCESSORS(serial_number, Object) |
+ DECL_INT_ACCESSORS(number_of_properties) |
DECL_ACCESSORS(property_list, Object) |
DECL_ACCESSORS(property_accessors, Object) |
DECLARE_VERIFIER(TemplateInfo) |
static const int kTagOffset = HeapObject::kHeaderSize; |
- static const int kNumberOfProperties = kTagOffset + kPointerSize; |
+ static const int kSerialNumberOffset = kTagOffset + kPointerSize; |
+ static const int kNumberOfProperties = kSerialNumberOffset + kPointerSize; |
static const int kPropertyListOffset = kNumberOfProperties + kPointerSize; |
static const int kPropertyAccessorsOffset = |
kPropertyListOffset + kPointerSize; |
@@ -10490,7 +10495,6 @@ class TemplateInfo: public Struct { |
class FunctionTemplateInfo: public TemplateInfo { |
public: |
- DECL_ACCESSORS(serial_number, Object) |
DECL_ACCESSORS(call_code, Object) |
DECL_ACCESSORS(prototype_template, Object) |
DECL_ACCESSORS(parent_template, Object) |
@@ -10524,8 +10528,7 @@ class FunctionTemplateInfo: public TemplateInfo { |
DECLARE_PRINTER(FunctionTemplateInfo) |
DECLARE_VERIFIER(FunctionTemplateInfo) |
- static const int kSerialNumberOffset = TemplateInfo::kHeaderSize; |
- static const int kCallCodeOffset = kSerialNumberOffset + kPointerSize; |
+ static const int kCallCodeOffset = TemplateInfo::kHeaderSize; |
static const int kPrototypeTemplateOffset = |
kCallCodeOffset + kPointerSize; |
static const int kParentTemplateOffset = |