Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 2881953002: Use Kernel frontend from run_vm_tests. (Closed)
Patch Set: Make it explicit that only kernel isolates should be spawned. Return correct value when test fails.… Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/kernel_isolate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 6027 matching lines...) Expand 10 before | Expand all | Expand 10 after
6038 #ifdef DART_PRECOMPILED_RUNTIME 6038 #ifdef DART_PRECOMPILED_RUNTIME
6039 Dart_KernelCompilationResult result; 6039 Dart_KernelCompilationResult result;
6040 result.status = Dart_KernelCompilationStatus_Unknown; 6040 result.status = Dart_KernelCompilationStatus_Unknown;
6041 result.error = strdup("Dart_CompileToKernel is unsupported."); 6041 result.error = strdup("Dart_CompileToKernel is unsupported.");
6042 return result; 6042 return result;
6043 #else 6043 #else
6044 return KernelIsolate::CompileToKernel(script_uri); 6044 return KernelIsolate::CompileToKernel(script_uri);
6045 #endif 6045 #endif
6046 } 6046 }
6047 6047
6048 DART_EXPORT Dart_KernelCompilationResult
6049 Dart_CompileSourcesToKernel(const char* script_uri,
6050 int source_files_count,
6051 Dart_SourceFile sources[]) {
6052 #ifdef DART_PRECOMPILED_RUNTIME
6053 Dart_KernelCompilationResult result;
6054 result.status = Dart_KernelCompilationStatus_Unknown;
6055 result.error = strdup("Dart_CompileSourcesToKernel is unsupported.");
6056 return result;
6057 #else
6058 return KernelIsolate::CompileToKernel(script_uri, source_files_count,
6059 sources);
6060 #endif
6061 }
6062
6048 // --- Service support --- 6063 // --- Service support ---
6049 6064
6050 DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) { 6065 DART_EXPORT bool Dart_IsServiceIsolate(Dart_Isolate isolate) {
6051 Isolate* iso = reinterpret_cast<Isolate*>(isolate); 6066 Isolate* iso = reinterpret_cast<Isolate*>(isolate);
6052 return ServiceIsolate::IsServiceIsolate(iso); 6067 return ServiceIsolate::IsServiceIsolate(iso);
6053 } 6068 }
6054 6069
6055 6070
6056 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort() { 6071 DART_EXPORT Dart_Port Dart_ServiceWaitForLoadPort() {
6057 return ServiceIsolate::WaitForLoadPort(); 6072 return ServiceIsolate::WaitForLoadPort();
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
6846 } 6861 }
6847 6862
6848 6863
6849 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) { 6864 DART_EXPORT void Dart_DumpNativeStackTrace(void* context) {
6850 #ifndef PRODUCT 6865 #ifndef PRODUCT
6851 Profiler::DumpStackTrace(context); 6866 Profiler::DumpStackTrace(context);
6852 #endif 6867 #endif
6853 } 6868 }
6854 6869
6855 } // namespace dart 6870 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/kernel_isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698