Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index cd47b5e62b0944d7fa7c12591de6b429721322a5..cac5cf746c1aaf6ce1198c516faabc6873587cdb 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1883,12 +1883,27 @@ void JSObject::initialize_elements() { |
InterceptorInfo* JSObject::GetIndexedInterceptor() { |
- DCHECK(map()->has_indexed_interceptor()); |
- JSFunction* constructor = JSFunction::cast(map()->GetConstructor()); |
+ return map()->GetIndexedInterceptor(); |
+} |
+ |
+InterceptorInfo* JSObject::GetNamedInterceptor() { |
+ return map()->GetNamedInterceptor(); |
+} |
+ |
+InterceptorInfo* Map::GetNamedInterceptor() { |
+ DCHECK(has_named_interceptor()); |
+ JSFunction* constructor = JSFunction::cast(GetConstructor()); |
+ DCHECK(constructor->shared()->IsApiFunction()); |
+ return InterceptorInfo::cast( |
+ constructor->shared()->get_api_func_data()->named_property_handler()); |
+} |
+ |
+InterceptorInfo* Map::GetIndexedInterceptor() { |
+ DCHECK(has_indexed_interceptor()); |
+ JSFunction* constructor = JSFunction::cast(GetConstructor()); |
DCHECK(constructor->shared()->IsApiFunction()); |
- Object* result = |
- constructor->shared()->get_api_func_data()->indexed_property_handler(); |
- return InterceptorInfo::cast(result); |
+ return InterceptorInfo::cast( |
+ constructor->shared()->get_api_func_data()->indexed_property_handler()); |
} |