Chromium Code Reviews| Index: src/ast.h |
| diff --git a/src/ast.h b/src/ast.h |
| index c75938e22d8689010a630ddbfd804a6093d59384..a5c7cb145a408876a7f8b8f0eb75f91b1e7c7533 100644 |
| --- a/src/ast.h |
| +++ b/src/ast.h |
| @@ -184,7 +184,7 @@ class AstNode: public ZoneObject { |
| // For generating IDs for AstNodes. |
| class IdGen { |
| public: |
| - explicit IdGen(int id = 0) : id_(id) {} |
| + IdGen() : id_(BailoutId::FirstUsable().ToInt()) {} |
|
wingo
2014/10/08 13:34:46
What is the plan with bailout ids -- still a per-f
|
| int GetNextId() { return ReserveIdRange(1); } |
| int ReserveIdRange(int n) { |
| @@ -195,6 +195,8 @@ class AstNode: public ZoneObject { |
| private: |
| int id_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(IdGen); |
| }; |
| #define DECLARE_TYPE_ENUM(type) k##type, |