| 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 713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 724 void RecordComment(const char* msg); | 724 void RecordComment(const char* msg); |
| 725 | 725 |
| 726 void RecordPosition(int pos); | 726 void RecordPosition(int pos); |
| 727 void RecordStatementPosition(int pos); | 727 void RecordStatementPosition(int pos); |
| 728 void WriteRecordedPositions(); | 728 void WriteRecordedPositions(); |
| 729 | 729 |
| 730 // Writes a single word of data in the code stream. | 730 // Writes a single word of data in the code stream. |
| 731 // Used for inline tables, e.g., jump-tables. | 731 // Used for inline tables, e.g., jump-tables. |
| 732 void dd(uint32_t data, RelocInfo::Mode reloc_info); | 732 void dd(uint32_t data, RelocInfo::Mode reloc_info); |
| 733 | 733 |
| 734 // Writes the absolute address of a bound label at the given position in | |
| 735 // the generated code. That positions should have the relocation mode | |
| 736 // internal_reference! | |
| 737 void WriteInternalReference(int position, const Label& bound_label); | |
| 738 | |
| 739 int pc_offset() const { return pc_ - buffer_; } | 734 int pc_offset() const { return pc_ - buffer_; } |
| 740 int current_statement_position() const { return current_statement_position_; } | 735 int current_statement_position() const { return current_statement_position_; } |
| 741 int current_position() const { return current_position_; } | 736 int current_position() const { return current_position_; } |
| 742 | 737 |
| 743 // Check if there is less than kGap bytes available in the buffer. | 738 // Check if there is less than kGap bytes available in the buffer. |
| 744 // If this is the case, we need to grow the buffer before emitting | 739 // If this is the case, we need to grow the buffer before emitting |
| 745 // an instruction or relocation information. | 740 // an instruction or relocation information. |
| 746 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } | 741 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } |
| 747 | 742 |
| 748 // Get the number of bytes available in the buffer. | 743 // Get the number of bytes available in the buffer. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 857 private: | 852 private: |
| 858 Assembler* assembler_; | 853 Assembler* assembler_; |
| 859 #ifdef DEBUG | 854 #ifdef DEBUG |
| 860 int space_before_; | 855 int space_before_; |
| 861 #endif | 856 #endif |
| 862 }; | 857 }; |
| 863 | 858 |
| 864 } } // namespace v8::internal | 859 } } // namespace v8::internal |
| 865 | 860 |
| 866 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 861 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |