| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. | 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 8 #if defined(TARGET_ARCH_IA32) | 8 #if defined(TARGET_ARCH_IA32) |
| 9 #include "platform/utils.h" | 9 #include "platform/utils.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // 'addr' is not an object, but probably a code address. | 519 // 'addr' is not an object, but probably a code address. |
| 520 const char* name_of_stub = StubCode::NameOfStub(addr); | 520 const char* name_of_stub = StubCode::NameOfStub(addr); |
| 521 if (name_of_stub != NULL) { | 521 if (name_of_stub != NULL) { |
| 522 Print(" [stub: "); | 522 Print(" [stub: "); |
| 523 Print(name_of_stub); | 523 Print(name_of_stub); |
| 524 Print("]"); | 524 Print("]"); |
| 525 } else { | 525 } else { |
| 526 // Print only if jumping to entry point. | 526 // Print only if jumping to entry point. |
| 527 const Code& code = Code::Handle(Code::LookupCode(addr)); | 527 const Code& code = Code::Handle(Code::LookupCode(addr)); |
| 528 if (!code.IsNull() && (code.EntryPoint() == addr)) { | 528 if (!code.IsNull() && (code.EntryPoint() == addr)) { |
| 529 const String& name = String::Handle(code.UserName()); | 529 const String& name = String::Handle(code.PrettyName()); |
| 530 const char* name_c = name.ToCString(); | 530 const char* name_c = name.ToCString(); |
| 531 Print(" ["); | 531 Print(" ["); |
| 532 Print(name_c); | 532 Print(name_c); |
| 533 Print("]"); | 533 Print("]"); |
| 534 } | 534 } |
| 535 } | 535 } |
| 536 } | 536 } |
| 537 } | 537 } |
| 538 | 538 |
| 539 | 539 |
| (...skipping 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 pc); | 1870 pc); |
| 1871 pc += instruction_length; | 1871 pc += instruction_length; |
| 1872 } | 1872 } |
| 1873 | 1873 |
| 1874 return; | 1874 return; |
| 1875 } | 1875 } |
| 1876 | 1876 |
| 1877 } // namespace dart | 1877 } // namespace dart |
| 1878 | 1878 |
| 1879 #endif // defined TARGET_ARCH_IA32 | 1879 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |