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

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

Issue 59773007: - Add a per-isolate pseudo random number generator to the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 object_store_(NULL), 283 object_store_(NULL),
284 top_context_(Context::null()), 284 top_context_(Context::null()),
285 top_exit_frame_info_(0), 285 top_exit_frame_info_(0),
286 init_callback_data_(NULL), 286 init_callback_data_(NULL),
287 environment_callback_(NULL), 287 environment_callback_(NULL),
288 library_tag_handler_(NULL), 288 library_tag_handler_(NULL),
289 api_state_(NULL), 289 api_state_(NULL),
290 stub_code_(NULL), 290 stub_code_(NULL),
291 debugger_(NULL), 291 debugger_(NULL),
292 single_step_(false), 292 single_step_(false),
293 random_(),
293 simulator_(NULL), 294 simulator_(NULL),
294 long_jump_base_(NULL), 295 long_jump_base_(NULL),
295 timer_list_(), 296 timer_list_(),
296 deopt_id_(0), 297 deopt_id_(0),
297 mutex_(new Mutex()), 298 mutex_(new Mutex()),
298 stack_limit_(0), 299 stack_limit_(0),
299 saved_stack_limit_(0), 300 saved_stack_limit_(0),
300 message_handler_(NULL), 301 message_handler_(NULL),
301 spawn_data_(0), 302 spawn_data_(0),
302 is_runnable_(false), 303 is_runnable_(false),
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 720
720 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL; 721 Dart_IsolateCreateCallback Isolate::create_callback_ = NULL;
721 Dart_IsolateInterruptCallback Isolate::interrupt_callback_ = NULL; 722 Dart_IsolateInterruptCallback Isolate::interrupt_callback_ = NULL;
722 Dart_IsolateUnhandledExceptionCallback 723 Dart_IsolateUnhandledExceptionCallback
723 Isolate::unhandled_exception_callback_ = NULL; 724 Isolate::unhandled_exception_callback_ = NULL;
724 Dart_IsolateShutdownCallback Isolate::shutdown_callback_ = NULL; 725 Dart_IsolateShutdownCallback Isolate::shutdown_callback_ = NULL;
725 Dart_FileOpenCallback Isolate::file_open_callback_ = NULL; 726 Dart_FileOpenCallback Isolate::file_open_callback_ = NULL;
726 Dart_FileReadCallback Isolate::file_read_callback_ = NULL; 727 Dart_FileReadCallback Isolate::file_read_callback_ = NULL;
727 Dart_FileWriteCallback Isolate::file_write_callback_ = NULL; 728 Dart_FileWriteCallback Isolate::file_write_callback_ = NULL;
728 Dart_FileCloseCallback Isolate::file_close_callback_ = NULL; 729 Dart_FileCloseCallback Isolate::file_close_callback_ = NULL;
730 Dart_EntropySource Isolate::entropy_source_callback_ = NULL;
729 Dart_IsolateInterruptCallback Isolate::vmstats_callback_ = NULL; 731 Dart_IsolateInterruptCallback Isolate::vmstats_callback_ = NULL;
730 732
731 733
732 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor, 734 void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
733 bool visit_prologue_weak_handles, 735 bool visit_prologue_weak_handles,
734 bool validate_frames) { 736 bool validate_frames) {
735 ASSERT(visitor != NULL); 737 ASSERT(visitor != NULL);
736 738
737 // Visit objects in the object store. 739 // Visit objects in the object store.
738 object_store()->VisitObjectPointers(visitor); 740 object_store()->VisitObjectPointers(visitor);
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 return func.raw(); 1060 return func.raw();
1059 } 1061 }
1060 1062
1061 1063
1062 void IsolateSpawnState::Cleanup() { 1064 void IsolateSpawnState::Cleanup() {
1063 SwitchIsolateScope switch_scope(isolate()); 1065 SwitchIsolateScope switch_scope(isolate());
1064 Dart::ShutdownIsolate(); 1066 Dart::ShutdownIsolate();
1065 } 1067 }
1066 1068
1067 } // namespace dart 1069 } // namespace dart
OLDNEW
« runtime/bin/dartutils.cc ('K') | « runtime/vm/isolate.h ('k') | runtime/vm/random.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698