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

Unified Diff: runtime/vm/class_finalizer_test.cc

Issue 1393373003: Remove isolate argument from handle allocation: Part I (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanups Created 5 years, 2 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/class_finalizer.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer_test.cc
diff --git a/runtime/vm/class_finalizer_test.cc b/runtime/vm/class_finalizer_test.cc
index 648ab6edf29738816b158956b73b28bfdd766e05..828ecacad04f1f6af859ec031b284eb6c8d3272f 100644
--- a/runtime/vm/class_finalizer_test.cc
+++ b/runtime/vm/class_finalizer_test.cc
@@ -23,10 +23,11 @@ static RawClass* CreateTestClass(const char* name) {
TEST_CASE(ClassFinalizer) {
- Isolate* isolate = Isolate::Current();
+ Zone* zone = thread->zone();
+ Isolate* isolate = thread->isolate();
ObjectStore* object_store = isolate->object_store();
const GrowableObjectArray& pending_classes =
- GrowableObjectArray::Handle(isolate, object_store->pending_classes());
+ GrowableObjectArray::Handle(zone, object_store->pending_classes());
GrowableArray<const Class*> classes_1;
classes_1.Add(&Class::Handle(CreateTestClass("BMW")));
pending_classes.Add(*classes_1[0]);
@@ -53,10 +54,11 @@ TEST_CASE(ClassFinalizer) {
TEST_CASE(ClassFinalize_Cycles) {
- Isolate* isolate = Isolate::Current();
+ Zone* zone = thread->zone();
+ Isolate* isolate = thread->isolate();
ObjectStore* object_store = isolate->object_store();
const GrowableObjectArray& pending_classes =
- GrowableObjectArray::Handle(isolate, object_store->pending_classes());
+ GrowableObjectArray::Handle(zone, object_store->pending_classes());
GrowableArray<const Class*> classes;
classes.Add(&Class::Handle(CreateTestClass("Jungfrau")));
pending_classes.Add(*classes[0]);
@@ -78,10 +80,11 @@ static RawLibrary* NewLib(const char* url_chars) {
TEST_CASE(ClassFinalize_Resolve) {
- Isolate* isolate = Isolate::Current();
+ Zone* zone = thread->zone();
+ Isolate* isolate = thread->isolate();
ObjectStore* object_store = isolate->object_store();
const GrowableObjectArray& pending_classes =
- GrowableObjectArray::Handle(isolate, object_store->pending_classes());
+ GrowableObjectArray::Handle(zone, object_store->pending_classes());
Class& rhb = Class::Handle(CreateTestClass("RhB"));
pending_classes.Add(rhb);
Class& sbb = Class::Handle(CreateTestClass("SBB"));
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698