| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sky/tools/packager/vm.h" | 5 #include "sky/tools/packager/vm.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "sky/tools/packager/loader.h" | 8 #include "sky/tools/packager/loader.h" |
| 9 #include "sky/tools/packager/logging.h" | 9 #include "sky/tools/packager/logging.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 Dart_Isolate CreateDartIsolate() { | 26 Dart_Isolate CreateDartIsolate() { |
| 27 CHECK(blink::kDartIsolateSnapshotBuffer); | 27 CHECK(blink::kDartIsolateSnapshotBuffer); |
| 28 char* error = nullptr; | 28 char* error = nullptr; |
| 29 Dart_Isolate isolate = Dart_CreateIsolate("dart:snapshot", "main", | 29 Dart_Isolate isolate = Dart_CreateIsolate("dart:snapshot", "main", |
| 30 blink::kDartIsolateSnapshotBuffer, | 30 blink::kDartIsolateSnapshotBuffer, |
| 31 nullptr, nullptr, &error); | 31 nullptr, nullptr, &error); |
| 32 | 32 |
| 33 CHECK(isolate) << error; | 33 CHECK(isolate) << error; |
| 34 CHECK(!LogIfError(Dart_SetLibraryTagHandler(HandleLibraryTag))); | 34 CHECK(!LogIfError(Dart_SetLibraryTagHandler(HandleLibraryTag))); |
| 35 LoadSkyInternals(); | |
| 36 | 35 |
| 37 Dart_ExitIsolate(); | 36 Dart_ExitIsolate(); |
| 38 return isolate; | 37 return isolate; |
| 39 } | 38 } |
| OLD | NEW |