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

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 19 matching lines...) Expand all
30 Dart_FileOpenCallback file_open, 30 Dart_FileOpenCallback file_open,
31 Dart_FileReadCallback file_read, 31 Dart_FileReadCallback file_read,
32 Dart_FileWriteCallback file_write, 32 Dart_FileWriteCallback file_write,
33 Dart_FileCloseCallback file_close, 33 Dart_FileCloseCallback file_close,
34 Dart_EntropySource entropy_source, 34 Dart_EntropySource entropy_source,
35 Dart_GetVMServiceAssetsArchive get_service_assets); 35 Dart_GetVMServiceAssetsArchive get_service_assets);
36 static const char* Cleanup(); 36 static const char* Cleanup();
37 37
38 static Isolate* CreateIsolate(const char* name_prefix, 38 static Isolate* CreateIsolate(const char* name_prefix,
39 const Dart_IsolateFlags& api_flags); 39 const Dart_IsolateFlags& api_flags);
40 static RawError* InitializeIsolate(const uint8_t* snapshot, void* data); 40
41 // Initialize an isolate, either from a snapshot, from a Kernel binary, or
42 // from SDK library sources. If the snapshot_buffer is non-NULL,
43 // initialize from a snapshot or a Kernel binary depending on the value of
44 // from_kernel. Otherwise, initialize from sources.
45 static RawError* InitializeIsolate(const uint8_t* snapshot_buffer,
46 intptr_t snapshot_length,
47 bool from_kernel,
48 void* data);
41 static void RunShutdownCallback(); 49 static void RunShutdownCallback();
42 static void ShutdownIsolate(Isolate* isolate); 50 static void ShutdownIsolate(Isolate* isolate);
43 static void ShutdownIsolate(); 51 static void ShutdownIsolate();
44 52
45 static Isolate* vm_isolate() { return vm_isolate_; } 53 static Isolate* vm_isolate() { return vm_isolate_; }
46 static ThreadPool* thread_pool() { return thread_pool_; } 54 static ThreadPool* thread_pool() { return thread_pool_; }
47 55
48 // Returns a timestamp for use in debugging output in milliseconds 56 // Returns a timestamp for use in debugging output in milliseconds
49 // since start time. 57 // since start time.
50 static int64_t timestamp(); 58 static int64_t timestamp();
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 static Dart_FileOpenCallback file_open_callback_; 134 static Dart_FileOpenCallback file_open_callback_;
127 static Dart_FileReadCallback file_read_callback_; 135 static Dart_FileReadCallback file_read_callback_;
128 static Dart_FileWriteCallback file_write_callback_; 136 static Dart_FileWriteCallback file_write_callback_;
129 static Dart_FileCloseCallback file_close_callback_; 137 static Dart_FileCloseCallback file_close_callback_;
130 static Dart_EntropySource entropy_source_callback_; 138 static Dart_EntropySource entropy_source_callback_;
131 }; 139 };
132 140
133 } // namespace dart 141 } // namespace dart
134 142
135 #endif // RUNTIME_VM_DART_H_ 143 #endif // RUNTIME_VM_DART_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698