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

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

Issue 2485993002: VM: Support bootstrapping core libraries from Kernel binaries instead of source. (Closed)
Patch Set: Done Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_DART_H_ 5 #ifndef RUNTIME_VM_DART_H_
6 #define RUNTIME_VM_DART_H_ 6 #define RUNTIME_VM_DART_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 #include "vm/snapshot.h" 10 #include "vm/snapshot.h"
(...skipping 20 matching lines...) Expand all
31 Dart_FileOpenCallback file_open, 31 Dart_FileOpenCallback file_open,
32 Dart_FileReadCallback file_read, 32 Dart_FileReadCallback file_read,
33 Dart_FileWriteCallback file_write, 33 Dart_FileWriteCallback file_write,
34 Dart_FileCloseCallback file_close, 34 Dart_FileCloseCallback file_close,
35 Dart_EntropySource entropy_source, 35 Dart_EntropySource entropy_source,
36 Dart_GetVMServiceAssetsArchive get_service_assets); 36 Dart_GetVMServiceAssetsArchive get_service_assets);
37 static const char* Cleanup(); 37 static const char* Cleanup();
38 38
39 static Isolate* CreateIsolate(const char* name_prefix, 39 static Isolate* CreateIsolate(const char* name_prefix,
40 const Dart_IsolateFlags& api_flags); 40 const Dart_IsolateFlags& api_flags);
41 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); 41
42 // Initialize an isolate, either from a snapshot, from a Kernel binary, or
43 // from SDK library sources. If the snapshot_buffer is non-NULL,
44 // initialize from a snapshot or a Kernel binary depending on the value of
45 // from_kernel. Otherwise, initialize from sources.
46 static RawError* InitializeIsolate(const uint8_t* snapshot_buffer,
47 intptr_t snapshot_length,
48 bool from_kernel,
49 void* data);
42 static void RunShutdownCallback(); 50 static void RunShutdownCallback();
43 static void ShutdownIsolate(Isolate* isolate); 51 static void ShutdownIsolate(Isolate* isolate);
44 static void ShutdownIsolate(); 52 static void ShutdownIsolate();
45 53
46 static Isolate* vm_isolate() { return vm_isolate_; } 54 static Isolate* vm_isolate() { return vm_isolate_; }
47 static ThreadPool* thread_pool() { return thread_pool_; } 55 static ThreadPool* thread_pool() { return thread_pool_; }
48 56
49 // Returns a timestamp for use in debugging output in milliseconds 57 // Returns a timestamp for use in debugging output in milliseconds
50 // since start time. 58 // since start time.
51 static int64_t timestamp(); 59 static int64_t timestamp();
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 static Dart_FileOpenCallback file_open_callback_; 139 static Dart_FileOpenCallback file_open_callback_;
132 static Dart_FileReadCallback file_read_callback_; 140 static Dart_FileReadCallback file_read_callback_;
133 static Dart_FileWriteCallback file_write_callback_; 141 static Dart_FileWriteCallback file_write_callback_;
134 static Dart_FileCloseCallback file_close_callback_; 142 static Dart_FileCloseCallback file_close_callback_;
135 static Dart_EntropySource entropy_source_callback_; 143 static Dart_EntropySource entropy_source_callback_;
136 }; 144 };
137 145
138 } // namespace dart 146 } // namespace dart
139 147
140 #endif // RUNTIME_VM_DART_H_ 148 #endif // RUNTIME_VM_DART_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698