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

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

Issue 320463003: Make unused semispace available to other isolates. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | runtime/vm/memory_region.h » ('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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 Isolate::SetEntropySourceCallback(entropy_source); 100 Isolate::SetEntropySourceCallback(entropy_source);
101 OS::InitOnce(); 101 OS::InitOnce();
102 VirtualMemory::InitOnce(); 102 VirtualMemory::InitOnce();
103 Isolate::InitOnce(); 103 Isolate::InitOnce();
104 PortMap::InitOnce(); 104 PortMap::InitOnce();
105 FreeListElement::InitOnce(); 105 FreeListElement::InitOnce();
106 Api::InitOnce(); 106 Api::InitOnce();
107 CodeObservers::InitOnce(); 107 CodeObservers::InitOnce();
108 ThreadInterrupter::InitOnce(); 108 ThreadInterrupter::InitOnce();
109 Profiler::InitOnce(); 109 Profiler::InitOnce();
110 SemiSpace::InitOnce();
110 111
111 #if defined(USING_SIMULATOR) 112 #if defined(USING_SIMULATOR)
112 Simulator::InitOnce(); 113 Simulator::InitOnce();
113 #endif 114 #endif
114 // Create the read-only handles area. 115 // Create the read-only handles area.
115 ASSERT(predefined_handles_ == NULL); 116 ASSERT(predefined_handles_ == NULL);
116 predefined_handles_ = new ReadOnlyHandles(); 117 predefined_handles_ = new ReadOnlyHandles();
117 // Create the VM isolate and finish the VM initialization. 118 // Create the VM isolate and finish the VM initialization.
118 ASSERT(thread_pool_ == NULL); 119 ASSERT(thread_pool_ == NULL);
119 thread_pool_ = new ThreadPool(); 120 thread_pool_ = new ThreadPool();
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 return predefined_handles_->handles_.AllocateScopedHandle(); 300 return predefined_handles_->handles_.AllocateScopedHandle();
300 } 301 }
301 302
302 303
303 bool Dart::IsReadOnlyHandle(uword address) { 304 bool Dart::IsReadOnlyHandle(uword address) {
304 ASSERT(predefined_handles_ != NULL); 305 ASSERT(predefined_handles_ != NULL);
305 return predefined_handles_->handles_.IsValidScopedHandle(address); 306 return predefined_handles_->handles_.IsValidScopedHandle(address);
306 } 307 }
307 308
308 } // namespace dart 309 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/memory_region.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698