Index: runtime/vm/custom_isolate_test.cc |
diff --git a/runtime/vm/custom_isolate_test.cc b/runtime/vm/custom_isolate_test.cc |
index a2e2e442254a8ab7d066209ee74716b44d826ef1..c0b60c2fff5727661b755441e90447b665d6561b 100644 |
--- a/runtime/vm/custom_isolate_test.cc |
+++ b/runtime/vm/custom_isolate_test.cc |
@@ -166,7 +166,7 @@ class StartEvent : public Event { |
void StartEvent::Process() { |
- OS::Print(">> StartEvent with isolate(%p)--\n", isolate()); |
+ OS::Print(">> StartEvent with isolate(%" PRId64 ")--\n", isolate()); |
Dart_EnterIsolate(isolate()); |
Dart_EnterScope(); |
Dart_Handle result; |
@@ -197,7 +197,7 @@ class MessageEvent : public Event { |
void MessageEvent::Process() { |
- OS::Print("$$ MessageEvent with isolate(%p)\n", isolate()); |
+ OS::Print("$$ MessageEvent with isolate(%" PRId64 ")\n", isolate()); |
Dart_EnterIsolate(isolate()); |
Dart_EnterScope(); |
@@ -205,19 +205,20 @@ void MessageEvent::Process() { |
EXPECT_VALID(result); |
if (!Dart_HasLivePorts()) { |
- OS::Print("<< Shutting down isolate(%p)\n", isolate()); |
+ OS::Print("<< Shutting down isolate(%" PRId64 ")\n", isolate()); |
event_queue->RemoveEventsForIsolate(isolate()); |
Dart_ShutdownIsolate(); |
} else { |
Dart_ExitScope(); |
Dart_ExitIsolate(); |
} |
- ASSERT(Dart_CurrentIsolate() == NULL); |
+ ASSERT(Dart_CurrentIsolate() == DART_ILLEGAL_ISOLATE); |
} |
static void NotifyMessage(Dart_Isolate dest_isolate) { |
- OS::Print("-- Notify isolate(%p) of pending message --\n", dest_isolate); |
+ OS::Print("-- Notify isolate(%" PRId64 ") of pending message --\n", |
+ dest_isolate); |
OS::Print("-- Adding MessageEvent to queue --\n"); |
event_queue->Add(new MessageEvent(dest_isolate)); |
} |
@@ -252,7 +253,7 @@ static void native_echo(Dart_NativeArguments args) { |
free(const_cast<char*>(saved_echo)); |
} |
saved_echo = strdup(c_str); |
- OS::Print("-- (isolate=%p) %s\n", Dart_CurrentIsolate(), c_str); |
+ OS::Print("-- (isolate=%" PRId64 ") %s\n", Dart_CurrentIsolate(), c_str); |
Dart_ExitScope(); |
} |
@@ -277,7 +278,7 @@ static void CustomIsolateImpl_start(Dart_NativeArguments args) { |
// Create a new Dart_Isolate. |
Dart_Isolate new_isolate = TestCase::CreateTestIsolate(); |
- EXPECT(new_isolate != NULL); |
+ EXPECT(new_isolate != DART_ILLEGAL_ISOLATE); |
Dart_SetMessageNotifyCallback(&NotifyMessage); |
Dart_EnterScope(); |
// Reload all the test classes here. |
@@ -315,7 +316,7 @@ UNIT_TEST_CASE(CustomIsolates) { |
event_queue = new EventQueue(); |
Dart_Isolate dart_isolate = TestCase::CreateTestIsolate(); |
- EXPECT(dart_isolate != NULL); |
+ EXPECT(dart_isolate != DART_ILLEGAL_ISOLATE); |
Dart_SetMessageNotifyCallback(&NotifyMessage); |
Dart_EnterScope(); |
Dart_Handle result; |