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 1602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 // time. | 1613 // time. |
1614 if (state_.current_statement_position != state_.written_statement_position) { | 1614 if (state_.current_statement_position != state_.written_statement_position) { |
1615 EnsureSpace ensure_space(assembler_); | 1615 EnsureSpace ensure_space(assembler_); |
1616 assembler_->RecordRelocInfo(RelocInfo::STATEMENT_POSITION, | 1616 assembler_->RecordRelocInfo(RelocInfo::STATEMENT_POSITION, |
1617 state_.current_statement_position); | 1617 state_.current_statement_position); |
1618 state_.written_statement_position = state_.current_statement_position; | 1618 state_.written_statement_position = state_.current_statement_position; |
1619 written = true; | 1619 written = true; |
1620 } | 1620 } |
1621 | 1621 |
1622 // Write the position if it is different from what was written last time and | 1622 // Write the position if it is different from what was written last time and |
1623 // also different from the written statement position. | 1623 // also different from the statement position that was just written. |
1624 if (state_.current_position != state_.written_position && | 1624 if (state_.current_position != state_.written_position && |
1625 state_.current_position != state_.written_statement_position) { | 1625 (state_.current_position != state_.written_statement_position || |
| 1626 !written)) { |
1626 EnsureSpace ensure_space(assembler_); | 1627 EnsureSpace ensure_space(assembler_); |
1627 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1628 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1628 state_.written_position = state_.current_position; | 1629 state_.written_position = state_.current_position; |
1629 written = true; | 1630 written = true; |
1630 } | 1631 } |
1631 | 1632 |
1632 // Return whether something was written. | 1633 // Return whether something was written. |
1633 return written; | 1634 return written; |
1634 } | 1635 } |
1635 | 1636 |
(...skipping 26 matching lines...) Expand all Loading... |
1662 RecordRelocInfo(RelocInfo::JS_RETURN); | 1663 RecordRelocInfo(RelocInfo::JS_RETURN); |
1663 } | 1664 } |
1664 | 1665 |
1665 | 1666 |
1666 void Assembler::RecordDebugBreakSlot() { | 1667 void Assembler::RecordDebugBreakSlot() { |
1667 positions_recorder()->WriteRecordedPositions(); | 1668 positions_recorder()->WriteRecordedPositions(); |
1668 EnsureSpace ensure_space(this); | 1669 EnsureSpace ensure_space(this); |
1669 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); | 1670 RecordRelocInfo(RelocInfo::DEBUG_BREAK_SLOT); |
1670 } | 1671 } |
1671 } } // namespace v8::internal | 1672 } } // namespace v8::internal |
OLD | NEW |