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

Unified Diff: runtime/vm/isolate.h

Issue 10832150: Get rid of ast node ids. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.h
===================================================================
--- runtime/vm/isolate.h (revision 10302)
+++ runtime/vm/isolate.h (working copy)
@@ -174,17 +174,20 @@
uword spawn_data() const { return spawn_data_; }
void set_spawn_data(uword value) { spawn_data_ = value; }
- // Deprecate.
- intptr_t ast_node_id() const { return ast_node_id_; }
- void set_ast_node_id(int value) { ast_node_id_ = value; }
+ static const intptr_t kNoDeoptId = -1;
+ intptr_t deopt_id() const { return deopt_id_; }
+ void set_deopt_id(int value) {
+ ASSERT(value >= 0);
+ deopt_id_ = value;
+ }
+ intptr_t GetNextDeoptId() {
+ ASSERT(deopt_id_ != kNoDeoptId);
+ return deopt_id_++;
+ }
- intptr_t computation_id() const { return computation_id_; }
- void set_computation_id(int value) { computation_id_ = value; }
- intptr_t GetNextCid() { return computation_id_++; }
-
RawArray* ic_data_array() const { return ic_data_array_; }
void set_ic_data_array(RawArray* value) { ic_data_array_ = value; }
- ICData* GetICDataForCid(intptr_t cid) const;
+ ICData* GetICDataForDeoptId(intptr_t deopt_id) const;
Debugger* debugger() const { return debugger_; }
@@ -258,8 +261,7 @@
Debugger* debugger_;
LongJump* long_jump_base_;
TimerList timer_list_;
- intptr_t ast_node_id_; // Deprecate.
- intptr_t computation_id_;
+ intptr_t deopt_id_;
RawArray* ic_data_array_;
Mutex* mutex_; // protects stack_limit_ and saved_stack_limit_.
uword stack_limit_;
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698