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

Side by Side Diff: runtime/include/dart_api.h

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/bin/run_vm_tests.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 * Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a 3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file. 4 * BSD-style license that can be found in the LICENSE file.
5 */ 5 */
6 6
7 #ifndef RUNTIME_INCLUDE_DART_API_H_ 7 #ifndef RUNTIME_INCLUDE_DART_API_H_
8 #define RUNTIME_INCLUDE_DART_API_H_ 8 #define RUNTIME_INCLUDE_DART_API_H_
9 9
10 /** \mainpage Dart Embedding API Reference 10 /** \mainpage Dart Embedding API Reference
(...skipping 3137 matching lines...) Expand 10 before | Expand all | Expand 10 after
3148 uint8_t* kernel; 3148 uint8_t* kernel;
3149 intptr_t kernel_size; 3149 intptr_t kernel_size;
3150 } Dart_KernelCompilationResult; 3150 } Dart_KernelCompilationResult;
3151 3151
3152 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate); 3152 DART_EXPORT bool Dart_IsKernelIsolate(Dart_Isolate isolate);
3153 DART_EXPORT bool Dart_KernelIsolateIsRunning(); 3153 DART_EXPORT bool Dart_KernelIsolateIsRunning();
3154 DART_EXPORT Dart_Port Dart_KernelPort(); 3154 DART_EXPORT Dart_Port Dart_KernelPort();
3155 DART_EXPORT Dart_KernelCompilationResult 3155 DART_EXPORT Dart_KernelCompilationResult
3156 Dart_CompileToKernel(const char* script_uri); 3156 Dart_CompileToKernel(const char* script_uri);
3157 3157
3158 typedef struct {
3159 const char* uri;
3160 const char* source;
3161 } Dart_SourceFile;
3162 DART_EXPORT Dart_KernelCompilationResult
3163 Dart_CompileSourcesToKernel(const char* script_uri,
3164 int source_files_count,
3165 Dart_SourceFile source_files[]);
3166
3158 #define DART_KERNEL_ISOLATE_NAME "kernel-service" 3167 #define DART_KERNEL_ISOLATE_NAME "kernel-service"
3159 3168
3160 /* 3169 /*
3161 * ======= 3170 * =======
3162 * Service 3171 * Service
3163 * ======= 3172 * =======
3164 */ 3173 */
3165 3174
3166 3175
3167 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service" 3176 #define DART_VM_SERVICE_ISOLATE_NAME "vm-service"
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
3329 */ 3338 */
3330 DART_EXPORT bool Dart_IsPrecompiledRuntime(); 3339 DART_EXPORT bool Dart_IsPrecompiledRuntime();
3331 3340
3332 3341
3333 /** 3342 /**
3334 * Print a native stack trace. Used for crash handling. 3343 * Print a native stack trace. Used for crash handling.
3335 */ 3344 */
3336 DART_EXPORT void Dart_DumpNativeStackTrace(void* context); 3345 DART_EXPORT void Dart_DumpNativeStackTrace(void* context);
3337 3346
3338 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */ 3347 #endif /* INCLUDE_DART_API_H_ */ /* NOLINT */
OLDNEW
« no previous file with comments | « runtime/bin/run_vm_tests.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698