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

Unified Diff: runtime/vm/code_descriptors.h

Issue 356923006: Iterate over PcDescriptors only via iterators, not via an index. (preparation for more compression … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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
Index: runtime/vm/code_descriptors.h
===================================================================
--- runtime/vm/code_descriptors.h (revision 38030)
+++ runtime/vm/code_descriptors.h (working copy)
@@ -17,7 +17,7 @@
public:
struct PcDesc {
intptr_t pc_offset; // PC offset value of the descriptor.
- PcDescriptors::Kind kind; // Descriptor kind (kDeopt, kOther).
+ RawPcDescriptors::Kind kind; // Descriptor kind (kDeopt, kOther).
intptr_t deopt_id; // Deoptimization id.
intptr_t data; // Token position or deopt reason.
intptr_t try_index; // Try block index of PC or deopt array index.
@@ -41,7 +41,7 @@
intptr_t PcOffset(intptr_t index) const {
return list_[index].pc_offset;
}
- PcDescriptors::Kind Kind(intptr_t index) const {
+ RawPcDescriptors::Kind Kind(intptr_t index) const {
return list_[index].kind;
}
intptr_t DeoptId(intptr_t index) const {
@@ -57,7 +57,7 @@
return list_[index].try_index;
}
- void AddDescriptor(PcDescriptors::Kind kind,
+ void AddDescriptor(RawPcDescriptors::Kind kind,
intptr_t pc_offset,
intptr_t deopt_id,
intptr_t token_index,

Powered by Google App Engine
This is Rietveld 408576698