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

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

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
Index: src/ia32/lithium-ia32.h
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
index 087eb74ecae2d928dec5cfe28157a30ee98e77e4..0c879352b68003567da1b65313e166b7aa2f7b38 100644
--- a/src/ia32/lithium-ia32.h
+++ b/src/ia32/lithium-ia32.h
@@ -1391,14 +1391,28 @@ class LArithmeticT: public LTemplateInstruction<1, 3, 0> {
};
-class LReturn: public LTemplateInstruction<0, 2, 0> {
+class LReturn: public LTemplateInstruction<0, 3, 0> {
public:
- explicit LReturn(LOperand* value, LOperand* context) {
+ explicit LReturn(LOperand* value, LOperand* context,
+ LOperand* parameter_count) {
inputs_[0] = value;
inputs_[1] = context;
+ inputs_[2] = parameter_count;
+ }
+
+ bool has_constant_parameter_count() const {
+ return hydrogen()->has_constant_parameter_count();
danno 2013/03/07 15:11:14 You can implement these in terms of calls on the p
mvstanton 2013/03/07 16:48:49 Done.
+ }
+ int constant_parameter_count() const {
+ return hydrogen()->constant_parameter_count();
+ }
+ LOperand* parameter_count() {
+ ASSERT(!has_constant_parameter_count());
+ return inputs_[2];
}
DECLARE_CONCRETE_INSTRUCTION(Return, "return")
+ DECLARE_HYDROGEN_ACCESSOR(Return)
};

Powered by Google App Engine
This is Rietveld 408576698