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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
854 os << static_cast<const void*>(pc_) << " " << RelocModeName(rmode_); | 854 os << static_cast<const void*>(pc_) << " " << RelocModeName(rmode_); |
855 if (IsComment(rmode_)) { | 855 if (IsComment(rmode_)) { |
856 os << " (" << reinterpret_cast<char*>(data_) << ")"; | 856 os << " (" << reinterpret_cast<char*>(data_) << ")"; |
857 } else if (rmode_ == DEOPT_REASON) { | 857 } else if (rmode_ == DEOPT_REASON) { |
858 os << " (" << Deoptimizer::GetDeoptReason( | 858 os << " (" << Deoptimizer::GetDeoptReason( |
859 static_cast<Deoptimizer::DeoptReason>(data_)) << ")"; | 859 static_cast<Deoptimizer::DeoptReason>(data_)) << ")"; |
860 } else if (rmode_ == EMBEDDED_OBJECT) { | 860 } else if (rmode_ == EMBEDDED_OBJECT) { |
861 os << " (" << Brief(target_object()) << ")"; | 861 os << " (" << Brief(target_object()) << ")"; |
862 } else if (rmode_ == EXTERNAL_REFERENCE) { | 862 } else if (rmode_ == EXTERNAL_REFERENCE) { |
863 ExternalReferenceEncoder ref_encoder(isolate); | 863 ExternalReferenceEncoder ref_encoder(isolate); |
864 os << " (" << ref_encoder.NameOfAddress(target_external_reference()) | 864 os << " (" |
| 865 << ref_encoder.NameOfAddress(isolate, target_external_reference()) |
865 << ") (" << static_cast<const void*>(target_external_reference()) | 866 << ") (" << static_cast<const void*>(target_external_reference()) |
866 << ")"; | 867 << ")"; |
867 } else if (IsCodeTarget(rmode_)) { | 868 } else if (IsCodeTarget(rmode_)) { |
868 Code* code = Code::GetCodeFromTargetAddress(target_address()); | 869 Code* code = Code::GetCodeFromTargetAddress(target_address()); |
869 os << " (" << Code::Kind2String(code->kind()) << ") (" | 870 os << " (" << Code::Kind2String(code->kind()) << ") (" |
870 << static_cast<const void*>(target_address()) << ")"; | 871 << static_cast<const void*>(target_address()) << ")"; |
871 if (rmode_ == CODE_TARGET_WITH_ID) { | 872 if (rmode_ == CODE_TARGET_WITH_ID) { |
872 os << " (id=" << static_cast<int>(data_) << ")"; | 873 os << " (id=" << static_cast<int>(data_) << ")"; |
873 } | 874 } |
874 } else if (IsPosition(rmode_)) { | 875 } else if (IsPosition(rmode_)) { |
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 RecordRelocInfo(RelocInfo::JS_RETURN); | 1683 RecordRelocInfo(RelocInfo::JS_RETURN); |
1683 } | 1684 } |
1684 | 1685 |
1685 | 1686 |
1686 void Assembler::RecordDebugBreakSlot() { | 1687 void Assembler::RecordDebugBreakSlot() { |
1687 positions_recorder()->WriteRecordedPositions(); | 1688 positions_recorder()->WriteRecordedPositions(); |
1688 EnsureSpace ensure_space(this); | 1689 EnsureSpace ensure_space(this); |
1689 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); | 1690 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); |
1690 } | 1691 } |
1691 } } // namespace v8::internal | 1692 } } // namespace v8::internal |
OLD | NEW |