Chromium Code Reviews

Unified Diff: src/x64/code-stubs-x64.cc

Issue 137693003: Remove ArrayPush from the custom call generators, and instead call directly to the handler in crank… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Set up the platform-specific descriptor on ARM Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/x64/code-stubs-x64.cc
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
index 9b98d94f590813825f11eef02d379d5125096ca2..6f0c7ae53164821e0eeba0a2767a5956f9e057da 100644
--- a/src/x64/code-stubs-x64.cc
+++ b/src/x64/code-stubs-x64.cc
@@ -408,6 +408,20 @@ void CallDescriptors::InitializeForIsolate(Isolate* isolate) {
descriptor->register_params_ = registers;
descriptor->param_representations_ = representations;
}
+ {
+ CallInterfaceDescriptor* descriptor =
+ isolate->call_descriptor(Isolate::CallHandler);
+ static Register registers[] = { rsi, // context
+ rdx, // receiver
+ };
+ static Representation representations[] = {
+ Representation::Tagged(), // context
+ Representation::Tagged(), // receiver
+ };
+ descriptor->register_param_count_ = 2;
+ descriptor->register_params_ = registers;
+ descriptor->param_representations_ = representations;
+ }
}
« src/hydrogen.cc ('K') | « src/stub-cache.cc ('k') | test/mjsunit/object-seal.js » ('j') | no next file with comments »

Powered by Google App Engine