| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 // Record a comment relocation entry that can be used by a disassembler. | 515 // Record a comment relocation entry that can be used by a disassembler. |
| 516 // Use --debug_code to enable. | 516 // Use --debug_code to enable. |
| 517 void RecordComment(const char* msg); | 517 void RecordComment(const char* msg); |
| 518 | 518 |
| 519 void RecordPosition(int pos); | 519 void RecordPosition(int pos); |
| 520 void RecordStatementPosition(int pos); | 520 void RecordStatementPosition(int pos); |
| 521 void WriteRecordedPositions(); | 521 void WriteRecordedPositions(); |
| 522 | 522 |
| 523 int32_t pc_offset() const { return pc_ - buffer_; } | 523 int32_t pc_offset() const { return pc_ - buffer_; } |
| 524 int32_t current_position() const { return current_position_; } | 524 int32_t current_position() const { return current_position_; } |
| 525 int32_t current_statement_position() const { return current_position_; } | 525 int32_t current_statement_position() const { |
| 526 return current_statement_position_; |
| 527 } |
| 526 | 528 |
| 527 // Check if there is less than kGap bytes available in the buffer. | 529 // Check if there is less than kGap bytes available in the buffer. |
| 528 // If this is the case, we need to grow the buffer before emitting | 530 // If this is the case, we need to grow the buffer before emitting |
| 529 // an instruction or relocation information. | 531 // an instruction or relocation information. |
| 530 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } | 532 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } |
| 531 | 533 |
| 532 // Get the number of bytes available in the buffer. | 534 // Get the number of bytes available in the buffer. |
| 533 inline int available_space() const { return reloc_info_writer.pos() - pc_; } | 535 inline int available_space() const { return reloc_info_writer.pos() - pc_; } |
| 534 | 536 |
| 535 protected: | 537 protected: |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 void next(Label* L); | 656 void next(Label* L); |
| 655 | 657 |
| 656 friend class RegExpMacroAssemblerMIPS; | 658 friend class RegExpMacroAssemblerMIPS; |
| 657 friend class RelocInfo; | 659 friend class RelocInfo; |
| 658 }; | 660 }; |
| 659 | 661 |
| 660 } } // namespace v8::internal | 662 } } // namespace v8::internal |
| 661 | 663 |
| 662 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 664 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| 663 | 665 |
| OLD | NEW |