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

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

Issue 197763011: Fix C++11 compilation error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | 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) 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 "platform/utils.h" 5 #include "platform/utils.h"
6 6
7 #include "vm/allocation.h" 7 #include "vm/allocation.h"
8 #include "vm/atomic.h" 8 #include "vm/atomic.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 case kReusedCode: 313 case kReusedCode:
314 return "Overwritten"; 314 return "Overwritten";
315 case kTagCode: 315 case kTagCode:
316 return "Tag"; 316 return "Tag";
317 } 317 }
318 UNREACHABLE(); 318 UNREACHABLE();
319 return NULL; 319 return NULL;
320 } 320 }
321 321
322 void DebugPrint() const { 322 void DebugPrint() const {
323 OS::Print("%s [%" Px ", %" Px ") %"Pd" %"Pd64"\n", 323 OS::Print("%s [%" Px ", %" Px ") %" Pd " %" Pd64 "\n",
324 KindToCString(kind_), 324 KindToCString(kind_),
325 start(), 325 start(),
326 end(), 326 end(),
327 creation_serial_, 327 creation_serial_,
328 compile_timestamp_); 328 compile_timestamp_);
329 } 329 }
330 330
331 void Tick(uword pc, bool exclusive, intptr_t serial) { 331 void Tick(uword pc, bool exclusive, intptr_t serial) {
332 // Assert that exclusive ticks are never passed a valid serial number. 332 // Assert that exclusive ticks are never passed a valid serial number.
333 ASSERT((exclusive && (serial == -1)) || (!exclusive && (serial != -1))); 333 ASSERT((exclusive && (serial == -1)) || (!exclusive && (serial != -1)));
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1285 stack_lower = 0; 1285 stack_lower = 0;
1286 stack_upper = 0; 1286 stack_upper = 0;
1287 } 1287 }
1288 ProfilerSampleStackWalker stackWalker(sample, stack_lower, stack_upper, 1288 ProfilerSampleStackWalker stackWalker(sample, stack_lower, stack_upper,
1289 state.pc, state.fp, state.sp); 1289 state.pc, state.fp, state.sp);
1290 stackWalker.walk(isolate->heap()); 1290 stackWalker.walk(isolate->heap());
1291 } 1291 }
1292 1292
1293 1293
1294 } // namespace dart 1294 } // 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