Index: src/interface-descriptors.h |
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h |
index 821a99b55d09354a7fc7b3d1959de942d6de4e83..08a0bb3214bc80c1b18d563ff88c7e5f1c009d0d 100644 |
--- a/src/interface-descriptors.h |
+++ b/src/interface-descriptors.h |
@@ -306,10 +306,14 @@ class LoadDescriptor : public CallInterfaceDescriptor { |
class LoadGlobalDescriptor : public CallInterfaceDescriptor { |
public: |
- DEFINE_PARAMETERS(kSlot) |
+ DEFINE_PARAMETERS(kName, kSlot) |
DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadGlobalDescriptor, |
CallInterfaceDescriptor) |
+ static const Register NameRegister() { |
+ return LoadDescriptor::NameRegister(); |
+ } |
+ |
static const Register SlotRegister() { |
return LoadDescriptor::SlotRegister(); |
} |
@@ -400,7 +404,7 @@ class LoadICProtoArrayDescriptor : public LoadWithVectorDescriptor { |
class LoadGlobalWithVectorDescriptor : public LoadGlobalDescriptor { |
public: |
- DEFINE_PARAMETERS(kSlot, kVector) |
+ DEFINE_PARAMETERS(kName, kSlot, kVector) |
DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadGlobalWithVectorDescriptor, |
LoadGlobalDescriptor) |