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

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

Issue 1711163002: Remove more things (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
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 Timeline::InitOnce(); 100 Timeline::InitOnce();
101 } 101 }
102 #ifndef PRODUCT 102 #ifndef PRODUCT
103 TimelineDurationScope tds(Timeline::GetVMStream(), 103 TimelineDurationScope tds(Timeline::GetVMStream(),
104 "Dart::InitOnce"); 104 "Dart::InitOnce");
105 #endif 105 #endif
106 Isolate::InitOnce(); 106 Isolate::InitOnce();
107 PortMap::InitOnce(); 107 PortMap::InitOnce();
108 FreeListElement::InitOnce(); 108 FreeListElement::InitOnce();
109 Api::InitOnce(); 109 Api::InitOnce();
110 #ifndef PRODUCT
110 CodeObservers::InitOnce(); 111 CodeObservers::InitOnce();
112 #endif
siva 2016/02/18 23:34:03 Can we move this up so that it is in the same bloc
Cutch 2016/02/22 16:05:44 I've used the new NOT_IN_PRODUCT macro.
111 if (FLAG_profiler) { 113 if (FLAG_profiler) {
112 ThreadInterrupter::InitOnce(); 114 ThreadInterrupter::InitOnce();
113 Profiler::InitOnce(); 115 Profiler::InitOnce();
114 } 116 }
115 SemiSpace::InitOnce(); 117 SemiSpace::InitOnce();
116 Metric::InitOnce(); 118 Metric::InitOnce();
117 StoreBuffer::InitOnce(); 119 StoreBuffer::InitOnce();
118 MarkingStack::InitOnce(); 120 MarkingStack::InitOnce();
119 121
120 #if defined(USING_SIMULATOR) 122 #if defined(USING_SIMULATOR)
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Disabling OS Thread creation\n", 360 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Disabling OS Thread creation\n",
359 timestamp()); 361 timestamp());
360 } 362 }
361 OSThread::DisableOSThreadCreation(); 363 OSThread::DisableOSThreadCreation();
362 } 364 }
363 365
364 if (FLAG_trace_shutdown) { 366 if (FLAG_trace_shutdown) {
365 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Deleting code observers\n", 367 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Deleting code observers\n",
366 timestamp()); 368 timestamp());
367 } 369 }
370 #ifndef PRODUCT
368 CodeObservers::DeleteAll(); 371 CodeObservers::DeleteAll();
372 #endif // !PRODUCT
369 if (FLAG_support_timeline) { 373 if (FLAG_support_timeline) {
370 if (FLAG_trace_shutdown) { 374 if (FLAG_trace_shutdown) {
371 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Shutting down timeline\n", 375 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Shutting down timeline\n",
372 timestamp()); 376 timestamp());
373 } 377 }
374 Timeline::Shutdown(); 378 Timeline::Shutdown();
375 } 379 }
376 if (FLAG_trace_shutdown) { 380 if (FLAG_trace_shutdown) {
377 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Done\n", timestamp()); 381 OS::PrintErr("[+%" Pd64 "ms] SHUTDOWN: Done\n", timestamp());
378 } 382 }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 return predefined_handles_->handles_.IsValidScopedHandle(address); 568 return predefined_handles_->handles_.IsValidScopedHandle(address);
565 } 569 }
566 570
567 571
568 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) { 572 bool Dart::IsReadOnlyApiHandle(Dart_Handle handle) {
569 ASSERT(predefined_handles_ != NULL); 573 ASSERT(predefined_handles_ != NULL);
570 return predefined_handles_->api_handles_.IsValidHandle(handle); 574 return predefined_handles_->api_handles_.IsValidHandle(handle);
571 } 575 }
572 576
573 } // namespace dart 577 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698