Index: src/interface-descriptors.cc |
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc |
index d4faf5215b5afbbc02937dcac8112ddacc3bc88e..26b6422f6bfc1e4d75991477b86c2ffcc39e8764 100644 |
--- a/src/interface-descriptors.cc |
+++ b/src/interface-descriptors.cc |
@@ -74,6 +74,20 @@ void FastNewFunctionContextDescriptor::InitializePlatformSpecific( |
data->InitializePlatformSpecific(arraysize(registers), registers); |
} |
+void FastNewObjectDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ Register registers[] = {TargetRegister(), NewTargetRegister()}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+const Register FastNewObjectDescriptor::TargetRegister() { |
+ return kJSFunctionRegister; |
+} |
+ |
+const Register FastNewObjectDescriptor::NewTargetRegister() { |
+ return kJavaScriptCallNewTargetRegister; |
+} |
+ |
void LoadDescriptor::InitializePlatformIndependent( |
CallInterfaceDescriptorData* data) { |
// kReceiver, kName, kSlot |