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

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

Issue 1837803003: - Limit 32-bit platforms to 1.5GB of memory for old gen by default. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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/include/dart_api.h ('k') | runtime/vm/debugger.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 18 matching lines...) Expand all
29 #include "vm/symbols.h" 29 #include "vm/symbols.h"
30 #include "vm/thread_interrupter.h" 30 #include "vm/thread_interrupter.h"
31 #include "vm/thread_pool.h" 31 #include "vm/thread_pool.h"
32 #include "vm/timeline.h" 32 #include "vm/timeline.h"
33 #include "vm/virtual_memory.h" 33 #include "vm/virtual_memory.h"
34 #include "vm/zone.h" 34 #include "vm/zone.h"
35 35
36 namespace dart { 36 namespace dart {
37 37
38 DECLARE_FLAG(bool, print_class_table); 38 DECLARE_FLAG(bool, print_class_table);
39 DECLARE_FLAG(bool, trace_isolates);
40 DECLARE_FLAG(bool, trace_time_all); 39 DECLARE_FLAG(bool, trace_time_all);
41 DECLARE_FLAG(bool, pause_isolates_on_start);
42 DECLARE_FLAG(bool, pause_isolates_on_exit);
43 DEFINE_FLAG(bool, keep_code, false, 40 DEFINE_FLAG(bool, keep_code, false,
44 "Keep deoptimized code for profiling."); 41 "Keep deoptimized code for profiling.");
45 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM"); 42 DEFINE_FLAG(bool, shutdown, true, "Do a clean shutdown of the VM");
46 DEFINE_FLAG(bool, trace_shutdown, false, "Trace VM shutdown on stderr"); 43 DEFINE_FLAG(bool, trace_shutdown, false, "Trace VM shutdown on stderr");
47 44
48 Isolate* Dart::vm_isolate_ = NULL; 45 Isolate* Dart::vm_isolate_ = NULL;
49 int64_t Dart::start_time_ = 0; 46 int64_t Dart::start_time_ = 0;
50 ThreadPool* Dart::thread_pool_ = NULL; 47 ThreadPool* Dart::thread_pool_ = NULL;
51 DebugInfo* Dart::pprof_symbol_generator_ = NULL; 48 DebugInfo* Dart::pprof_symbol_generator_ = NULL;
52 ReadOnlyHandles* Dart::predefined_handles_ = NULL; 49 ReadOnlyHandles* Dart::predefined_handles_ = NULL;
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 return predefined_handles_->handles_.IsValidScopedHandle(address); 567 return predefined_handles_->handles_.IsValidScopedHandle(address);
571 } 568 }
572 569
573 570
574 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 571 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
575 ASSERT(predefined_handles_ != NULL); 572 ASSERT(predefined_handles_ != NULL);
576 return predefined_handles_->api_handles_.IsValidHandle(handle); 573 return predefined_handles_->api_handles_.IsValidHandle(handle);
577 } 574 }
578 575
579 } // namespace dart 576 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698