| Index: src/ast.h
|
| diff --git a/src/ast.h b/src/ast.h
|
| index 27d82cb34139c5efaed5786a6ca58bbea30c86f3..1a72a582174d66c15aba64b60b31161cd09c52af 100644
|
| --- a/src/ast.h
|
| +++ b/src/ast.h
|
| @@ -321,7 +321,10 @@ class BreakableStatement: public Statement {
|
|
|
| class Block: public BreakableStatement {
|
| public:
|
| - inline Block(ZoneStringList* labels, int capacity, bool is_initializer_block);
|
| + inline Block(Zone* zone,
|
| + ZoneStringList* labels,
|
| + int capacity,
|
| + bool is_initializer_block);
|
|
|
| DECLARE_NODE_TYPE(Block)
|
|
|
| @@ -737,7 +740,7 @@ class IfStatement: public Statement {
|
| // stack in the compiler; this should probably be reworked.
|
| class TargetCollector: public AstNode {
|
| public:
|
| - TargetCollector(): targets_(0) { }
|
| + explicit TargetCollector(Zone* zone): targets_(zone, 0) { }
|
|
|
| // Adds a jump target to the collector. The collector stores a pointer not
|
| // a copy of the target to make binding work, so make sure not to pass in
|
| @@ -1867,7 +1870,7 @@ class CharacterSet BASE_EMBEDDED {
|
| explicit CharacterSet(ZoneList<CharacterRange>* ranges)
|
| : ranges_(ranges),
|
| standard_set_type_(0) {}
|
| - ZoneList<CharacterRange>* ranges();
|
| + ZoneList<CharacterRange>* ranges(Zone* zone);
|
| uc16 standard_set_type() { return standard_set_type_; }
|
| void set_standard_set_type(uc16 special_set_type) {
|
| standard_set_type_ = special_set_type;
|
| @@ -1902,7 +1905,7 @@ class RegExpCharacterClass: public RegExpTree {
|
| CharacterSet character_set() { return set_; }
|
| // TODO(lrn): Remove need for complex version if is_standard that
|
| // recognizes a mangled standard set and just do { return set_.is_special(); }
|
| - bool is_standard();
|
| + bool is_standard(Zone* zone);
|
| // Returns a value representing the standard character set if is_standard()
|
| // returns true.
|
| // Currently used values are:
|
| @@ -1915,7 +1918,7 @@ class RegExpCharacterClass: public RegExpTree {
|
| // . : non-unicode non-newline
|
| // * : All characters
|
| uc16 standard_type() { return set_.standard_set_type(); }
|
| - ZoneList<CharacterRange>* ranges() { return set_.ranges(); }
|
| + ZoneList<CharacterRange>* ranges(Zone* zone) { return set_.ranges(zone); }
|
| bool is_negated() { return is_negated_; }
|
|
|
| private:
|
| @@ -1945,7 +1948,7 @@ class RegExpAtom: public RegExpTree {
|
|
|
| class RegExpText: public RegExpTree {
|
| public:
|
| - RegExpText() : elements_(2), length_(0) {}
|
| + explicit RegExpText(Zone* zone) : elements_(zone, 2), length_(0) {}
|
| virtual void* Accept(RegExpVisitor* visitor, void* data);
|
| virtual RegExpNode* ToNode(RegExpCompiler* compiler,
|
| RegExpNode* on_success);
|
|
|