Reviewers: Lasse Reichstein,

Description:
Remove unused constructor BinaryOperation(Assignment* compound_assignment).


BUG=
TEST=


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

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

Affected files:
  M src/ast.h
  M src/ast.cc


Index: src/ast.cc
diff --git a/src/ast.cc b/src/ast.cc
index 79e5f8ad7e0c329ced14a0e5bda41d04717e45a8..7c29409bcbc3f19d1062a20991449e7fa8178790 100644
--- a/src/ast.cc
+++ b/src/ast.cc
@@ -337,15 +337,6 @@ bool BinaryOperation::ResultOverwriteAllowed() {
 }


-BinaryOperation::BinaryOperation(Assignment* assignment) {
-  ASSERT(assignment->is_compound());
-  op_ = assignment->binary_op();
-  left_ = assignment->target();
-  right_ = assignment->value();
-  pos_ = assignment->position();
-}
-
-
// ----------------------------------------------------------------------------
 // Inlining support

Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 1dabcaa625a32836a2d78a2c922aa02a7a8dc3b2..b98b8e761e3aeeb1dc42c9c58edb2636ef66391a 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -1427,9 +1427,6 @@ class BinaryOperation: public Expression {
         : AstNode::kNoNumber;
   }

-  // Create the binary operation corresponding to a compound assignment.
-  explicit BinaryOperation(Assignment* assignment);
-
   DECLARE_NODE_TYPE(BinaryOperation)

   virtual bool IsInlineable() const;


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

Reply via email to