Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: src/objects-inl.h

Issue 1473023004: Inline functions to speedup GetElement (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698