Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index a217f0032b62ede6484018b07a6f0582cb634e74..16cd9620eee87383c13f1874b7ab8180dc8f06c0 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1995,6 +1995,16 @@ void JSObject::initialize_elements() { |
} |
+InterceptorInfo* JSObject::GetIndexedInterceptor() { |
+ DCHECK(map()->has_indexed_interceptor()); |
+ JSFunction* constructor = JSFunction::cast(map()->GetConstructor()); |
+ DCHECK(constructor->shared()->IsApiFunction()); |
+ Object* result = |
+ constructor->shared()->get_api_func_data()->indexed_property_handler(); |
+ return InterceptorInfo::cast(result); |
+} |
+ |
+ |
ACCESSORS(Oddball, to_string, String, kToStringOffset) |
ACCESSORS(Oddball, to_number, Object, kToNumberOffset) |
ACCESSORS(Oddball, type_of, String, kTypeOfOffset) |