OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 "vm/kernel_isolate.h" | 5 #include "vm/kernel_isolate.h" |
6 | 6 |
7 #include "vm/compiler.h" | 7 #include "vm/compiler.h" |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 #if !defined(DART_PRECOMPILED_RUNTIME) | 27 #if !defined(DART_PRECOMPILED_RUNTIME) |
28 | 28 |
29 #define Z (T->zone()) | 29 #define Z (T->zone()) |
30 | 30 |
31 DEFINE_FLAG(bool, trace_kernel, false, "Trace Kernel service requests."); | 31 DEFINE_FLAG(bool, trace_kernel, false, "Trace Kernel service requests."); |
32 DEFINE_FLAG(bool, | 32 DEFINE_FLAG(bool, |
33 use_dart_frontend, | 33 use_dart_frontend, |
34 false, | 34 false, |
35 "Parse scripts with Dart-to-Kernel parser"); | 35 "Parse scripts with Dart-to-Kernel parser"); |
| 36 DEFINE_FLAG(bool, |
| 37 show_kernel_isolate, |
| 38 false, |
| 39 "Show Kernel service isolate as normal isolate."); |
36 | 40 |
37 const char* KernelIsolate::kName = DART_KERNEL_ISOLATE_NAME; | 41 const char* KernelIsolate::kName = DART_KERNEL_ISOLATE_NAME; |
38 Dart_IsolateCreateCallback KernelIsolate::create_callback_ = NULL; | 42 Dart_IsolateCreateCallback KernelIsolate::create_callback_ = NULL; |
39 Monitor* KernelIsolate::monitor_ = new Monitor(); | 43 Monitor* KernelIsolate::monitor_ = new Monitor(); |
40 Isolate* KernelIsolate::isolate_ = NULL; | 44 Isolate* KernelIsolate::isolate_ = NULL; |
41 bool KernelIsolate::initializing_ = true; | 45 bool KernelIsolate::initializing_ = true; |
42 Dart_Port KernelIsolate::kernel_port_ = ILLEGAL_PORT; | 46 Dart_Port KernelIsolate::kernel_port_ = ILLEGAL_PORT; |
43 | 47 |
44 | 48 |
45 class RunKernelTask : public ThreadPool::Task { | 49 class RunKernelTask : public ThreadPool::Task { |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
433 } | 437 } |
434 | 438 |
435 KernelCompilationRequest request; | 439 KernelCompilationRequest request; |
436 return request.SendAndWaitForResponse(kernel_port, script_uri); | 440 return request.SendAndWaitForResponse(kernel_port, script_uri); |
437 } | 441 } |
438 | 442 |
439 | 443 |
440 #endif // DART_PRECOMPILED_RUNTIME | 444 #endif // DART_PRECOMPILED_RUNTIME |
441 | 445 |
442 } // namespace dart | 446 } // namespace dart |
OLD | NEW |