OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 UNREACHABLE(); | 458 UNREACHABLE(); |
459 return "number_of_modes"; | 459 return "number_of_modes"; |
460 } | 460 } |
461 return "unknown relocation type"; | 461 return "unknown relocation type"; |
462 } | 462 } |
463 | 463 |
464 | 464 |
465 void RelocInfo::Print() { | 465 void RelocInfo::Print() { |
466 PrintF("%p %s", pc_, RelocModeName(rmode_)); | 466 PrintF("%p %s", pc_, RelocModeName(rmode_)); |
467 if (IsComment(rmode_)) { | 467 if (IsComment(rmode_)) { |
468 PrintF(" (%s)", data_); | 468 PrintF(" (%s)", reinterpret_cast<char*>(data_)); |
469 } else if (rmode_ == EMBEDDED_OBJECT) { | 469 } else if (rmode_ == EMBEDDED_OBJECT) { |
470 PrintF(" ("); | 470 PrintF(" ("); |
471 target_object()->ShortPrint(); | 471 target_object()->ShortPrint(); |
472 PrintF(")"); | 472 PrintF(")"); |
473 } else if (rmode_ == EXTERNAL_REFERENCE) { | 473 } else if (rmode_ == EXTERNAL_REFERENCE) { |
474 ExternalReferenceEncoder ref_encoder; | 474 ExternalReferenceEncoder ref_encoder; |
475 PrintF(" (%s) (%p)", | 475 PrintF(" (%s) (%p)", |
476 ref_encoder.NameOfAddress(*target_reference_address()), | 476 ref_encoder.NameOfAddress(*target_reference_address()), |
477 *target_reference_address()); | 477 *target_reference_address()); |
478 } else if (IsCodeTarget(rmode_)) { | 478 } else if (IsCodeTarget(rmode_)) { |
479 Code* code = Code::GetCodeFromTargetAddress(target_address()); | 479 Code* code = Code::GetCodeFromTargetAddress(target_address()); |
480 PrintF(" (%s) (%p)", Code::Kind2String(code->kind()), target_address()); | 480 PrintF(" (%s) (%p)", Code::Kind2String(code->kind()), target_address()); |
481 } else if (IsPosition(rmode_)) { | 481 } else if (IsPosition(rmode_)) { |
482 PrintF(" (%d)", data()); | 482 PrintF(" (%" V8_PTR_PREFIX "d)", data()); |
483 } | 483 } |
484 | 484 |
485 PrintF("\n"); | 485 PrintF("\n"); |
486 } | 486 } |
487 #endif // ENABLE_DISASSEMBLER | 487 #endif // ENABLE_DISASSEMBLER |
488 | 488 |
489 | 489 |
490 #ifdef DEBUG | 490 #ifdef DEBUG |
491 void RelocInfo::Verify() { | 491 void RelocInfo::Verify() { |
492 switch (rmode_) { | 492 switch (rmode_) { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); | 792 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); |
793 } | 793 } |
794 | 794 |
795 | 795 |
796 ExternalReference ExternalReference::debug_step_in_fp_address() { | 796 ExternalReference ExternalReference::debug_step_in_fp_address() { |
797 return ExternalReference(Debug::step_in_fp_addr()); | 797 return ExternalReference(Debug::step_in_fp_addr()); |
798 } | 798 } |
799 #endif | 799 #endif |
800 | 800 |
801 } } // namespace v8::internal | 801 } } // namespace v8::internal |
OLD | NEW |