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

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

Issue 2026643004: Don't overload FreeListElement for become. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/isolate_reload.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/become.h"
7 #include "vm/code_observers.h" 8 #include "vm/code_observers.h"
8 #include "vm/cpu.h" 9 #include "vm/cpu.h"
9 #include "vm/dart_api_state.h" 10 #include "vm/dart_api_state.h"
10 #include "vm/dart_entry.h" 11 #include "vm/dart_entry.h"
11 #include "vm/debugger.h" 12 #include "vm/debugger.h"
12 #include "vm/flags.h" 13 #include "vm/flags.h"
13 #include "vm/freelist.h" 14 #include "vm/freelist.h"
14 #include "vm/handles.h" 15 #include "vm/handles.h"
15 #include "vm/heap.h" 16 #include "vm/heap.h"
16 #include "vm/isolate.h" 17 #include "vm/isolate.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 VirtualMemory::InitOnce(); 140 VirtualMemory::InitOnce();
140 OSThread::InitOnce(); 141 OSThread::InitOnce();
141 if (FLAG_support_timeline) { 142 if (FLAG_support_timeline) {
142 Timeline::InitOnce(); 143 Timeline::InitOnce();
143 } 144 }
144 NOT_IN_PRODUCT(TimelineDurationScope tds(Timeline::GetVMStream(), 145 NOT_IN_PRODUCT(TimelineDurationScope tds(Timeline::GetVMStream(),
145 "Dart::InitOnce")); 146 "Dart::InitOnce"));
146 Isolate::InitOnce(); 147 Isolate::InitOnce();
147 PortMap::InitOnce(); 148 PortMap::InitOnce();
148 FreeListElement::InitOnce(); 149 FreeListElement::InitOnce();
150 ForwardingCorpse::InitOnce();
149 Api::InitOnce(); 151 Api::InitOnce();
150 NOT_IN_PRODUCT(CodeObservers::InitOnce()); 152 NOT_IN_PRODUCT(CodeObservers::InitOnce());
151 if (FLAG_profiler) { 153 if (FLAG_profiler) {
152 ThreadInterrupter::InitOnce(); 154 ThreadInterrupter::InitOnce();
153 Profiler::InitOnce(); 155 Profiler::InitOnce();
154 } 156 }
155 SemiSpace::InitOnce(); 157 SemiSpace::InitOnce();
156 Metric::InitOnce(); 158 Metric::InitOnce();
157 StoreBuffer::InitOnce(); 159 StoreBuffer::InitOnce();
158 MarkingStack::InitOnce(); 160 MarkingStack::InitOnce();
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 return predefined_handles_->handles_.IsValidScopedHandle(address); 706 return predefined_handles_->handles_.IsValidScopedHandle(address);
705 } 707 }
706 708
707 709
708 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 710 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
709 ASSERT(predefined_handles_ != NULL); 711 ASSERT(predefined_handles_ != NULL);
710 return predefined_handles_->api_handles_.IsValidHandle(handle); 712 return predefined_handles_->api_handles_.IsValidHandle(handle);
711 } 713 }
712 714
713 } // namespace dart 715 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler_stats.cc ('k') | runtime/vm/isolate_reload.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698