| Index: runtime/vm/snapshot_test.cc
|
| diff --git a/runtime/vm/snapshot_test.cc b/runtime/vm/snapshot_test.cc
|
| index 1b73e3905f9e276b669976c570a9ae1f04521630..c67a8ced3040751c915074566cf26352ac6f15c3 100644
|
| --- a/runtime/vm/snapshot_test.cc
|
| +++ b/runtime/vm/snapshot_test.cc
|
| @@ -1074,7 +1074,7 @@ UNIT_TEST_CASE(CanonicalizationInScriptSnapshots) {
|
| // Create a test library and Load up a test script in it.
|
| TestCase::LoadTestScript(kScriptChars, NULL);
|
|
|
| - EXPECT_VALID(Api::CheckAndFinalizePendingClasses(Isolate::Current()));
|
| + EXPECT_VALID(Api::CheckAndFinalizePendingClasses(Thread::Current()));
|
|
|
| // Write out the script snapshot.
|
| result = Dart_CreateScriptSnapshot(&buffer, &size);
|
| @@ -1177,7 +1177,7 @@ UNIT_TEST_CASE(FullSnapshot) {
|
|
|
| // Create a test library and Load up a test script in it.
|
| TestCase::LoadTestScript(kScriptChars, NULL);
|
| - EXPECT_VALID(Api::CheckAndFinalizePendingClasses(thread->isolate()));
|
| + EXPECT_VALID(Api::CheckAndFinalizePendingClasses(thread));
|
| timer1.Stop();
|
| OS::PrintErr("Without Snapshot: %" Pd64 "us\n", timer1.TotalElapsedTime());
|
|
|
| @@ -1238,7 +1238,7 @@ UNIT_TEST_CASE(FullSnapshot1) {
|
|
|
| // Create a test library and Load up a test script in it.
|
| Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
|
| - EXPECT_VALID(Api::CheckAndFinalizePendingClasses(thread->isolate()));
|
| + EXPECT_VALID(Api::CheckAndFinalizePendingClasses(thread));
|
| timer1.Stop();
|
| OS::PrintErr("Without Snapshot: %" Pd64 "us\n", timer1.TotalElapsedTime());
|
|
|
| @@ -1382,7 +1382,7 @@ UNIT_TEST_CASE(ScriptSnapshot) {
|
| EXPECT_VALID(Dart_LibraryImportLibrary(TestCase::lib(),
|
| import_lib,
|
| Dart_Null()));
|
| - EXPECT_VALID(Api::CheckAndFinalizePendingClasses(Isolate::Current()));
|
| + EXPECT_VALID(Api::CheckAndFinalizePendingClasses(Thread::Current()));
|
|
|
| // Get list of library URLs loaded and save the count.
|
| Dart_Handle libs = Dart_GetLibraryIds();
|
| @@ -1618,7 +1618,7 @@ UNIT_TEST_CASE(ScriptSnapshot2) {
|
| EXPECT_VALID(Dart_LibraryImportLibrary(TestCase::lib(),
|
| import_lib,
|
| Dart_Null()));
|
| - EXPECT_VALID(Api::CheckAndFinalizePendingClasses(Isolate::Current()));
|
| + EXPECT_VALID(Api::CheckAndFinalizePendingClasses(Thread::Current()));
|
|
|
| // Write out the script snapshot.
|
| result = Dart_CreateScriptSnapshot(&buffer, &size);
|
|
|