summaryrefslogtreecommitdiff
path: root/deps/v8/src/lookup.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/lookup.h')
-rw-r--r--deps/v8/src/lookup.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/deps/v8/src/lookup.h b/deps/v8/src/lookup.h
index 3888ed6240..5396619852 100644
--- a/deps/v8/src/lookup.h
+++ b/deps/v8/src/lookup.h
@@ -158,6 +158,12 @@ class LookupIterator final BASE_EMBEDDED {
return it;
}
+ static LookupIterator PropertyOrElement(
+ Isolate* isolate, Handle<Object> receiver, Handle<Object> key,
+ bool* success, Configuration configuration = DEFAULT);
+
+ void Restart() { RestartInternal(InterceptorState::kUninitialized); }
+
Isolate* isolate() const { return isolate_; }
State state() const { return state_; }
@@ -256,7 +262,10 @@ class LookupIterator final BASE_EMBEDDED {
MUST_USE_RESULT inline JSReceiver* NextHolder(Map* map);
inline State LookupInHolder(Map* map, JSReceiver* holder);
- void RestartLookupForNonMaskingInterceptors();
+ void RestartLookupForNonMaskingInterceptors() {
+ RestartInternal(InterceptorState::kProcessNonMasking);
+ }
+ void RestartInternal(InterceptorState interceptor_state);
State LookupNonMaskingInterceptorInHolder(Map* map, JSReceiver* holder);
Handle<Object> FetchValue() const;
void ReloadPropertyInformation();
@@ -316,6 +325,7 @@ class LookupIterator final BASE_EMBEDDED {
};
-} } // namespace v8::internal
+} // namespace internal
+} // namespace v8
#endif // V8_LOOKUP_H_