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

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

Issue 1173043002: Reuse empty StoreBufferBlocks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 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
« no previous file with comments | « no previous file | runtime/vm/isolate.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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 Thread::InitOnce(); 96 Thread::InitOnce();
97 Isolate::InitOnce(); 97 Isolate::InitOnce();
98 PortMap::InitOnce(); 98 PortMap::InitOnce();
99 FreeListElement::InitOnce(); 99 FreeListElement::InitOnce();
100 Api::InitOnce(); 100 Api::InitOnce();
101 CodeObservers::InitOnce(); 101 CodeObservers::InitOnce();
102 ThreadInterrupter::InitOnce(); 102 ThreadInterrupter::InitOnce();
103 Profiler::InitOnce(); 103 Profiler::InitOnce();
104 SemiSpace::InitOnce(); 104 SemiSpace::InitOnce();
105 Metric::InitOnce(); 105 Metric::InitOnce();
106 StoreBuffer::InitOnce();
106 107
107 #if defined(USING_SIMULATOR) 108 #if defined(USING_SIMULATOR)
108 Simulator::InitOnce(); 109 Simulator::InitOnce();
109 #endif 110 #endif
110 // Create the read-only handles area. 111 // Create the read-only handles area.
111 ASSERT(predefined_handles_ == NULL); 112 ASSERT(predefined_handles_ == NULL);
112 predefined_handles_ = new ReadOnlyHandles(); 113 predefined_handles_ = new ReadOnlyHandles();
113 // Create the VM isolate and finish the VM initialization. 114 // Create the VM isolate and finish the VM initialization.
114 ASSERT(thread_pool_ == NULL); 115 ASSERT(thread_pool_ == NULL);
115 thread_pool_ = new ThreadPool(); 116 thread_pool_ = new ThreadPool();
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 return predefined_handles_->handles_.AllocateScopedHandle(); 357 return predefined_handles_->handles_.AllocateScopedHandle();
357 } 358 }
358 359
359 360
360 bool Dart::IsReadOnlyHandle(uword address) { 361 bool Dart::IsReadOnlyHandle(uword address) {
361 ASSERT(predefined_handles_ != NULL); 362 ASSERT(predefined_handles_ != NULL);
362 return predefined_handles_->handles_.IsValidScopedHandle(address); 363 return predefined_handles_->handles_.IsValidScopedHandle(address);
363 } 364 }
364 365
365 } // namespace dart 366 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698