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

Unified Diff: runtime/vm/ast.h

Issue 10356108: With removal of increment operations, each node has a unique id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 months 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 | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 7508)
+++ runtime/vm/ast.h (working copy)
@@ -105,18 +105,12 @@
intptr_t token_index() const { return token_index_; }
- virtual void SetIcDataAtId(intptr_t node_id, const ICData& value) {
- ASSERT(id() == node_id);
- set_ic_data(value);
- }
- virtual const ICData& ICDataAtId(intptr_t node_id) const {
- ASSERT(id() == node_id);
- return ic_data_;
+ const ICData& ic_data() const { return ic_data_; }
+ void set_ic_data(const ICData& value) {
+ ic_data_ = value.raw();
}
- virtual bool HasId(intptr_t value) const { return id_ == value; }
-
intptr_t id() const { return id_; }
void set_info(CodeGenInfo* info) { info_ = info; }
@@ -164,11 +158,6 @@
protected:
friend class ParsedFunction;
- const ICData& ic_data() const { return ic_data_; }
- void set_ic_data(const ICData& value) {
- ic_data_ = value.raw();
- }
-
static intptr_t GetNextId() {
Isolate* isolate = Isolate::Current();
intptr_t tmp = isolate->ast_node_id();
« no previous file with comments | « no previous file | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698