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

Unified Diff: runtime/vm/ast.h

Issue 11447012: Kill unused CodeGenInfo field in AstNode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
diff --git a/runtime/vm/ast.h b/runtime/vm/ast.h
index 104ebf378cac30b47d74647c14274e5360c12596..a9be2622f9238ed9c7050b7d776b179b9a46878c 100644
--- a/runtime/vm/ast.h
+++ b/runtime/vm/ast.h
@@ -65,8 +65,6 @@ namespace dart {
NODE_LIST(DEFINE_FORWARD_DECLARATION)
#undef DEFINE_FORWARD_DECLARATION
-// Forward declarations.
-class CodeGenInfo;
// Abstract class to implement an AST node visitor. An example is AstPrinter.
class AstNodeVisitor : public ValueObject {
@@ -95,22 +93,17 @@ class AstNode : public ZoneAllocated {
public:
explicit AstNode(intptr_t token_pos)
: token_pos_(token_pos),
- ic_data_(ICData::ZoneHandle()),
- info_(NULL) {
+ ic_data_(ICData::ZoneHandle()) {
ASSERT(token_pos_ >= 0);
}
intptr_t token_pos() const { return token_pos_; }
-
const ICData& ic_data() const { return ic_data_; }
void set_ic_data(const ICData& value) {
ic_data_ = value.raw();
}
- void set_info(CodeGenInfo* info) { info_ = info; }
- CodeGenInfo* info() const { return info_; }
-
#define AST_TYPE_CHECK(type, name) \
virtual bool Is##type() const { return false; } \
virtual type* As##type() { return NULL; }
@@ -157,8 +150,6 @@ NODE_LIST(AST_TYPE_CHECK)
const intptr_t token_pos_;
// IC data collected for this node.
ICData& ic_data_;
- // Used by optimizing compiler.
- CodeGenInfo* info_;
DISALLOW_COPY_AND_ASSIGN(AstNode);
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698