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

Side by Side Diff: vm/heap.cc

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/heap.h ('k') | vm/object.cc » ('j') | vm/pages.cc » ('J')
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 #include "vm/heap.h" 5 #include "vm/heap.h"
6 6
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "platform/utils.h" 8 #include "platform/utils.h"
9 #include "vm/compiler_stats.h" 9 #include "vm/compiler_stats.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 old_space_->VisitObjectPointers(visitor); 122 old_space_->VisitObjectPointers(visitor);
123 code_space_->VisitObjectPointers(visitor); 123 code_space_->VisitObjectPointers(visitor);
124 } 124 }
125 125
126 126
127 void Heap::IterateCodePointers(ObjectPointerVisitor* visitor) { 127 void Heap::IterateCodePointers(ObjectPointerVisitor* visitor) {
128 code_space_->VisitObjectPointers(visitor); 128 code_space_->VisitObjectPointers(visitor);
129 } 129 }
130 130
131 131
132 RawObject* Heap::FindObjectInCodeSpace(FindObjectVisitor* visitor) {
133 return code_space_->FindObject(visitor);
134 }
135
136
132 void Heap::CollectGarbage(Space space, ApiCallbacks api_callbacks) { 137 void Heap::CollectGarbage(Space space, ApiCallbacks api_callbacks) {
133 bool invoke_api_callbacks = (api_callbacks == kInvokeApiCallbacks); 138 bool invoke_api_callbacks = (api_callbacks == kInvokeApiCallbacks);
134 switch (space) { 139 switch (space) {
135 case kNew: 140 case kNew:
136 new_space_->Scavenge(invoke_api_callbacks); 141 new_space_->Scavenge(invoke_api_callbacks);
137 break; 142 break;
138 case kOld: 143 case kOld:
139 old_space_->MarkSweep(invoke_api_callbacks); 144 old_space_->MarkSweep(invoke_api_callbacks);
140 break; 145 break;
141 case kExecutable: 146 case kExecutable:
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 isolate()->IncrementNoGCScopeDepth(); 204 isolate()->IncrementNoGCScopeDepth();
200 } 205 }
201 206
202 207
203 NoGCScope::~NoGCScope() { 208 NoGCScope::~NoGCScope() {
204 isolate()->DecrementNoGCScopeDepth(); 209 isolate()->DecrementNoGCScopeDepth();
205 } 210 }
206 #endif // defined(DEBUG) 211 #endif // defined(DEBUG)
207 212
208 } // namespace dart 213 } // namespace dart
OLDNEW
« no previous file with comments | « vm/heap.h ('k') | vm/object.cc » ('j') | vm/pages.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698