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

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

Issue 2573483004: Fixed build issue introduced with last commit. (Closed)
Patch Set: Updated format string to reflect actual type. Created 4 years 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 | no next file » | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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/thread.h" 5 #include "vm/thread.h"
6 6
7 #include "vm/compiler_stats.h" 7 #include "vm/compiler_stats.h"
8 #include "vm/dart_api_state.h" 8 #include "vm/dart_api_state.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_ALLOCATION) 204 REUSABLE_HANDLE_LIST(REUSABLE_HANDLE_ALLOCATION)
205 #undef REUSABLE_HANDLE_ALLOCATION 205 #undef REUSABLE_HANDLE_ALLOCATION
206 } 206 }
207 207
208 208
209 #ifndef PRODUCT 209 #ifndef PRODUCT
210 // Collect information about each individual zone associated with this thread. 210 // Collect information about each individual zone associated with this thread.
211 void Thread::PrintJSON(JSONStream* stream) const { 211 void Thread::PrintJSON(JSONStream* stream) const {
212 JSONObject jsobj(stream); 212 JSONObject jsobj(stream);
213 jsobj.AddProperty("type", "_Thread"); 213 jsobj.AddProperty("type", "_Thread");
214 jsobj.AddPropertyF("id", "threads/%" Pd64 "", 214 jsobj.AddPropertyF("id", "threads/%" Pd "",
215 ThreadIdToIntPtr(os_thread()->trace_id())); 215 OSThread::ThreadIdToIntPtr(os_thread()->trace_id()));
216 Zone* zone = zone_; 216 Zone* zone = zone_;
217 { 217 {
218 JSONArray zone_info_array(&jsobj, "zones"); 218 JSONArray zone_info_array(&jsobj, "zones");
219 zone = zone_; 219 zone = zone_;
220 while (zone != NULL) { 220 while (zone != NULL) {
221 zone_info_array.AddValue(zone); 221 zone_info_array.AddValue(zone);
222 zone = zone->previous(); 222 zone = zone->previous();
223 } 223 }
224 } 224 }
225 } 225 }
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 794
795 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() { 795 DisableThreadInterruptsScope::~DisableThreadInterruptsScope() {
796 if (thread() != NULL) { 796 if (thread() != NULL) {
797 OSThread* os_thread = thread()->os_thread(); 797 OSThread* os_thread = thread()->os_thread();
798 ASSERT(os_thread != NULL); 798 ASSERT(os_thread != NULL);
799 os_thread->EnableThreadInterrupts(); 799 os_thread->EnableThreadInterrupts();
800 } 800 }
801 } 801 }
802 802
803 } // namespace dart 803 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698