| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |