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

Unified Diff: src/ast.cc

Issue 5862002: Version 3.0.2. (Closed)
Patch Set: Created 10 years 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
« ChangeLog ('K') | « src/ast.h ('k') | src/ast-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
}
« ChangeLog ('K') | « src/ast.h ('k') | src/ast-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698