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

Unified Diff: runtime/vm/raw_object.cc

Issue 1027243003: Revert "Eliminate fake-Isolate workaround from concurrent sweeper." (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/raw_object.cc
===================================================================
--- runtime/vm/raw_object.cc (revision 44632)
+++ runtime/vm/raw_object.cc (working copy)
@@ -65,11 +65,6 @@
intptr_t RawObject::SizeFromClass() const {
- return SizeFromClass(Isolate::Current()->class_table());
-}
-
-
-intptr_t RawObject::SizeFromClass(const ClassTable* class_table) const {
// Only reasonable to be called on heap objects.
ASSERT(IsHeapObject());
@@ -196,6 +191,9 @@
}
default: {
// Get the (constant) instance size out of the class object.
+ // TODO(koda): Add Size(ClassTable*) interface to allow caching in loops.
+ Isolate* isolate = Isolate::Current();
+ ClassTable* class_table = isolate->class_table();
#if defined(DEBUG)
if (!class_table->IsValidIndex(class_id) ||
!class_table->HasValidClassAt(class_id)) {
« no previous file with comments | « runtime/vm/raw_object.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698