| 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 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 // than regular branch instructions. | 1496 // than regular branch instructions. |
| 1497 bool trampoline_emitted_; | 1497 bool trampoline_emitted_; |
| 1498 static const int kTrampolineSlotsSize = 2 * kInstrSize; | 1498 static const int kTrampolineSlotsSize = 2 * kInstrSize; |
| 1499 static const int kMaxBranchOffset = (1 << (18 - 1)) - 1; | 1499 static const int kMaxBranchOffset = (1 << (18 - 1)) - 1; |
| 1500 static const int kMaxCompactBranchOffset = (1 << (28 - 1)) - 1; | 1500 static const int kMaxCompactBranchOffset = (1 << (28 - 1)) - 1; |
| 1501 static const int kInvalidSlotPos = -1; | 1501 static const int kInvalidSlotPos = -1; |
| 1502 | 1502 |
| 1503 // Internal reference positions, required for unbounded internal reference | 1503 // Internal reference positions, required for unbounded internal reference |
| 1504 // labels. | 1504 // labels. |
| 1505 std::set<int64_t> internal_reference_positions_; | 1505 std::set<int64_t> internal_reference_positions_; |
| 1506 bool is_internal_reference(Label* L) { |
| 1507 return internal_reference_positions_.find(L->pos()) != |
| 1508 internal_reference_positions_.end(); |
| 1509 } |
| 1506 | 1510 |
| 1507 void EmittedCompactBranchInstruction() { prev_instr_compact_branch_ = true; } | 1511 void EmittedCompactBranchInstruction() { prev_instr_compact_branch_ = true; } |
| 1508 void ClearCompactBranchState() { prev_instr_compact_branch_ = false; } | 1512 void ClearCompactBranchState() { prev_instr_compact_branch_ = false; } |
| 1509 bool prev_instr_compact_branch_ = false; | 1513 bool prev_instr_compact_branch_ = false; |
| 1510 | 1514 |
| 1511 Trampoline trampoline_; | 1515 Trampoline trampoline_; |
| 1512 bool internal_trampoline_exception_; | 1516 bool internal_trampoline_exception_; |
| 1513 | 1517 |
| 1514 friend class RegExpMacroAssemblerMIPS; | 1518 friend class RegExpMacroAssemblerMIPS; |
| 1515 friend class RelocInfo; | 1519 friend class RelocInfo; |
| 1516 friend class CodePatcher; | 1520 friend class CodePatcher; |
| 1517 friend class BlockTrampolinePoolScope; | 1521 friend class BlockTrampolinePoolScope; |
| 1518 friend class EnsureSpace; | 1522 friend class EnsureSpace; |
| 1519 }; | 1523 }; |
| 1520 | 1524 |
| 1521 | 1525 |
| 1522 class EnsureSpace BASE_EMBEDDED { | 1526 class EnsureSpace BASE_EMBEDDED { |
| 1523 public: | 1527 public: |
| 1524 explicit EnsureSpace(Assembler* assembler) { | 1528 explicit EnsureSpace(Assembler* assembler) { |
| 1525 assembler->CheckBuffer(); | 1529 assembler->CheckBuffer(); |
| 1526 } | 1530 } |
| 1527 }; | 1531 }; |
| 1528 | 1532 |
| 1529 } // namespace internal | 1533 } // namespace internal |
| 1530 } // namespace v8 | 1534 } // namespace v8 |
| 1531 | 1535 |
| 1532 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1536 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
| OLD | NEW |