Index: runtime/bin/platform.cc |
diff --git a/runtime/bin/platform.cc b/runtime/bin/platform.cc |
index d09a8be512bbab43755f4dcff9e4ccfffefffa02..1d3814dc2bf1612d050529bfe7d09918260f5172 100644 |
--- a/runtime/bin/platform.cc |
+++ b/runtime/bin/platform.cc |
@@ -40,7 +40,7 @@ void FUNCTION_NAME(Platform_LocalHostname)(Dart_NativeArguments args) { |
void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) { |
- if (Dart_IsRunningPrecompiledCode()) { |
+ if (Dart_IsPrecompiledRuntime()) { |
// This is a work-around to be able to use most of the existing test suite |
// for precompilation. Many tests do something like Process.run( |
// Platform.executable, some_other_script.dart). But with precompilation |
@@ -60,7 +60,7 @@ void FUNCTION_NAME(Platform_ExecutableName)(Dart_NativeArguments args) { |
void FUNCTION_NAME(Platform_ResolvedExecutableName)(Dart_NativeArguments args) { |
- if (Dart_IsRunningPrecompiledCode()) { |
+ if (Dart_IsPrecompiledRuntime()) { |
Dart_ThrowException(Dart_NewStringFromCString( |
"Platform.resolvedExecutable not supported under precompilation")); |
UNREACHABLE(); |