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

Unified Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 853703002: [x86] Avoid memory form of PUSH/CALL for ATOM. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 11 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
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/x64/instruction-selector-x64.cc
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc
index c1f2e0cb201f671a46f748b88f5cc258227e5387..0e6e220306a8c921d01c8e10a00cf6f524022000 100644
--- a/src/compiler/x64/instruction-selector-x64.cc
+++ b/src/compiler/x64/instruction-selector-x64.cc
@@ -942,8 +942,11 @@ void InstructionSelector::VisitCall(Node* node) {
for (auto i = buffer.pushed_nodes.rbegin(); i != buffer.pushed_nodes.rend();
++i) {
// TODO(titzer): handle pushing double parameters.
- Emit(kX64Push, nullptr,
- g.CanBeImmediate(*i) ? g.UseImmediate(*i) : g.Use(*i));
+ InstructionOperand* value =
+ g.CanBeImmediate(*i) ? g.UseImmediate(*i) : IsSupported(ATOM)
+ ? g.UseRegister(*i)
+ : g.Use(*i);
+ Emit(kX64Push, nullptr, value);
}
// Select the appropriate opcode based on the call type.
« no previous file with comments | « src/compiler/ia32/instruction-selector-ia32.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698