Index: src/interface-descriptors.h |
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h |
index 3fbc8d81e64fd7482cf85e1d992cd2b5e5379aa9..95585a874e20576e1e2963d41bf23830f1d9162f 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) |