Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index 59201653ce7b18df2d2baaf87a3bcadd02120b4e..f2bd495cc742c1643e8ea12ef9806bb2ce3ea1a5 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -10526,6 +10526,9 @@ class AccessorInfo: public Struct { |
inline void set_property_attributes(PropertyAttributes attributes); |
// Checks whether the given receiver is compatible with this accessor. |
+ static bool IsCompatibleReceiverType(Isolate* isolate, |
+ Handle<AccessorInfo> info, |
+ Handle<HeapType> type); |
inline bool IsCompatibleReceiver(Object* receiver); |
DECLARE_CAST(AccessorInfo) |
@@ -10545,6 +10548,9 @@ class AccessorInfo: public Struct { |
static const int kSize = kExpectedReceiverTypeOffset + kPointerSize; |
private: |
+ inline bool HasExpectedReceiverType() { |
+ return expected_receiver_type()->IsFunctionTemplateInfo(); |
+ } |
// Bit positions in flag. |
static const int kAllCanReadBit = 0; |
static const int kAllCanWriteBit = 1; |