Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: src/x64/interface-descriptors-x64.cc

Issue 1402943002: [Interpreter] Support for operator new. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix rebasing error. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/x64/interface-descriptors-x64.cc
diff --git a/src/x64/interface-descriptors-x64.cc b/src/x64/interface-descriptors-x64.cc
index c323a2d5dba402651aa3b47ffb5ffbe78e520e67..22490a89593f5ef00a17a5782f86080ec2b59ed7 100644
--- a/src/x64/interface-descriptors-x64.cc
+++ b/src/x64/interface-descriptors-x64.cc
@@ -388,8 +388,20 @@ void InterpreterPushArgsAndCallDescriptor::InitializePlatformSpecific(
CallInterfaceDescriptorData* data) {
Register registers[] = {
rax, // argument count (not including receiver)
+ rbx, // address of first argument.
+ rdi // the constructor.
rmcilroy 2015/10/13 14:07:30 I don't think this change was intended?
oth 2015/10/14 08:40:09 Done. Darn!
+ };
+ data->InitializePlatformSpecific(arraysize(registers), registers);
+}
+
+
+void InterpreterPushArgsAndConstructDescriptor::InitializePlatformSpecific(
+ CallInterfaceDescriptorData* data) {
+ Register registers[] = {
+ rax, // argument count (not including receiver)
+ rdx, // original constructor
+ rdi, // constructor
rbx, // address of first argument
- rdi // the target callable to be call
};
data->InitializePlatformSpecific(arraysize(registers), registers);
}

Powered by Google App Engine
This is Rietveld 408576698