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

Unified Diff: runtime/vm/intermediate_language.h

Issue 790213004: Add inlining ranges/intervals to code objects so that we can map a pc to the inlined stack. The map… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 42443)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -611,6 +611,7 @@
next_(NULL),
env_(NULL),
locs_(NULL),
+ inlining_id_(-1),
place_id_(kNoPlaceId) { }
virtual ~Instruction() { }
@@ -815,6 +816,13 @@
void set_place_id(intptr_t place_id) { place_id_ = place_id; }
bool HasPlaceId() const { return place_id_ != kNoPlaceId; }
+ intptr_t inlining_id() const { return inlining_id_; }
+ void set_inlining_id(intptr_t value) {
+ ASSERT(value >= 0);
+ inlining_id_ = value;
+ }
+ bool has_inlining_id() const { return inlining_id_ >= 0; }
+
// Returns a hash code for use with hash maps.
virtual intptr_t Hashcode() const;
@@ -882,6 +890,7 @@
Instruction* next_;
Environment* env_;
LocationSummary* locs_;
+ intptr_t inlining_id_;
intptr_t place_id_;
DISALLOW_COPY_AND_ASSIGN(Instruction);

Powered by Google App Engine
This is Rietveld 408576698