| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 | 6 |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 605 } | 605 } |
| 606 callbacks.Remove(callback); | 606 callbacks.Remove(callback); |
| 607 return Api::Success(isolate); | 607 return Api::Success(isolate); |
| 608 } | 608 } |
| 609 | 609 |
| 610 | 610 |
| 611 // --- Initialization and Globals --- | 611 // --- Initialization and Globals --- |
| 612 | 612 |
| 613 | 613 |
| 614 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create, | 614 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create, |
| 615 Dart_IsolateInterruptCallback interrupt) { | 615 Dart_IsolateInterruptCallback interrupt, |
| 616 return Dart::InitOnce(create, interrupt); | 616 Dart_IsolateShutdownCallback shutdown) { |
| 617 return Dart::InitOnce(create, interrupt, shutdown); |
| 617 } | 618 } |
| 618 | 619 |
| 619 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) { | 620 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) { |
| 620 return Flags::ProcessCommandLineFlags(argc, argv); | 621 return Flags::ProcessCommandLineFlags(argc, argv); |
| 621 } | 622 } |
| 622 | 623 |
| 623 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { | 624 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { |
| 624 if (Flags::Lookup(flag_name) != NULL) { | 625 if (Flags::Lookup(flag_name) != NULL) { |
| 625 return true; | 626 return true; |
| 626 } | 627 } |
| (...skipping 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3313 *buffer = NULL; | 3314 *buffer = NULL; |
| 3314 } | 3315 } |
| 3315 delete debug_region; | 3316 delete debug_region; |
| 3316 } else { | 3317 } else { |
| 3317 *buffer = NULL; | 3318 *buffer = NULL; |
| 3318 *buffer_size = 0; | 3319 *buffer_size = 0; |
| 3319 } | 3320 } |
| 3320 } | 3321 } |
| 3321 | 3322 |
| 3322 } // namespace dart | 3323 } // namespace dart |
| OLD | NEW |