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 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 *target_reference_address()); | 759 *target_reference_address()); |
760 } else if (IsCodeTarget(rmode_)) { | 760 } else if (IsCodeTarget(rmode_)) { |
761 Code* code = Code::GetCodeFromTargetAddress(target_address()); | 761 Code* code = Code::GetCodeFromTargetAddress(target_address()); |
762 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), | 762 PrintF(out, " (%s) (%p)", Code::Kind2String(code->kind()), |
763 target_address()); | 763 target_address()); |
764 if (rmode_ == CODE_TARGET_WITH_ID) { | 764 if (rmode_ == CODE_TARGET_WITH_ID) { |
765 PrintF(" (id=%d)", static_cast<int>(data_)); | 765 PrintF(" (id=%d)", static_cast<int>(data_)); |
766 } | 766 } |
767 } else if (IsPosition(rmode_)) { | 767 } else if (IsPosition(rmode_)) { |
768 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); | 768 PrintF(out, " (%" V8_PTR_PREFIX "d)", data()); |
769 } else if (rmode_ == RelocInfo::RUNTIME_ENTRY && | 769 } else if ((rmode_ == RelocInfo::RUNTIME_ENTRY || |
| 770 rmode_ == RelocInfo::EXTERNAL_REFERENCE) && |
770 Isolate::Current()->deoptimizer_data() != NULL) { | 771 Isolate::Current()->deoptimizer_data() != NULL) { |
771 // Depotimization bailouts are stored as runtime entries. | 772 // Depotimization bailouts are stored as runtime entries. |
772 int id = Deoptimizer::GetDeoptimizationId( | 773 int id = Deoptimizer::GetDeoptimizationId( |
773 target_address(), Deoptimizer::EAGER); | 774 target_address(), Deoptimizer::EAGER); |
774 if (id != Deoptimizer::kNotDeoptimizationEntry) { | 775 if (id != Deoptimizer::kNotDeoptimizationEntry) { |
775 PrintF(out, " (deoptimization bailout %d)", id); | 776 PrintF(out, " (deoptimization bailout %d)", id); |
776 } | 777 } |
777 } | 778 } |
778 | 779 |
779 PrintF(out, "\n"); | 780 PrintF(out, "\n"); |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1558 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1559 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1559 state_.written_position = state_.current_position; | 1560 state_.written_position = state_.current_position; |
1560 written = true; | 1561 written = true; |
1561 } | 1562 } |
1562 | 1563 |
1563 // Return whether something was written. | 1564 // Return whether something was written. |
1564 return written; | 1565 return written; |
1565 } | 1566 } |
1566 | 1567 |
1567 } } // namespace v8::internal | 1568 } } // namespace v8::internal |
OLD | NEW |