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 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 intptr_t pc_delta); | 1100 intptr_t pc_delta); |
1101 | 1101 |
1102 // Writes a single byte or word of data in the code stream. Used for | 1102 // Writes a single byte or word of data in the code stream. Used for |
1103 // inline tables, e.g., jump-tables. | 1103 // inline tables, e.g., jump-tables. |
1104 void db(uint8_t data); | 1104 void db(uint8_t data); |
1105 void dd(uint32_t data); | 1105 void dd(uint32_t data); |
1106 void dq(uint64_t data); | 1106 void dq(uint64_t data); |
1107 void dp(uintptr_t data) { dq(data); } | 1107 void dp(uintptr_t data) { dq(data); } |
1108 void dd(Label* label); | 1108 void dd(Label* label); |
1109 | 1109 |
1110 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 1110 AssemblerPositionsRecorder* positions_recorder() { |
| 1111 return &positions_recorder_; |
| 1112 } |
1111 | 1113 |
1112 // Postpone the generation of the trampoline pool for the specified number of | 1114 // Postpone the generation of the trampoline pool for the specified number of |
1113 // instructions. | 1115 // instructions. |
1114 void BlockTrampolinePoolFor(int instructions); | 1116 void BlockTrampolinePoolFor(int instructions); |
1115 | 1117 |
1116 // Check if there is less than kGap bytes available in the buffer. | 1118 // Check if there is less than kGap bytes available in the buffer. |
1117 // If this is the case, we need to grow the buffer before emitting | 1119 // If this is the case, we need to grow the buffer before emitting |
1118 // an instruction or relocation information. | 1120 // an instruction or relocation information. |
1119 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } | 1121 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } |
1120 | 1122 |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1483 bool prev_instr_compact_branch_ = false; | 1485 bool prev_instr_compact_branch_ = false; |
1484 | 1486 |
1485 Trampoline trampoline_; | 1487 Trampoline trampoline_; |
1486 bool internal_trampoline_exception_; | 1488 bool internal_trampoline_exception_; |
1487 | 1489 |
1488 friend class RegExpMacroAssemblerMIPS; | 1490 friend class RegExpMacroAssemblerMIPS; |
1489 friend class RelocInfo; | 1491 friend class RelocInfo; |
1490 friend class CodePatcher; | 1492 friend class CodePatcher; |
1491 friend class BlockTrampolinePoolScope; | 1493 friend class BlockTrampolinePoolScope; |
1492 | 1494 |
1493 PositionsRecorder positions_recorder_; | 1495 AssemblerPositionsRecorder positions_recorder_; |
1494 friend class PositionsRecorder; | 1496 friend class AssemblerPositionsRecorder; |
1495 friend class EnsureSpace; | 1497 friend class EnsureSpace; |
1496 }; | 1498 }; |
1497 | 1499 |
1498 | 1500 |
1499 class EnsureSpace BASE_EMBEDDED { | 1501 class EnsureSpace BASE_EMBEDDED { |
1500 public: | 1502 public: |
1501 explicit EnsureSpace(Assembler* assembler) { | 1503 explicit EnsureSpace(Assembler* assembler) { |
1502 assembler->CheckBuffer(); | 1504 assembler->CheckBuffer(); |
1503 } | 1505 } |
1504 }; | 1506 }; |
1505 | 1507 |
1506 } // namespace internal | 1508 } // namespace internal |
1507 } // namespace v8 | 1509 } // namespace v8 |
1508 | 1510 |
1509 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1511 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |