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

Unified Diff: runtime/vm/code_descriptors.h

Issue 10837303: Make stackmaps store their actual length. (Closed) Base URL: https://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
Index: runtime/vm/code_descriptors.h
diff --git a/runtime/vm/code_descriptors.h b/runtime/vm/code_descriptors.h
index 0d8e8381a6e67dc7c296ae939b3173267e9e7977..21474d7559c7d0aa499c8cb3e5604914cf5a55dd 100644
--- a/runtime/vm/code_descriptors.h
+++ b/runtime/vm/code_descriptors.h
@@ -65,8 +65,8 @@ class DescriptorList : public ZoneAllocated {
class StackmapTableBuilder : public ZoneAllocated {
public:
- explicit StackmapTableBuilder(intptr_t entry_length_in_bits)
- : entry_length_in_bits_(entry_length_in_bits),
+ explicit StackmapTableBuilder(intptr_t entry_length)
+ : entry_length_(entry_length),
stack_map_(Stackmap::ZoneHandle()),
list_(GrowableObjectArray::ZoneHandle(
GrowableObjectArray::New(Heap::kOld))) { }
@@ -83,7 +83,7 @@ class StackmapTableBuilder : public ZoneAllocated {
RawStackmap* MapAt(int index) const;
// All the stackmaps in a function have the same length.
- intptr_t entry_length_in_bits_;
+ const intptr_t entry_length_;
srdjan 2012/08/21 16:06:04 Why did you remove the _in_bits? I assume it is n
Kevin Millikin (Google) 2012/08/22 07:34:18 No, it's the number of entries in each stackmap.
Stackmap& stack_map_;
GrowableObjectArray& list_;
DISALLOW_COPY_AND_ASSIGN(StackmapTableBuilder);

Powered by Google App Engine
This is Rietveld 408576698