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

Unified Diff: src/interface-descriptors.h

Issue 1894953004: Add HasProperty code stub that tries simple lookups or jumps to runtime otherwise. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 8 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
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interface-descriptors.h
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h
index fe9c0d6c035db535d21718844c9b01d7be6fbb68..611498acbd63a7361eb3456c411bb48b76b3d00d 100644
--- a/src/interface-descriptors.h
+++ b/src/interface-descriptors.h
@@ -71,6 +71,7 @@ class PlatformInterfaceDescriptor;
V(StringCompare) \
V(Keyed) \
V(Named) \
+ V(HasProperty) \
V(CallHandler) \
V(ArgumentAdaptor) \
V(ApiCallbackWith0Args) \
@@ -432,6 +433,15 @@ class TypeConversionDescriptor final : public CallInterfaceDescriptor {
static const Register ArgumentRegister();
};
+class HasPropertyDescriptor final : public CallInterfaceDescriptor {
+ public:
+ enum ParameterIndices { kKeyIndex, kObjectIndex };
+
+ DECLARE_DESCRIPTOR(HasPropertyDescriptor, CallInterfaceDescriptor)
+
+ static const Register KeyRegister();
+ static const Register ObjectRegister();
+};
class TypeofDescriptor : public CallInterfaceDescriptor {
public:
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698