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

Unified Diff: src/interface-descriptors.h

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 5 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/interface-descriptors.h
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h
index c5e104fba833372a40313ef309858a14e4d3f258..14fbdfa35def6791616ad1371603a3c74a2eea4d 100644
--- a/src/interface-descriptors.h
+++ b/src/interface-descriptors.h
@@ -24,6 +24,7 @@ class PlatformInterfaceDescriptor;
V(FastNewClosure) \
V(FastNewContext) \
V(ToNumber) \
+ V(ToObject) \
V(NumberToString) \
V(Typeof) \
V(FastCloneShallowArray) \
@@ -339,6 +340,14 @@ class ToNumberDescriptor : public CallInterfaceDescriptor {
};
+class ToObjectDescriptor : public CallInterfaceDescriptor {
+ public:
+ enum ParameterIndices { kReceiverIndex };
+
+ DECLARE_DESCRIPTOR(ToObjectDescriptor, CallInterfaceDescriptor)
+};
+
+
class NumberToStringDescriptor : public CallInterfaceDescriptor {
public:
DECLARE_DESCRIPTOR(NumberToStringDescriptor, CallInterfaceDescriptor)

Powered by Google App Engine
This is Rietveld 408576698