Chromium Code Reviews| Index: src/ast.h |
| diff --git a/src/ast.h b/src/ast.h |
| index e2ea93354688c3fd82a379cf91321995f50918f4..5a62606cae2d2f85ba2f0be71f679f23cb09fbdc 100644 |
| --- a/src/ast.h |
| +++ b/src/ast.h |
| @@ -441,6 +441,8 @@ class Block V8_FINAL : public BreakableStatement { |
| ZoneList<Statement*>* statements() { return &statements_; } |
| bool is_initializer_block() const { return is_initializer_block_; } |
| + const BailoutId DeclsId() const { return decls_id_; } |
|
rossberg
2014/06/04 12:54:53
nit: the first const here does not have any meanin
ulan
2014/06/04 14:02:05
Done.
|
| + |
| virtual bool IsJump() const V8_OVERRIDE { |
| return !statements_.is_empty() && statements_.last()->IsJump() |
| && labels() == NULL; // Good enough as an approximation... |
| @@ -458,12 +460,14 @@ class Block V8_FINAL : public BreakableStatement { |
| : BreakableStatement(zone, labels, TARGET_FOR_NAMED_ONLY, pos), |
| statements_(capacity, zone), |
| is_initializer_block_(is_initializer_block), |
| + decls_id_(GetNextId(zone)), |
| scope_(NULL) { |
| } |
| private: |
| ZoneList<Statement*> statements_; |
| bool is_initializer_block_; |
| + const BailoutId decls_id_; |
| Scope* scope_; |
| }; |