Index: src/interface-descriptors.h |
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h |
index c4a1e340f5913712c84d3114237d963c91599d5c..67563f371740f2b6af39414046b332be6963b60b 100644 |
--- a/src/interface-descriptors.h |
+++ b/src/interface-descriptors.h |
@@ -21,6 +21,7 @@ class PlatformInterfaceDescriptor; |
V(ContextOnly) \ |
V(Load) \ |
V(LoadWithVector) \ |
+ V(LoadField) \ |
V(LoadICProtoArray) \ |
V(LoadGlobal) \ |
V(LoadGlobalWithVector) \ |
@@ -308,6 +309,18 @@ class LoadDescriptor : public CallInterfaceDescriptor { |
static const Register SlotRegister(); |
}; |
+// LoadFieldDescriptor is used by the shared handler that loads a field from an |
+// object based on the smi-encoded field description. |
+class LoadFieldDescriptor : public CallInterfaceDescriptor { |
+ public: |
+ DEFINE_PARAMETERS(kReceiver, kSmiHandler) |
+ DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadFieldDescriptor, |
+ CallInterfaceDescriptor) |
+ |
+ static const Register ReceiverRegister(); |
+ static const Register SmiHandlerRegister(); |
+}; |
+ |
class LoadGlobalDescriptor : public CallInterfaceDescriptor { |
public: |
DEFINE_PARAMETERS(kName, kSlot) |