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

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

Issue 2525623002: VM: [Kernel] Split kernel API into 3 steps: ([read binary], parse-binary, bootstrap, load program) (Closed)
Patch Set: addressed comments Created 4 years 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/bootstrap.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_BOOTSTRAP_H_ 5 #ifndef RUNTIME_VM_BOOTSTRAP_H_
6 #define RUNTIME_VM_BOOTSTRAP_H_ 6 #define RUNTIME_VM_BOOTSTRAP_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 10
11 namespace dart { 11 namespace dart {
12 12
13 // Forward declarations. 13 // Forward declarations.
14 class RawError; 14 class RawError;
15 namespace kernel {
16 class Program;
17 }
15 18
16 class Bootstrap : public AllStatic { 19 class Bootstrap : public AllStatic {
17 public: 20 public:
18 // Compile the bootstrap libraries, either from sources or a Kernel binary. 21 // Compile the bootstrap libraries, either from sources or a Kernel program.
19 // If kernel_buffer is NULL, compile from sources or source paths linked into 22 // If program is NULL, compile from sources or source paths linked into
20 // the VM. If it is non-NULL it represents a buffer holding a Kernel binary. 23 // the VM. If it is non-NULL it represents the Kernel program to use for
24 // bootstrapping.
21 // The caller of this function is responsible for managing the kernel 25 // The caller of this function is responsible for managing the kernel
22 // buffer's memory, and is welcome to deallocate it after this function 26 // program's memory.
23 // returns. 27 static RawError* DoBootstrapping(kernel::Program* program);
24 static RawError* DoBootstrapping(const uint8_t* kernel_buffer,
25 intptr_t kernel_buffer_length);
26 28
27 static void SetupNativeResolver(); 29 static void SetupNativeResolver();
28 static bool IsBootstapResolver(Dart_NativeEntryResolver resolver); 30 static bool IsBootstapResolver(Dart_NativeEntryResolver resolver);
29 31
30 // Source path mapping for library URI and 'parts'. 32 // Source path mapping for library URI and 'parts'.
31 static const char* async_source_paths_[]; 33 static const char* async_source_paths_[];
32 static const char* core_source_paths_[]; 34 static const char* core_source_paths_[];
33 static const char* collection_source_paths_[]; 35 static const char* collection_source_paths_[];
34 static const char* convert_source_paths_[]; 36 static const char* convert_source_paths_[];
35 static const char* developer_source_paths_[]; 37 static const char* developer_source_paths_[];
(...skipping 20 matching lines...) Expand all
56 static const char* _vmservice_patch_paths_[]; 58 static const char* _vmservice_patch_paths_[];
57 59
58 // NULL patch paths for libraries that do not have patch files. 60 // NULL patch paths for libraries that do not have patch files.
59 static const char** profiler_patch_paths_; 61 static const char** profiler_patch_paths_;
60 static const char** typed_data_patch_paths_; 62 static const char** typed_data_patch_paths_;
61 }; 63 };
62 64
63 } // namespace dart 65 } // namespace dart
64 66
65 #endif // RUNTIME_VM_BOOTSTRAP_H_ 67 #endif // RUNTIME_VM_BOOTSTRAP_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698