| 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/engine/config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "sky/engine/core/script/dart_controller.h" | 6 #include "sky/engine/core/script/dart_controller.h" |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "sky/engine/tonic/dart_gc_controller.h" | 35 #include "sky/engine/tonic/dart_gc_controller.h" |
| 36 #include "sky/engine/tonic/dart_invoke.h" | 36 #include "sky/engine/tonic/dart_invoke.h" |
| 37 #include "sky/engine/tonic/dart_isolate_scope.h" | 37 #include "sky/engine/tonic/dart_isolate_scope.h" |
| 38 #include "sky/engine/tonic/dart_state.h" | 38 #include "sky/engine/tonic/dart_state.h" |
| 39 #include "sky/engine/tonic/dart_wrappable.h" | 39 #include "sky/engine/tonic/dart_wrappable.h" |
| 40 #include "sky/engine/wtf/text/TextPosition.h" | 40 #include "sky/engine/wtf/text/TextPosition.h" |
| 41 | 41 |
| 42 namespace blink { | 42 namespace blink { |
| 43 | 43 |
| 44 #if ENABLE(DART_STRICT) | 44 #if ENABLE(DART_STRICT) |
| 45 static const char* kCheckedModeArgs[] = { | 45 static const char* kCheckedModeArgs[] = {"--enable_asserts", |
| 46 "--enable_asserts", | 46 "--enable_type_checks", |
| 47 "--enable_type_checks", | 47 "--error_on_bad_type", |
| 48 "--error_on_bad_type", | 48 "--error_on_bad_override", |
| 49 "--error_on_bad_override", | 49 #if WTF_OS_IOS |
| 50 "--no-profile" |
| 51 #endif |
| 50 }; | 52 }; |
| 51 #endif | 53 #endif |
| 52 | 54 |
| 53 extern const uint8_t* kDartVmIsolateSnapshotBuffer; | 55 extern const uint8_t* kDartVmIsolateSnapshotBuffer; |
| 54 extern const uint8_t* kDartIsolateSnapshotBuffer; | 56 extern const uint8_t* kDartIsolateSnapshotBuffer; |
| 55 | 57 |
| 56 DartController::DartController() : weak_factory_(this) { | 58 DartController::DartController() : weak_factory_(this) { |
| 57 } | 59 } |
| 58 | 60 |
| 59 DartController::~DartController() { | 61 DartController::~DartController() { |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 nullptr, // Isolate interrupt callback. | 386 nullptr, // Isolate interrupt callback. |
| 385 UnhandledExceptionCallback, IsolateShutdownCallback, | 387 UnhandledExceptionCallback, IsolateShutdownCallback, |
| 386 // File IO callbacks. | 388 // File IO callbacks. |
| 387 nullptr, nullptr, nullptr, nullptr, nullptr)); | 389 nullptr, nullptr, nullptr, nullptr, nullptr)); |
| 388 // Wait for load port- ensures handle watcher and service isolates are | 390 // Wait for load port- ensures handle watcher and service isolates are |
| 389 // running. | 391 // running. |
| 390 Dart_ServiceWaitForLoadPort(); | 392 Dart_ServiceWaitForLoadPort(); |
| 391 } | 393 } |
| 392 | 394 |
| 393 } // namespace blink | 395 } // namespace blink |
| OLD | NEW |