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

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

Issue 1350713004: Disable shutdown (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: check shutdown flag in service isolate Created 5 years, 3 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
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dart.h" 5 #include "vm/dart.h"
6 6
7 #include "vm/code_observers.h" 7 #include "vm/code_observers.h"
8 #include "vm/cpu.h" 8 #include "vm/cpu.h"
9 #include "vm/dart_api_state.h" 9 #include "vm/dart_api_state.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 20 matching lines...) Expand all
31 #include "vm/virtual_memory.h" 31 #include "vm/virtual_memory.h"
32 #include "vm/zone.h" 32 #include "vm/zone.h"
33 33
34 namespace dart { 34 namespace dart {
35 35
36 DECLARE_FLAG(bool, print_class_table); 36 DECLARE_FLAG(bool, print_class_table);
37 DECLARE_FLAG(bool, trace_isolates); 37 DECLARE_FLAG(bool, trace_isolates);
38 DECLARE_FLAG(bool, trace_time_all); 38 DECLARE_FLAG(bool, trace_time_all);
39 DEFINE_FLAG(bool, keep_code, false, 39 DEFINE_FLAG(bool, keep_code, false,
40 "Keep deoptimized code for profiling."); 40 "Keep deoptimized code for profiling.");
41 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); 41 DEFINE_FLAG(bool, shutdown, false, "Do a clean shutdown of the VM");
42 42
43 Isolate* Dart::vm_isolate_ = NULL; 43 Isolate* Dart::vm_isolate_ = NULL;
44 ThreadPool* Dart::thread_pool_ = NULL; 44 ThreadPool* Dart::thread_pool_ = NULL;
45 DebugInfo* Dart::pprof_symbol_generator_ = NULL; 45 DebugInfo* Dart::pprof_symbol_generator_ = NULL;
46 ReadOnlyHandles* Dart::predefined_handles_ = NULL; 46 ReadOnlyHandles* Dart::predefined_handles_ = NULL;
47 const uint8_t* Dart::instructions_snapshot_buffer_ = NULL; 47 const uint8_t* Dart::instructions_snapshot_buffer_ = NULL;
48 48
49 // Structure for managing read-only global handles allocation used for 49 // Structure for managing read-only global handles allocation used for
50 // creating global read-only handles that are pre created and initialized 50 // creating global read-only handles that are pre created and initialized
51 // for use across all isolates. Having these global pre created handles 51 // for use across all isolates. Having these global pre created handles
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 return predefined_handles_->handles_.IsValidScopedHandle(address); 419 return predefined_handles_->handles_.IsValidScopedHandle(address);
420 } 420 }
421 421
422 422
423 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 423 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
424 ASSERT(predefined_handles_ != NULL); 424 ASSERT(predefined_handles_ != NULL);
425 return predefined_handles_->api_handles_.IsValidHandle(handle); 425 return predefined_handles_->api_handles_.IsValidHandle(handle);
426 } 426 }
427 427
428 } // namespace dart 428 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/process.cc ('k') | runtime/vm/service_isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698