| 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 "mojo/dart/dart_snapshotter/vm.h" | 5 #include "mojo/dart/embedder/snapshotter/vm.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "tonic/dart_error.h" | 8 #include "tonic/dart_error.h" |
| 9 #include "tonic/dart_state.h" | 9 #include "tonic/dart_state.h" |
| 10 | 10 |
| 11 namespace mojo { | 11 namespace mojo { |
| 12 namespace dart { | 12 namespace dart { |
| 13 extern const uint8_t* vm_isolate_snapshot_buffer; | 13 extern const uint8_t* vm_isolate_snapshot_buffer; |
| 14 extern const uint8_t* isolate_snapshot_buffer; | 14 extern const uint8_t* isolate_snapshot_buffer; |
| 15 } | 15 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 35 "main", | 35 "main", |
| 36 mojo::dart::isolate_snapshot_buffer, | 36 mojo::dart::isolate_snapshot_buffer, |
| 37 nullptr, | 37 nullptr, |
| 38 isolate_data, | 38 isolate_data, |
| 39 &error); | 39 &error); |
| 40 CHECK(isolate) << error; | 40 CHECK(isolate) << error; |
| 41 Dart_ExitIsolate(); | 41 Dart_ExitIsolate(); |
| 42 isolate_data->SetIsolate(isolate); | 42 isolate_data->SetIsolate(isolate); |
| 43 return isolate; | 43 return isolate; |
| 44 } | 44 } |
| OLD | NEW |