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

Unified Diff: src/ia32/lithium-ia32.cc

Issue 12613004: To fully support hydrogen code stubs which accept a variable number of arguments, (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/lithium-ia32.cc
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
index 69b1c970c6a8759fa79dc2be821ad74a39afbf6a..2bc78010e7076142efbd64a2e322ba7f46170511 100644
--- a/src/ia32/lithium-ia32.cc
+++ b/src/ia32/lithium-ia32.cc
@@ -1954,7 +1954,11 @@ LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
LOperand* context = info()->IsStub()
? UseFixed(instr->context(), esi)
: NULL;
- return new(zone()) LReturn(UseFixed(instr->value(), eax), context);
+ LOperand* parameter_count = instr->has_constant_parameter_count()
+ ? NULL
+ : UseRegister(instr->parameter_count());
mvstanton 2013/03/07 13:30:13 Hi Danno, is UseRegister the best predicate?
danno 2013/03/07 15:11:14 As commented elsewhere, UseRegisterOrConstant, but
mvstanton 2013/03/07 16:48:49 Done.
+ return new(zone()) LReturn(UseFixed(instr->value(), eax), context,
+ parameter_count);
}
« src/ia32/lithium-ia32.h ('K') | « src/ia32/lithium-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698