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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 1585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1596 // trigger a check. | 1596 // trigger a check. |
1597 next_buffer_check_ = no_const_pool_before_; | 1597 next_buffer_check_ = no_const_pool_before_; |
1598 } | 1598 } |
1599 } | 1599 } |
1600 | 1600 |
1601 bool is_const_pool_blocked() const { | 1601 bool is_const_pool_blocked() const { |
1602 return (const_pool_blocked_nesting_ > 0) || | 1602 return (const_pool_blocked_nesting_ > 0) || |
1603 (pc_offset() < no_const_pool_before_); | 1603 (pc_offset() < no_const_pool_before_); |
1604 } | 1604 } |
1605 | 1605 |
| 1606 bool VfpRegisterIsAvailable(DwVfpRegister reg) { |
| 1607 DCHECK(reg.is_valid()); |
| 1608 return IsEnabled(VFP32DREGS) || |
| 1609 (reg.reg_code < LowDwVfpRegister::kMaxNumLowRegisters); |
| 1610 } |
| 1611 |
1606 private: | 1612 private: |
1607 int next_buffer_check_; // pc offset of next buffer check | 1613 int next_buffer_check_; // pc offset of next buffer check |
1608 | 1614 |
1609 // Code generation | 1615 // Code generation |
1610 // The relocation writer's position is at least kGap bytes below the end of | 1616 // The relocation writer's position is at least kGap bytes below the end of |
1611 // the generated instructions. This is so that multi-instruction sequences do | 1617 // the generated instructions. This is so that multi-instruction sequences do |
1612 // not have to check for overflow. The same is true for writes of large | 1618 // not have to check for overflow. The same is true for writes of large |
1613 // relocation info entries. | 1619 // relocation info entries. |
1614 static const int kGap = 32; | 1620 static const int kGap = 32; |
1615 | 1621 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 explicit EnsureSpace(Assembler* assembler) { | 1708 explicit EnsureSpace(Assembler* assembler) { |
1703 assembler->CheckBuffer(); | 1709 assembler->CheckBuffer(); |
1704 } | 1710 } |
1705 }; | 1711 }; |
1706 | 1712 |
1707 | 1713 |
1708 } // namespace internal | 1714 } // namespace internal |
1709 } // namespace v8 | 1715 } // namespace v8 |
1710 | 1716 |
1711 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1717 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |