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

Side by Side Diff: runtime/vm/code_descriptors.h

Issue 10882055: Put live register bits in stackmaps. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_CODE_DESCRIPTORS_H_ 5 #ifndef VM_CODE_DESCRIPTORS_H_
6 #define VM_CODE_DESCRIPTORS_H_ 6 #define VM_CODE_DESCRIPTORS_H_
7 7
8 #include "vm/globals.h" 8 #include "vm/globals.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 65
66 class StackmapTableBuilder : public ZoneAllocated { 66 class StackmapTableBuilder : public ZoneAllocated {
67 public: 67 public:
68 explicit StackmapTableBuilder() 68 explicit StackmapTableBuilder()
69 : stack_map_(Stackmap::ZoneHandle()), 69 : stack_map_(Stackmap::ZoneHandle()),
70 list_(GrowableObjectArray::ZoneHandle( 70 list_(GrowableObjectArray::ZoneHandle(
71 GrowableObjectArray::New(Heap::kOld))) { } 71 GrowableObjectArray::New(Heap::kOld))) { }
72 ~StackmapTableBuilder() { } 72 ~StackmapTableBuilder() { }
73 73
74 void AddEntry(intptr_t pc_offset, BitmapBuilder* bitmap); 74 void AddEntry(intptr_t pc_offset,
75 BitmapBuilder* bitmap,
76 intptr_t register_count);
75 77
76 bool Verify(); 78 bool Verify();
77 79
78 RawArray* FinalizeStackmaps(const Code& code); 80 RawArray* FinalizeStackmaps(const Code& code);
79 81
80 private: 82 private:
81 intptr_t Length() const { return list_.Length(); } 83 intptr_t Length() const { return list_.Length(); }
82 RawStackmap* MapAt(int index) const; 84 RawStackmap* MapAt(int index) const;
83 85
84 Stackmap& stack_map_; 86 Stackmap& stack_map_;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 130 }
129 131
130 private: 132 private:
131 GrowableArray<struct HandlerDesc> list_; 133 GrowableArray<struct HandlerDesc> list_;
132 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList); 134 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList);
133 }; 135 };
134 136
135 } // namespace dart 137 } // namespace dart
136 138
137 #endif // VM_CODE_DESCRIPTORS_H_ 139 #endif // VM_CODE_DESCRIPTORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698