Small cleanup: AstConstructionVisitor no longer needs a Zone pointer.
R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/265623002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21088 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d46e3a77a0
commit
f720123189
11
src/ast.h
11
src/ast.h
@ -2885,9 +2885,7 @@ private: \
|
|||||||
|
|
||||||
class AstConstructionVisitor BASE_EMBEDDED {
|
class AstConstructionVisitor BASE_EMBEDDED {
|
||||||
public:
|
public:
|
||||||
explicit AstConstructionVisitor(Zone* zone)
|
AstConstructionVisitor() : dont_optimize_reason_(kNoReason) { }
|
||||||
: dont_optimize_reason_(kNoReason),
|
|
||||||
zone_(zone) { }
|
|
||||||
|
|
||||||
AstProperties* ast_properties() { return &properties_; }
|
AstProperties* ast_properties() { return &properties_; }
|
||||||
BailoutReason dont_optimize_reason() { return dont_optimize_reason_; }
|
BailoutReason dont_optimize_reason() { return dont_optimize_reason_; }
|
||||||
@ -2917,14 +2915,11 @@ class AstConstructionVisitor BASE_EMBEDDED {
|
|||||||
|
|
||||||
AstProperties properties_;
|
AstProperties properties_;
|
||||||
BailoutReason dont_optimize_reason_;
|
BailoutReason dont_optimize_reason_;
|
||||||
Zone* zone_;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class AstNullVisitor BASE_EMBEDDED {
|
class AstNullVisitor BASE_EMBEDDED {
|
||||||
public:
|
public:
|
||||||
explicit AstNullVisitor(Zone* zone) {}
|
|
||||||
|
|
||||||
// Node visitors.
|
// Node visitors.
|
||||||
#define DEF_VISIT(type) \
|
#define DEF_VISIT(type) \
|
||||||
void Visit##type(type* node) {}
|
void Visit##type(type* node) {}
|
||||||
@ -2940,9 +2935,7 @@ class AstNullVisitor BASE_EMBEDDED {
|
|||||||
template<class Visitor>
|
template<class Visitor>
|
||||||
class AstNodeFactory V8_FINAL BASE_EMBEDDED {
|
class AstNodeFactory V8_FINAL BASE_EMBEDDED {
|
||||||
public:
|
public:
|
||||||
explicit AstNodeFactory(Zone* zone)
|
explicit AstNodeFactory(Zone* zone) : zone_(zone) { }
|
||||||
: zone_(zone),
|
|
||||||
visitor_(zone) { }
|
|
||||||
|
|
||||||
Visitor* visitor() { return &visitor_; }
|
Visitor* visitor() { return &visitor_; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user