| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "vm/isolate.h" | 5 #include "vm/isolate.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
| 9 #include "platform/json.h" | 9 #include "platform/json.h" |
| 10 #include "lib/mirrors.h" | 10 #include "lib/mirrors.h" |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 SetCurrent(NULL); | 734 SetCurrent(NULL); |
| 735 } | 735 } |
| 736 | 736 |
| 737 | 737 |
| 738 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; | 738 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; |
| 739 Dart_IsolateInterruptCallback Isolate::interrupt_callback_ = NULL; | 739 Dart_IsolateInterruptCallback Isolate::interrupt_callback_ = NULL; |
| 740 Dart_IsolateUnhandledExceptionCallback | 740 Dart_IsolateUnhandledExceptionCallback |
| 741 Isolate::unhandled_exception_callback_ = NULL; | 741 Isolate::unhandled_exception_callback_ = NULL; |
| 742 Dart_IsolateShutdownCallback Isolate::shutdown_callback_ = NULL; | 742 Dart_IsolateShutdownCallback Isolate::shutdown_callback_ = NULL; |
| 743 Dart_FileOpenCallback Isolate::file_open_callback_ = NULL; | 743 Dart_FileOpenCallback Isolate::file_open_callback_ = NULL; |
| 744 Dart_FileReadCallback Isolate::file_read_callback_ = NULL; | |
| 745 Dart_FileWriteCallback Isolate::file_write_callback_ = NULL; | 744 Dart_FileWriteCallback Isolate::file_write_callback_ = NULL; |
| 746 Dart_FileCloseCallback Isolate::file_close_callback_ = NULL; | 745 Dart_FileCloseCallback Isolate::file_close_callback_ = NULL; |
| 747 Dart_IsolateInterruptCallback Isolate::vmstats_callback_ = NULL; | 746 Dart_IsolateInterruptCallback Isolate::vmstats_callback_ = NULL; |
| 748 | 747 |
| 749 | 748 |
| 750 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, | 749 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, |
| 751 bool visit_prologue_weak_handles, | 750 bool visit_prologue_weak_handles, |
| 752 bool validate_frames) { | 751 bool validate_frames) { |
| 753 ASSERT(visitor != NULL); | 752 ASSERT(visitor != NULL); |
| 754 | 753 |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 return func.raw(); | 1077 return func.raw(); |
| 1079 } | 1078 } |
| 1080 | 1079 |
| 1081 | 1080 |
| 1082 void IsolateSpawnState::Cleanup() { | 1081 void IsolateSpawnState::Cleanup() { |
| 1083 SwitchIsolateScope switch_scope(isolate()); | 1082 SwitchIsolateScope switch_scope(isolate()); |
| 1084 Dart::ShutdownIsolate(); | 1083 Dart::ShutdownIsolate(); |
| 1085 } | 1084 } |
| 1086 | 1085 |
| 1087 } // namespace dart | 1086 } // namespace dart |
| OLD | NEW |