Index: runtime/bin/directory.cc |
diff --git a/runtime/bin/directory.cc b/runtime/bin/directory.cc |
index c85d181ae5eb04a584a9046f77c2a0a93283a5bb..8455c39fb5e345fa1b2da7fd2b25cb63ccbbd7a9 100644 |
--- a/runtime/bin/directory.cc |
+++ b/runtime/bin/directory.cc |
@@ -259,16 +259,16 @@ Dart_Port Directory::GetServicePort() { |
service_ports_ = new Dart_Port[service_ports_size_]; |
service_ports_index_ = 0; |
for (int i = 0; i < service_ports_size_; i++) { |
- service_ports_[i] = kIllegalPort; |
+ service_ports_[i] = ILLEGAL_PORT; |
} |
} |
Dart_Port result = service_ports_[service_ports_index_]; |
- if (result == kIllegalPort) { |
+ if (result == ILLEGAL_PORT) { |
result = Dart_NewNativePort("DirectoryService", |
DirectoryService, |
true); |
- ASSERT(result != kIllegalPort); |
+ ASSERT(result != ILLEGAL_PORT); |
service_ports_[service_ports_index_] = result; |
} |
service_ports_index_ = (service_ports_index_ + 1) % service_ports_size_; |
@@ -280,7 +280,7 @@ void FUNCTION_NAME(Directory_NewServicePort)(Dart_NativeArguments args) { |
Dart_EnterScope(); |
Dart_SetReturnValue(args, Dart_Null()); |
Dart_Port service_port = Directory::GetServicePort(); |
- if (service_port != kIllegalPort) { |
+ if (service_port != ILLEGAL_PORT) { |
// Return a send port for the service port. |
Dart_Handle send_port = Dart_NewSendPort(service_port); |
Dart_SetReturnValue(args, send_port); |