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

Unified Diff: runtime/vm/class_finalizer.cc

Issue 11778013: Cleanup handles more efficiently, ensures we don't have to iterate over them (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 12 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/benchmark_test.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.cc
===================================================================
--- runtime/vm/class_finalizer.cc (revision 16679)
+++ runtime/vm/class_finalizer.cc (working copy)
@@ -111,6 +111,7 @@
bool retval = true;
Isolate* isolate = Isolate::Current();
ASSERT(isolate != NULL);
+ HANDLESCOPE(isolate);
ObjectStore* object_store = isolate->object_store();
const Error& error = Error::Handle(object_store->sticky_error());
if (!error.IsNull()) {
@@ -170,7 +171,7 @@
// No cycles are allowed.
void ClassFinalizer::CollectInterfaces(const Class& cls,
const GrowableObjectArray& collected) {
- const Array& interface_array = Array::ZoneHandle(cls.interfaces());
+ const Array& interface_array = Array::Handle(cls.interfaces());
AbstractType& interface = AbstractType::Handle();
Class& interface_class = Class::Handle();
for (intptr_t i = 0; i < interface_array.Length(); i++) {
« no previous file with comments | « runtime/vm/benchmark_test.cc ('k') | runtime/vm/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698