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

Unified Diff: runtime/vm/code_descriptors.h

Issue 382993003: More PcDescriptor cleanups. (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
« no previous file with comments | « no previous file | runtime/vm/code_descriptors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_descriptors.h
===================================================================
--- runtime/vm/code_descriptors.h (revision 38237)
+++ runtime/vm/code_descriptors.h (working copy)
@@ -30,8 +30,8 @@
}
};
- explicit DescriptorList(intptr_t initial_capacity) : list_(initial_capacity) {
- }
+ explicit DescriptorList(intptr_t initial_capacity)
+ : list_(initial_capacity), has_try_index_(false) {}
~DescriptorList() { }
intptr_t Length() const {
@@ -54,7 +54,7 @@
return list_[index].DeoptReason();
}
intptr_t TryIndex(intptr_t index) const {
- return list_[index].try_index;
+ return (has_try_index_) ? list_[index].try_index : -1;
}
void AddDescriptor(RawPcDescriptors::Kind kind,
@@ -67,6 +67,7 @@
private:
GrowableArray<struct PcDesc> list_;
+ bool has_try_index_;
DISALLOW_COPY_AND_ASSIGN(DescriptorList);
};
« no previous file with comments | « no previous file | runtime/vm/code_descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698