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

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

Issue 2998963002: Revert "Revert "Introduce IKG into kernel-service to support incremental compilation."" (Closed)
Patch Set: Created 3 years, 4 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/vm/isolate_reload_test.cc ('k') | runtime/vm/kernel_isolate.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 #ifndef RUNTIME_VM_KERNEL_ISOLATE_H_ 5 #ifndef RUNTIME_VM_KERNEL_ISOLATE_H_
6 #define RUNTIME_VM_KERNEL_ISOLATE_H_ 6 #define RUNTIME_VM_KERNEL_ISOLATE_H_
7 7
8 #if !defined(DART_PRECOMPILED_RUNTIME) 8 #if !defined(DART_PRECOMPILED_RUNTIME)
9 9
10 #include "include/dart_api.h" 10 #include "include/dart_api.h"
(...skipping 12 matching lines...) Expand all
23 23
24 static bool Exists(); 24 static bool Exists();
25 static bool IsRunning(); 25 static bool IsRunning();
26 static bool IsKernelIsolate(const Isolate* isolate); 26 static bool IsKernelIsolate(const Isolate* isolate);
27 static Dart_Port WaitForKernelPort(); 27 static Dart_Port WaitForKernelPort();
28 static Dart_Port KernelPort() { return kernel_port_; } 28 static Dart_Port KernelPort() { return kernel_port_; }
29 29
30 static Dart_KernelCompilationResult CompileToKernel( 30 static Dart_KernelCompilationResult CompileToKernel(
31 const char* script_uri, 31 const char* script_uri,
32 int source_files_count = 0, 32 int source_files_count = 0,
33 Dart_SourceFile source_files[] = NULL); 33 Dart_SourceFile source_files[] = NULL,
34 bool incremental_compile = false);
34 35
35 protected: 36 protected:
36 static Monitor* monitor_; 37 static Monitor* monitor_;
37 static Dart_IsolateCreateCallback create_callback_; 38 static Dart_IsolateCreateCallback create_callback_;
38 39
39 static void InitCallback(Isolate* I); 40 static void InitCallback(Isolate* I);
40 static void SetKernelIsolate(Isolate* isolate); 41 static void SetKernelIsolate(Isolate* isolate);
41 static void SetLoadPort(Dart_Port port); 42 static void SetLoadPort(Dart_Port port);
42 static void FinishedInitializing(); 43 static void FinishedInitializing();
43 44
44 static Dart_Port kernel_port_; 45 static Dart_Port kernel_port_;
45 static Isolate* isolate_; 46 static Isolate* isolate_;
46 static bool initializing_; 47 static bool initializing_;
47 48
48 static Dart_IsolateCreateCallback create_callback() { 49 static Dart_IsolateCreateCallback create_callback() {
49 return create_callback_; 50 return create_callback_;
50 } 51 }
51 52
52 friend class Dart; 53 friend class Dart;
53 friend class RunKernelTask; 54 friend class RunKernelTask;
54 }; 55 };
55 56
56 } // namespace dart 57 } // namespace dart
57 58
58 #endif // DART_PRECOMPILED_RUNTIME 59 #endif // DART_PRECOMPILED_RUNTIME
59 60
60 #endif // RUNTIME_VM_KERNEL_ISOLATE_H_ 61 #endif // RUNTIME_VM_KERNEL_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate_reload_test.cc ('k') | runtime/vm/kernel_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698