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

Unified Diff: src/runtime/runtime.h

Issue 1292283005: Prototype CL for faster DOM accessors. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: #ifdef + feedback Created 5 years, 3 months 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
Index: src/runtime/runtime.h
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index b22a36f1cbee986c57bbc73542f0d4ee7a79ad51..81f4afc6b895b0d056bba48e270ead211145746d 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -1027,6 +1027,17 @@ namespace internal {
F(LoadLookupSlot, 2, 2) \
F(LoadLookupSlotNoReferenceError, 2, 2)
+#ifdef V8_JS_ACCESSORS
+#define FOR_EACH_INTRINSIC_DIRECT_PTR_ACCESS(F) \
+ F(PtrGetFromInternalField, 2, 1) \
+ F(PtrLoadOffset, 2, 1) \
+ F(PtrLoadOffsetInt, 2, 1) \
+ F(PtrLoadOffsetObj, 1, 1) \
+ F(PtrIsNull, 1, 1)
+#else
+#define FOR_EACH_INTRINSIC_DIRECT_PTR_ACCESS(F)
+#endif // V8_JS_ACCESSORS
+
// Most intrinsics are implemented in the runtime/ directory, but ICs are
// implemented in ic.cc for now.
@@ -1087,7 +1098,8 @@ namespace internal {
FOR_EACH_INTRINSIC_SYMBOL(F) \
FOR_EACH_INTRINSIC_TEST(F) \
FOR_EACH_INTRINSIC_TYPEDARRAY(F) \
- FOR_EACH_INTRINSIC_URI(F)
+ FOR_EACH_INTRINSIC_URI(F) \
+ FOR_EACH_INTRINSIC_DIRECT_PTR_ACCESS(F)
// FOR_EACH_INTRINSIC defines the list of all intrinsics, coming in 2 flavors,
// either returning an object or a pair.
« no previous file with comments | « BUILD.gn ('k') | src/runtime/runtime-ptr.cc » ('j') | src/runtime/runtime-ptr.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698