| 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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 STOP_TIMER(time_total_runtime); | 767 STOP_TIMER(time_total_runtime); |
| 768 Dart::ShutdownIsolate(); | 768 Dart::ShutdownIsolate(); |
| 769 } | 769 } |
| 770 | 770 |
| 771 | 771 |
| 772 DART_EXPORT Dart_Isolate Dart_CurrentIsolate() { | 772 DART_EXPORT Dart_Isolate Dart_CurrentIsolate() { |
| 773 return Api::CastIsolate(Isolate::Current()); | 773 return Api::CastIsolate(Isolate::Current()); |
| 774 } | 774 } |
| 775 | 775 |
| 776 | 776 |
| 777 DART_EXPORT void* Dart_CurrentIsolateData() { |
| 778 Isolate* isolate = Isolate::Current(); |
| 779 CHECK_ISOLATE(isolate); |
| 780 return isolate->init_callback_data(); |
| 781 } |
| 782 |
| 783 |
| 777 DART_EXPORT Dart_Handle Dart_DebugName() { | 784 DART_EXPORT Dart_Handle Dart_DebugName() { |
| 778 Isolate* isolate = Isolate::Current(); | 785 Isolate* isolate = Isolate::Current(); |
| 779 CHECK_ISOLATE(isolate); | 786 CHECK_ISOLATE(isolate); |
| 780 return Api::NewHandle(isolate, String::New(isolate->name())); | 787 return Api::NewHandle(isolate, String::New(isolate->name())); |
| 781 } | 788 } |
| 782 | 789 |
| 783 | 790 |
| 784 | 791 |
| 785 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate dart_isolate) { | 792 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate dart_isolate) { |
| 786 CHECK_NO_ISOLATE(Isolate::Current()); | 793 CHECK_NO_ISOLATE(Isolate::Current()); |
| (...skipping 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3657 *buffer_size = 0; | 3664 *buffer_size = 0; |
| 3658 } | 3665 } |
| 3659 } | 3666 } |
| 3660 | 3667 |
| 3661 | 3668 |
| 3662 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function) { | 3669 DART_EXPORT void Dart_InitFlowGraphPrinting(FileWriterFunction function) { |
| 3663 Dart::set_flow_graph_writer(function); | 3670 Dart::set_flow_graph_writer(function); |
| 3664 } | 3671 } |
| 3665 | 3672 |
| 3666 } // namespace dart | 3673 } // namespace dart |
| OLD | NEW |