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

Unified Diff: vm/heap.cc

Issue 10030001: Resubmit change 6302 after fixing the compiler warning on older GCC compiler versions: (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/heap.h ('k') | vm/object.h » ('j') | vm/stack_frame.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/heap.cc
===================================================================
--- vm/heap.cc (revision 6329)
+++ vm/heap.cc (working copy)
@@ -129,6 +129,14 @@
}
+RawInstructions* Heap::FindObjectInCodeSpace(FindObjectVisitor* visitor) {
+ // The code heap can only have RawInstructions objects.
+ RawObject* raw_obj = code_space_->FindObject(visitor);
+ ASSERT(raw_obj->ptr()->class_->ptr()->instance_kind_ == kInstructions);
+ return reinterpret_cast<RawInstructions*>(raw_obj);
+}
+
+
void Heap::CollectGarbage(Space space, ApiCallbacks api_callbacks) {
bool invoke_api_callbacks = (api_callbacks == kInvokeApiCallbacks);
switch (space) {
« no previous file with comments | « vm/heap.h ('k') | vm/object.h » ('j') | vm/stack_frame.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698