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

Side by Side Diff: vm/code_descriptors.h

Issue 9791048: - Wire the stack frame iterator to use stack maps for traversing objects if there are stack maps in… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « vm/bitmap_test.cc ('k') | vm/code_descriptors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 DISALLOW_COPY_AND_ASSIGN(DescriptorList); 58 DISALLOW_COPY_AND_ASSIGN(DescriptorList);
59 }; 59 };
60 60
61 61
62 class StackmapBuilder : public ZoneAllocated { 62 class StackmapBuilder : public ZoneAllocated {
63 public: 63 public:
64 StackmapBuilder() : 64 StackmapBuilder() :
65 builder_(new BitmapBuilder()), 65 builder_(new BitmapBuilder()),
66 code_(Code::ZoneHandle()), 66 code_(Code::ZoneHandle()),
67 stack_map_(Stackmap::ZoneHandle()), 67 stack_map_(Stackmap::ZoneHandle()),
68 list_(GrowableObjectArray::ZoneHandle(GrowableObjectArray::New())) { } 68 list_(GrowableObjectArray::ZoneHandle(
69 GrowableObjectArray::New(Heap::kOld))) { }
69 ~StackmapBuilder() { } 70 ~StackmapBuilder() { }
70 71
71 // Gets state of stack slot (object or regular value). 72 // Gets state of stack slot (object or regular value).
72 bool IsSlotObject(intptr_t stack_slot) const { 73 bool IsSlotObject(intptr_t stack_slot) const {
73 ASSERT(builder_ != NULL); 74 ASSERT(builder_ != NULL);
74 return builder_->Get(stack_slot); 75 return builder_->Get(stack_slot);
75 } 76 }
76 // Sets stack slot as containing an object. 77 // Sets stack slot as containing an object.
77 void SetSlotAsObject(intptr_t stack_slot) { 78 void SetSlotAsObject(intptr_t stack_slot) {
78 ASSERT(builder_ != NULL); 79 ASSERT(builder_ != NULL);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 } 154 }
154 155
155 private: 156 private:
156 GrowableArray<struct HandlerDesc> list_; 157 GrowableArray<struct HandlerDesc> list_;
157 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList); 158 DISALLOW_COPY_AND_ASSIGN(ExceptionHandlerList);
158 }; 159 };
159 160
160 } // namespace dart 161 } // namespace dart
161 162
162 #endif // VM_CODE_DESCRIPTORS_H_ 163 #endif // VM_CODE_DESCRIPTORS_H_
OLDNEW
« no previous file with comments | « vm/bitmap_test.cc ('k') | vm/code_descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698