Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 7ddb01e3e4d55f6a6e9d36e7d173a11c2989c4c4..c1ea0a8b3df790a271143bd8044e09b7964dfc5f 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -125,18 +125,17 @@ Assignment::Assignment(Token::Value op, |
target_(target), |
value_(value), |
pos_(pos), |
- binary_operation_(NULL), |
- compound_load_id_(kNoNumber), |
- assignment_id_(GetNextId()), |
+ compound_bailout_id_(kNoNumber), |
block_start_(false), |
block_end_(false), |
is_monomorphic_(false), |
receiver_types_(NULL) { |
ASSERT(Token::IsAssignmentOp(op)); |
+ binary_operation_ = is_compound() |
+ ? new BinaryOperation(binary_op(), target, value, pos + 1) |
+ : NULL; |
if (is_compound()) { |
- binary_operation_ = |
- new BinaryOperation(binary_op(), target, value, pos + 1); |
- compound_load_id_ = GetNextId(); |
+ compound_bailout_id_ = GetNextId(); |
} |
} |