| 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 "lib/stacktrace.h" |     9 #include "lib/stacktrace.h" | 
|    10 #include "platform/assert.h" |    10 #include "platform/assert.h" | 
| (...skipping 5857 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  5868  |  5868  | 
|  5869 DART_EXPORT Dart_Port Dart_KernelPort() { |  5869 DART_EXPORT Dart_Port Dart_KernelPort() { | 
|  5870 #ifdef DART_PRECOMPILED_RUNTIME |  5870 #ifdef DART_PRECOMPILED_RUNTIME | 
|  5871   return false; |  5871   return false; | 
|  5872 #else |  5872 #else | 
|  5873   return KernelIsolate::KernelPort(); |  5873   return KernelIsolate::KernelPort(); | 
|  5874 #endif |  5874 #endif | 
|  5875 } |  5875 } | 
|  5876  |  5876  | 
|  5877 DART_EXPORT Dart_KernelCompilationResult |  5877 DART_EXPORT Dart_KernelCompilationResult | 
|  5878 Dart_CompileToKernel(const char* script_uri) { |  5878 Dart_CompileToKernel(const char* script_uri, const char* platform_kernel) { | 
|  5879 #ifdef DART_PRECOMPILED_RUNTIME |  5879 #ifdef DART_PRECOMPILED_RUNTIME | 
|  5880   Dart_KernelCompilationResult result; |  5880   Dart_KernelCompilationResult result; | 
|  5881   result.status = Dart_KernelCompilationStatus_Unknown; |  5881   result.status = Dart_KernelCompilationStatus_Unknown; | 
|  5882   result.error = strdup("Dart_CompileToKernel is unsupported."); |  5882   result.error = strdup("Dart_CompileToKernel is unsupported."); | 
|  5883   return result; |  5883   return result; | 
|  5884 #else |  5884 #else | 
|  5885   return KernelIsolate::CompileToKernel(script_uri); |  5885   return KernelIsolate::CompileToKernel(script_uri, platform_kernel); | 
|  5886 #endif |  5886 #endif | 
|  5887 } |  5887 } | 
|  5888  |  5888  | 
|  5889 DART_EXPORT Dart_KernelCompilationResult |  5889 DART_EXPORT Dart_KernelCompilationResult | 
|  5890 Dart_CompileSourcesToKernel(const char* script_uri, |  5890 Dart_CompileSourcesToKernel(const char* script_uri, | 
 |  5891                             const char* platform_kernel, | 
|  5891                             int source_files_count, |  5892                             int source_files_count, | 
|  5892                             Dart_SourceFile sources[], |  5893                             Dart_SourceFile sources[], | 
|  5893                             bool incremental_compile) { |  5894                             bool incremental_compile) { | 
|  5894 #ifdef DART_PRECOMPILED_RUNTIME |  5895 #ifdef DART_PRECOMPILED_RUNTIME | 
|  5895   Dart_KernelCompilationResult result; |  5896   Dart_KernelCompilationResult result; | 
|  5896   result.status = Dart_KernelCompilationStatus_Unknown; |  5897   result.status = Dart_KernelCompilationStatus_Unknown; | 
|  5897   result.error = strdup("Dart_CompileSourcesToKernel is unsupported."); |  5898   result.error = strdup("Dart_CompileSourcesToKernel is unsupported."); | 
|  5898   return result; |  5899   return result; | 
|  5899 #else |  5900 #else | 
|  5900   return KernelIsolate::CompileToKernel(script_uri, source_files_count, sources, |  5901   return KernelIsolate::CompileToKernel(script_uri, platform_kernel, | 
 |  5902                                         source_files_count, sources, | 
|  5901                                         incremental_compile); |  5903                                         incremental_compile); | 
|  5902 #endif |  5904 #endif | 
|  5903 } |  5905 } | 
|  5904  |  5906  | 
|  5905 // --- Service support --- |  5907 // --- Service support --- | 
|  5906  |  5908  | 
|  5907 DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) { |  5909 DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) { | 
|  5908   Isolate* iso = reinterpret_cast<Isolate*>(isolate); |  5910   Isolate* iso = reinterpret_cast<Isolate*>(isolate); | 
|  5909   return ServiceIsolate::IsServiceIsolate(iso); |  5911   return ServiceIsolate::IsServiceIsolate(iso); | 
|  5910 } |  5912 } | 
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  6801 #endif |  6803 #endif | 
|  6802 } |  6804 } | 
|  6803  |  6805  | 
|  6804 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { |  6806 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { | 
|  6805 #ifndef PRODUCT |  6807 #ifndef PRODUCT | 
|  6806   Profiler::DumpStackTrace(context); |  6808   Profiler::DumpStackTrace(context); | 
|  6807 #endif |  6809 #endif | 
|  6808 } |  6810 } | 
|  6809  |  6811  | 
|  6810 }  // namespace dart |  6812 }  // namespace dart | 
| OLD | NEW |