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

Unified Diff: runtime/vm/code_descriptors.cc

Issue 10825077: Change the stackmap builder API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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.cc
diff --git a/runtime/vm/code_descriptors.cc b/runtime/vm/code_descriptors.cc
index 6a8cd8de3c1f8384a83060aa9c183527b9016f67..37ed59ec9ee7c76ddea73f1184f5a63af3fb19f8 100644
--- a/runtime/vm/code_descriptors.cc
+++ b/runtime/vm/code_descriptors.cc
@@ -37,13 +37,14 @@ RawPcDescriptors* DescriptorList::FinalizePcDescriptors(uword entry_point) {
}
-void StackmapBuilder::AddEntry(intptr_t pc_offset) {
- stack_map_ = Stackmap::New(pc_offset, builder_);
+void StackmapTableBuilder::AddEntry(intptr_t pc_offset,
+ BitmapBuilder* bitmap) {
+ stack_map_ = Stackmap::New(pc_offset, bitmap);
list_.Add(stack_map_);
}
-bool StackmapBuilder::Verify() {
+bool StackmapTableBuilder::Verify() {
intptr_t num_entries = Length();
Stackmap& map1 = Stackmap::Handle();
Stackmap& map2 = Stackmap::Handle();
@@ -59,7 +60,7 @@ bool StackmapBuilder::Verify() {
}
-RawArray* StackmapBuilder::FinalizeStackmaps(const Code& code) {
+RawArray* StackmapTableBuilder::FinalizeStackmaps(const Code& code) {
ASSERT(Verify());
intptr_t num_entries = Length();
uword entry_point = code.EntryPoint();
@@ -75,7 +76,7 @@ RawArray* StackmapBuilder::FinalizeStackmaps(const Code& code) {
}
-RawStackmap* StackmapBuilder::Map(int index) const {
+RawStackmap* StackmapTableBuilder::Map(int index) const {
Stackmap& map = Stackmap::Handle();
map ^= list_.At(index);
return map.raw();

Powered by Google App Engine
This is Rietveld 408576698