Add argument to Dart_Initialize for precompiled instructions.

R=asiva@google.com

Review URL: https://codereview.chromium.org//1311963002 .
This commit is contained in:
Ryan Macnak 2015-08-26 11:04:27 -07:00
parent f61faa2fbd
commit c3abcd8f93
7 changed files with 8 additions and 2 deletions

View file

@ -544,7 +544,7 @@ int main(int argc, char** argv) {
// Initialize the Dart VM.
// Note: We don't expect isolates to be created from dart code during
// snapshot generation.
if (!Dart_Initialize(NULL,
if (!Dart_Initialize(NULL, NULL,
NULL, NULL, NULL, NULL,
DartUtils::OpenFile,
DartUtils::ReadFile,

View file

@ -1033,7 +1033,7 @@ void main(int argc, char** argv) {
}
// Initialize the Dart VM.
if (!Dart_Initialize(vm_isolate_snapshot_buffer,
if (!Dart_Initialize(vm_isolate_snapshot_buffer, NULL,
CreateIsolateAndSetup, NULL, NULL, ShutdownIsolate,
DartUtils::OpenFile,
DartUtils::ReadFile,

View file

@ -102,6 +102,7 @@ static int Main(int argc, const char** argv) {
dart_argv);
ASSERT(set_vm_flags_success);
const char* err_msg = Dart::InitOnce(dart::bin::vm_isolate_snapshot_buffer,
NULL,
NULL, NULL, NULL, NULL,
dart::bin::DartUtils::OpenFile,
dart::bin::DartUtils::ReadFile,

View file

@ -865,6 +865,7 @@ typedef bool (*Dart_EntropySource)(uint8_t* buffer, intptr_t length);
*/
DART_EXPORT bool Dart_Initialize(
const uint8_t* vm_isolate_snapshot,
const uint8_t* instructions_snapshot,
Dart_IsolateCreateCallback create,
Dart_IsolateInterruptCallback interrupt,
Dart_IsolateUnhandledExceptionCallback unhandled_exception,

View file

@ -68,6 +68,7 @@ class ReadOnlyHandles {
const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
const uint8_t* instructions_snapshot,
Dart_IsolateCreateCallback create,
Dart_IsolateInterruptCallback interrupt,
Dart_IsolateUnhandledExceptionCallback unhandled,

View file

@ -22,6 +22,7 @@ class Dart : public AllStatic {
public:
static const char* InitOnce(
const uint8_t* vm_isolate_snapshot,
const uint8_t* instructions_snapshot,
Dart_IsolateCreateCallback create,
Dart_IsolateInterruptCallback interrupt,
Dart_IsolateUnhandledExceptionCallback unhandled,

View file

@ -1266,6 +1266,7 @@ DART_EXPORT const char* Dart_VersionString() {
DART_EXPORT bool Dart_Initialize(
const uint8_t* vm_isolate_snapshot,
const uint8_t* instructions_snapshot,
Dart_IsolateCreateCallback create,
Dart_IsolateInterruptCallback interrupt,
Dart_IsolateUnhandledExceptionCallback unhandled,
@ -1276,6 +1277,7 @@ DART_EXPORT bool Dart_Initialize(
Dart_FileCloseCallback file_close,
Dart_EntropySource entropy_source) {
const char* err_msg = Dart::InitOnce(vm_isolate_snapshot,
instructions_snapshot,
create, interrupt, unhandled, shutdown,
file_open, file_read, file_write,
file_close, entropy_source);