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

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

Issue 2690323003: Hide kernel isolate from isolate list; do not register it either (Closed)
Patch Set: Show kernel isolate if passing flag Created 3 years, 10 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/lib/vmservice.cc ('k') | runtime/vm/service.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 // 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
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
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
OLDNEW
« no previous file with comments | « runtime/lib/vmservice.cc ('k') | runtime/vm/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698