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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 rinfo_.pc_ = old_code_age_sequence; | 672 rinfo_.pc_ = old_code_age_sequence; |
673 return; | 673 return; |
674 } | 674 } |
675 } | 675 } |
676 done_ = true; | 676 done_ = true; |
677 } | 677 } |
678 | 678 |
679 | 679 |
680 RelocIterator::RelocIterator(Code* code, int mode_mask) { | 680 RelocIterator::RelocIterator(Code* code, int mode_mask) { |
681 rinfo_.host_ = code; | 681 rinfo_.host_ = code; |
682 rinfo_.pc_ = code->instruction_start(); | 682 rinfo_.pc_ = code->entry(); |
683 rinfo_.data_ = 0; | 683 rinfo_.data_ = 0; |
684 // Relocation info is read backwards. | 684 // Relocation info is read backwards. |
685 pos_ = code->relocation_start() + code->relocation_size(); | 685 pos_ = code->relocation_start() + code->relocation_size(); |
686 end_ = code->relocation_start(); | 686 end_ = code->relocation_start(); |
687 done_ = false; | 687 done_ = false; |
688 mode_mask_ = mode_mask; | 688 mode_mask_ = mode_mask; |
689 last_id_ = 0; | 689 last_id_ = 0; |
690 last_position_ = 0; | 690 last_position_ = 0; |
691 byte* sequence = code->FindCodeAgeSequence(); | 691 byte* sequence = code->FindCodeAgeSequence(); |
692 if (sequence != NULL && !Code::IsYoungSequence(sequence)) { | 692 if (sequence != NULL && !Code::IsYoungSequence(sequence)) { |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1676 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1676 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1677 state_.written_position = state_.current_position; | 1677 state_.written_position = state_.current_position; |
1678 written = true; | 1678 written = true; |
1679 } | 1679 } |
1680 | 1680 |
1681 // Return whether something was written. | 1681 // Return whether something was written. |
1682 return written; | 1682 return written; |
1683 } | 1683 } |
1684 | 1684 |
1685 } } // namespace v8::internal | 1685 } } // namespace v8::internal |
OLD | NEW |