Index: src/x64/interface-descriptors-x64.cc |
diff --git a/src/x64/interface-descriptors-x64.cc b/src/x64/interface-descriptors-x64.cc |
index b99af21f0327e4840da2a07456d54c09187ac6c0..f151c47bfbffe3f38d603adfaea7e04d539e0512 100644 |
--- a/src/x64/interface-descriptors-x64.cc |
+++ b/src/x64/interface-descriptors-x64.cc |
@@ -211,6 +211,17 @@ void CallTrampolineDescriptor::InitializePlatformSpecific( |
} |
+void ConstructStubDescriptor::InitializePlatformSpecific( |
+ CallInterfaceDescriptorData* data) { |
+ // rax : number of arguments |
+ // rdx : the new target |
+ // rdi : the target to call |
+ // rbx : allocation site or undefined |
+ Register registers[] = {rdi, rdx, rax, rbx}; |
+ data->InitializePlatformSpecific(arraysize(registers), registers); |
+} |
+ |
+ |
void ConstructTrampolineDescriptor::InitializePlatformSpecific( |
CallInterfaceDescriptorData* data) { |
// rax : number of arguments |