Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
| 8 | 8 |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "lib/stacktrace.h" | 10 #include "lib/stacktrace.h" |
| (...skipping 5989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6000 | 6000 |
| 6001 DART_EXPORT bool Dart_KernelIsolateIsRunning() { | 6001 DART_EXPORT bool Dart_KernelIsolateIsRunning() { |
| 6002 #ifdef DART_PRECOMPILED_RUNTIME | 6002 #ifdef DART_PRECOMPILED_RUNTIME |
| 6003 return false; | 6003 return false; |
| 6004 #else | 6004 #else |
| 6005 return KernelIsolate::IsRunning(); | 6005 return KernelIsolate::IsRunning(); |
| 6006 #endif | 6006 #endif |
| 6007 } | 6007 } |
| 6008 | 6008 |
| 6009 | 6009 |
| 6010 DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort() { | 6010 DART_EXPORT Dart_Port Dart_ServiceWaitForKernelPort() { |
|
hausner
2017/01/24 00:50:55
This seems to be dead code now.
Vyacheslav Egorov (Google)
2017/01/30 19:34:13
Done.
| |
| 6011 #ifdef DART_PRECOMPILED_RUNTIME | 6011 #ifdef DART_PRECOMPILED_RUNTIME |
| 6012 return ILLEGAL_PORT; | 6012 return ILLEGAL_PORT; |
| 6013 #else | 6013 #else |
| 6014 return KernelIsolate::WaitForKernelPort(); | 6014 return KernelIsolate::WaitForKernelPort(); |
| 6015 #endif | 6015 #endif |
| 6016 } | 6016 } |
| 6017 | 6017 |
| 6018 | |
| 6018 DART_EXPORT Dart_Port Dart_KernelPort() { | 6019 DART_EXPORT Dart_Port Dart_KernelPort() { |
|
hausner
2017/01/24 00:50:55
ditto.
Vyacheslav Egorov (Google)
2017/01/30 19:34:13
Acknowledged.
| |
| 6019 #ifdef DART_PRECOMPILED_RUNTIME | 6020 #ifdef DART_PRECOMPILED_RUNTIME |
| 6020 return false; | 6021 return false; |
| 6021 #else | 6022 #else |
| 6022 return KernelIsolate::KernelPort(); | 6023 return KernelIsolate::KernelPort(); |
| 6023 #endif | 6024 #endif |
| 6024 } | 6025 } |
| 6025 | 6026 |
| 6026 | 6027 |
| 6028 DART_EXPORT Dart_KernelCompilationResult | |
| 6029 Dart_CompileToKernel(const char* script_uri) { | |
| 6030 #ifdef DART_PRECOMPILED_RUNTIME | |
| 6031 return false; | |
|
kustermann
2017/01/30 12:14:25
The return type is Dart_KernelCompilationResult wh
Vyacheslav Egorov (Google)
2017/01/30 19:34:13
Done.
| |
| 6032 #else | |
| 6033 return KernelIsolate::CompileToKernel(script_uri); | |
| 6034 #endif | |
| 6035 } | |
| 6036 | |
| 6027 // --- Service support --- | 6037 // --- Service support --- |
| 6028 | 6038 |
| 6029 DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) { | 6039 DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) { |
| 6030 Isolate* iso = reinterpret_cast<Isolate*>(isolate); | 6040 Isolate* iso = reinterpret_cast<Isolate*>(isolate); |
| 6031 return ServiceIsolate::IsServiceIsolate(iso); | 6041 return ServiceIsolate::IsServiceIsolate(iso); |
| 6032 } | 6042 } |
| 6033 | 6043 |
| 6034 | 6044 |
| 6035 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort() { | 6045 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort() { |
| 6036 return ServiceIsolate::WaitForLoadPort(); | 6046 return ServiceIsolate::WaitForLoadPort(); |
| (...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 6813 } | 6823 } |
| 6814 | 6824 |
| 6815 | 6825 |
| 6816 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 6826 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |
| 6817 #ifndef PRODUCT | 6827 #ifndef PRODUCT |
| 6818 Profiler::DumpStackTrace(context); | 6828 Profiler::DumpStackTrace(context); |
| 6819 #endif | 6829 #endif |
| 6820 } | 6830 } |
| 6821 | 6831 |
| 6822 } // namespace dart | 6832 } // namespace dart |
| OLD | NEW |