Reviewers: Vyacheslav Egorov,

Description:
Fix number of result operands for LThrow.

This instruction does not produce a result. We don't need a result
LOperand for it.


Please review this at http://codereview.chromium.org/6306001/

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/ia32/lithium-ia32.h
  M     src/x64/lithium-x64.h


Index: src/ia32/lithium-ia32.h
===================================================================
--- src/ia32/lithium-ia32.h     (revision 6300)
+++ src/ia32/lithium-ia32.h     (working copy)
@@ -1189,9 +1189,9 @@
 };


-class LThrow: public LUnaryOperation<1> {
+class LThrow: public LUnaryOperation<0> {
  public:
-  explicit LThrow(LOperand* value) : LUnaryOperation<1>(value) { }
+  explicit LThrow(LOperand* value) : LUnaryOperation<0>(value) { }

   DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
 };
Index: src/x64/lithium-x64.h
===================================================================
--- src/x64/lithium-x64.h       (revision 6300)
+++ src/x64/lithium-x64.h       (working copy)
@@ -1189,9 +1189,9 @@
 };


-class LThrow: public LUnaryOperation<1> {
+class LThrow: public LUnaryOperation<0> {
  public:
-  explicit LThrow(LOperand* value) : LUnaryOperation<1>(value) { }
+  explicit LThrow(LOperand* value) : LUnaryOperation<0>(value) { }

   DECLARE_CONCRETE_INSTRUCTION(Throw, "throw")
 };


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to