Index: src/objects.h |
diff --git a/src/objects.h b/src/objects.h |
index d66f839bf75ad7d215ad4095eacf9dd49f3cc584..ef8416ae4382dc27e20774b04232e8f2af4ce28d 100644 |
--- a/src/objects.h |
+++ b/src/objects.h |
@@ -1949,9 +1949,8 @@ class JSObject: public JSReceiver { |
// Returns the index'th element. |
// The undefined object if index is out of bounds. |
MUST_USE_RESULT static MaybeHandle<Object> GetElementWithInterceptor( |
- Handle<JSObject> object, |
- Handle<Object> receiver, |
- uint32_t index); |
+ Handle<JSObject> object, Handle<Object> receiver, uint32_t index, |
+ bool check_prototype); |
enum SetFastElementsCapacitySmiMode { |
kAllowSmiElements, |
@@ -2297,6 +2296,14 @@ class JSObject: public JSReceiver { |
MUST_USE_RESULT static MaybeHandle<Object> SetFastDoubleElement( |
Handle<JSObject> object, uint32_t index, Handle<Object> value, |
LanguageMode language_mode, bool check_prototype = true); |
+ MUST_USE_RESULT static MaybeHandle<Object> GetElementWithFailedAccessCheck( |
+ Isolate* isolate, Handle<JSObject> object, Handle<Object> receiver, |
+ uint32_t index); |
+ MUST_USE_RESULT static Maybe<PropertyAttributes> |
+ GetElementAttributesWithFailedAccessCheck(Isolate* isolate, |
+ Handle<JSObject> object, |
+ Handle<Object> receiver, |
+ uint32_t index); |
MUST_USE_RESULT static MaybeHandle<Object> SetPropertyWithFailedAccessCheck( |
LookupIterator* it, Handle<Object> value, LanguageMode language_mode); |
@@ -10543,6 +10550,7 @@ class InterceptorInfo: public Struct { |
DECL_ACCESSORS(enumerator, Object) |
DECL_ACCESSORS(data, Object) |
DECL_BOOLEAN_ACCESSORS(can_intercept_symbols) |
+ DECL_BOOLEAN_ACCESSORS(all_can_read) |
inline int flags() const; |
inline void set_flags(int flags); |
@@ -10563,6 +10571,7 @@ class InterceptorInfo: public Struct { |
static const int kSize = kFlagsOffset + kPointerSize; |
static const int kCanInterceptSymbolsBit = 0; |
+ static const int kAllCanReadBit = 1; |
private: |
DISALLOW_IMPLICIT_CONSTRUCTORS(InterceptorInfo); |