summaryrefslogtreecommitdiff
path: root/chromium/v8/src/objects/templates.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/objects/templates.h')
-rw-r--r--chromium/v8/src/objects/templates.h33
1 files changed, 13 insertions, 20 deletions
diff --git a/chromium/v8/src/objects/templates.h b/chromium/v8/src/objects/templates.h
index 01d40eb29ae..a3b509928be 100644
--- a/chromium/v8/src/objects/templates.h
+++ b/chromium/v8/src/objects/templates.h
@@ -6,6 +6,7 @@
#define V8_OBJECTS_TEMPLATES_H_
#include "src/objects/struct.h"
+#include "torque-generated/bit-fields-tq.h"
// Has to be the last include (doesn't have include guards):
#include "src/objects/object-macros.h"
@@ -32,9 +33,6 @@ class FunctionTemplateRareData
: public TorqueGeneratedFunctionTemplateRareData<FunctionTemplateRareData,
Struct> {
public:
- // Dispatched behavior.
- DECL_PRINTER(FunctionTemplateRareData)
-
TQ_OBJECT_CONSTRUCTORS(FunctionTemplateRareData)
};
@@ -51,36 +49,37 @@ class FunctionTemplateInfo
// ObjectTemplateInfo or Undefined, used for the prototype property of the
// resulting JSFunction instance of this FunctionTemplate.
- DECL_RARE_ACCESSORS(prototype_template, PrototypeTemplate, Object)
+ DECL_RARE_ACCESSORS(prototype_template, PrototypeTemplate, HeapObject)
// In the case the prototype_template is Undefined we use the
// prototype_provider_template to retrieve the instance prototype. Either
- // contains an ObjectTemplateInfo or Undefined.
+ // contains an FunctionTemplateInfo or Undefined.
DECL_RARE_ACCESSORS(prototype_provider_template, PrototypeProviderTemplate,
- Object)
+ HeapObject)
// Used to create prototype chains. The parent_template's prototype is set as
// __proto__ of this FunctionTemplate's instance prototype. Is either a
// FunctionTemplateInfo or Undefined.
- DECL_RARE_ACCESSORS(parent_template, ParentTemplate, Object)
+ DECL_RARE_ACCESSORS(parent_template, ParentTemplate, HeapObject)
// Returns an InterceptorInfo or Undefined for named properties.
- DECL_RARE_ACCESSORS(named_property_handler, NamedPropertyHandler, Object)
+ DECL_RARE_ACCESSORS(named_property_handler, NamedPropertyHandler, HeapObject)
// Returns an InterceptorInfo or Undefined for indexed properties/elements.
- DECL_RARE_ACCESSORS(indexed_property_handler, IndexedPropertyHandler, Object)
+ DECL_RARE_ACCESSORS(indexed_property_handler, IndexedPropertyHandler,
+ HeapObject)
// An ObjectTemplateInfo that is used when instantiating the JSFunction
// associated with this FunctionTemplateInfo. Contains either an
// ObjectTemplateInfo or Undefined. A default instance_template is assigned
// upon first instantiation if it's Undefined.
- DECL_RARE_ACCESSORS(instance_template, InstanceTemplate, Object)
+ DECL_RARE_ACCESSORS(instance_template, InstanceTemplate, HeapObject)
// Either a CallHandlerInfo or Undefined. If an instance_call_handler is
// provided the instances created from the associated JSFunction are marked as
// callable.
- DECL_RARE_ACCESSORS(instance_call_handler, InstanceCallHandler, Object)
+ DECL_RARE_ACCESSORS(instance_call_handler, InstanceCallHandler, HeapObject)
- DECL_RARE_ACCESSORS(access_check_info, AccessCheckInfo, Object)
+ DECL_RARE_ACCESSORS(access_check_info, AccessCheckInfo, HeapObject)
DECL_RARE_ACCESSORS(c_function, CFunction, Object)
DECL_RARE_ACCESSORS(c_signature, CSignature, Object)
@@ -138,12 +137,7 @@ class FunctionTemplateInfo
Handle<Object> getter);
// Bit position in the flag, from least significant bit position.
- static const int kUndetectableBit = 0;
- static const int kNeedsAccessCheckBit = 1;
- static const int kReadOnlyPrototypeBit = 2;
- static const int kRemovePrototypeBit = 3;
- static const int kDoNotCacheBit = 4;
- static const int kAcceptAnyReceiver = 5;
+ DEFINE_TORQUE_GENERATED_FUNCTION_TEMPLATE_INFO_FLAGS()
private:
static inline FunctionTemplateRareData EnsureFunctionTemplateRareData(
@@ -170,8 +164,7 @@ class ObjectTemplateInfo
inline ObjectTemplateInfo GetParent(Isolate* isolate);
private:
- using IsImmutablePrototype = base::BitField<bool, 0, 1>;
- using EmbedderFieldCount = IsImmutablePrototype::Next<int, 29>;
+ DEFINE_TORQUE_GENERATED_OBJECT_TEMPLATE_INFO_FLAGS()
TQ_OBJECT_CONSTRUCTORS(ObjectTemplateInfo)
};