Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1005)

Side by Side Diff: runtime/vm/isolate.cc

Issue 125103004: Move service into VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 Dart_IsolateInterruptCallback Isolate::interrupt_callback_ = NULL; 753 Dart_IsolateInterruptCallback Isolate::interrupt_callback_ = NULL;
754 Dart_IsolateUnhandledExceptionCallback 754 Dart_IsolateUnhandledExceptionCallback
755 Isolate::unhandled_exception_callback_ = NULL; 755 Isolate::unhandled_exception_callback_ = NULL;
756 Dart_IsolateShutdownCallback Isolate::shutdown_callback_ = NULL; 756 Dart_IsolateShutdownCallback Isolate::shutdown_callback_ = NULL;
757 Dart_FileOpenCallback Isolate::file_open_callback_ = NULL; 757 Dart_FileOpenCallback Isolate::file_open_callback_ = NULL;
758 Dart_FileReadCallback Isolate::file_read_callback_ = NULL; 758 Dart_FileReadCallback Isolate::file_read_callback_ = NULL;
759 Dart_FileWriteCallback Isolate::file_write_callback_ = NULL; 759 Dart_FileWriteCallback Isolate::file_write_callback_ = NULL;
760 Dart_FileCloseCallback Isolate::file_close_callback_ = NULL; 760 Dart_FileCloseCallback Isolate::file_close_callback_ = NULL;
761 Dart_EntropySource Isolate::entropy_source_callback_ = NULL; 761 Dart_EntropySource Isolate::entropy_source_callback_ = NULL;
762 Dart_IsolateInterruptCallback Isolate::vmstats_callback_ = NULL; 762 Dart_IsolateInterruptCallback Isolate::vmstats_callback_ = NULL;
763 763 Dart_ServiceIsolateCreateCallback Isolate::service_create_callback_ = NULL;
764 764
765 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, 765 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
766 bool visit_prologue_weak_handles, 766 bool visit_prologue_weak_handles,
767 bool validate_frames) { 767 bool validate_frames) {
768 ASSERT(visitor != NULL); 768 ASSERT(visitor != NULL);
769 769
770 // Visit objects in the object store. 770 // Visit objects in the object store.
771 object_store()->VisitObjectPointers(visitor); 771 object_store()->VisitObjectPointers(visitor);
772 772
773 // Visit objects in the class table. 773 // Visit objects in the class table.
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1120 return func.raw(); 1120 return func.raw();
1121 } 1121 }
1122 1122
1123 1123
1124 void IsolateSpawnState::Cleanup() { 1124 void IsolateSpawnState::Cleanup() {
1125 SwitchIsolateScope switch_scope(isolate()); 1125 SwitchIsolateScope switch_scope(isolate());
1126 Dart::ShutdownIsolate(); 1126 Dart::ShutdownIsolate();
1127 } 1127 }
1128 1128
1129 } // namespace dart 1129 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698