| 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 | 794 |
| 795 void RelocInfo::Print(Isolate* isolate, FILE* out) { | 795 void RelocInfo::Print(Isolate* isolate, FILE* out) { |
| 796 PrintF(out, "%p %s", pc_, RelocModeName(rmode_)); | 796 PrintF(out, "%p %s", pc_, RelocModeName(rmode_)); |
| 797 if (IsComment(rmode_)) { | 797 if (IsComment(rmode_)) { |
| 798 PrintF(out, " (%s)", reinterpret_cast<char*>(data_)); | 798 PrintF(out, " (%s)", reinterpret_cast<char*>(data_)); |
| 799 } else if (rmode_ == EMBEDDED_OBJECT) { | 799 } else if (rmode_ == EMBEDDED_OBJECT) { |
| 800 PrintF(out, " ("); | 800 PrintF(out, " ("); |
| 801 target_object()->ShortPrint(out); | 801 target_object()->ShortPrint(out); |
| 802 PrintF(out, ")"); | 802 PrintF(out, ")"); |
| 803 } else if (rmode_ == EXTERNAL_REFERENCE) { | 803 } else if (rmode_ == EXTERNAL_REFERENCE) { |
| 804 ExternalReferenceEncoder ref_encoder; | 804 ExternalReferenceEncoder ref_encoder(isolate); |
| 805 PrintF(out, " (%s) (%p)", | 805 PrintF(out, " (%s) (%p)", |
| 806 ref_encoder.NameOfAddress(*target_reference_address()), | 806 ref_encoder.NameOfAddress(*target_reference_address()), |
| 807 *target_reference_address()); | 807 *target_reference_address()); |
| 808 } else if (IsCodeTarget(rmode_)) { | 808 } else if (IsCodeTarget(rmode_)) { |
| 809 Code* code = Code::GetCodeFromTargetAddress(target_address()); | 809 Code* code = Code::GetCodeFromTargetAddress(target_address()); |
| 810 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), | 810 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), |
| 811 target_address()); | 811 target_address()); |
| 812 if (rmode_ == CODE_TARGET_WITH_ID) { | 812 if (rmode_ == CODE_TARGET_WITH_ID) { |
| 813 PrintF(" (id=%d)", static_cast<int>(data_)); | 813 PrintF(" (id=%d)", static_cast<int>(data_)); |
| 814 } | 814 } |
| (...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1681 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
| 1682 state_.written_position = state_.current_position; | 1682 state_.written_position = state_.current_position; |
| 1683 written = true; | 1683 written = true; |
| 1684 } | 1684 } |
| 1685 | 1685 |
| 1686 // Return whether something was written. | 1686 // Return whether something was written. |
| 1687 return written; | 1687 return written; |
| 1688 } | 1688 } |
| 1689 | 1689 |
| 1690 } } // namespace v8::internal | 1690 } } // namespace v8::internal |
| OLD | NEW |