| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 offset_ = offset; | 444 offset_ = offset; |
| 445 } | 445 } |
| 446 | 446 |
| 447 uint32_t offset() const { | 447 uint32_t offset() const { |
| 448 ASSERT(rm_.is(no_reg)); | 448 ASSERT(rm_.is(no_reg)); |
| 449 return offset_; | 449 return offset_; |
| 450 } | 450 } |
| 451 | 451 |
| 452 Register rn() const { return rn_; } | 452 Register rn() const { return rn_; } |
| 453 Register rm() const { return rm_; } | 453 Register rm() const { return rm_; } |
| 454 AddrMode am() const { return am_; } |
| 454 | 455 |
| 455 bool OffsetIsUint12Encodable() const { | 456 bool OffsetIsUint12Encodable() const { |
| 456 return offset_ >= 0 ? is_uint12(offset_) : is_uint12(-offset_); | 457 return offset_ >= 0 ? is_uint12(offset_) : is_uint12(-offset_); |
| 457 } | 458 } |
| 458 | 459 |
| 459 private: | 460 private: |
| 460 Register rn_; // base | 461 Register rn_; // base |
| 461 Register rm_; // register offset | 462 Register rm_; // register offset |
| 462 int32_t offset_; // valid if rm_ == no_reg | 463 int32_t offset_; // valid if rm_ == no_reg |
| 463 ShiftOp shift_op_; | 464 ShiftOp shift_op_; |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1392 public: | 1393 public: |
| 1393 explicit EnsureSpace(Assembler* assembler) { | 1394 explicit EnsureSpace(Assembler* assembler) { |
| 1394 assembler->CheckBuffer(); | 1395 assembler->CheckBuffer(); |
| 1395 } | 1396 } |
| 1396 }; | 1397 }; |
| 1397 | 1398 |
| 1398 | 1399 |
| 1399 } } // namespace v8::internal | 1400 } } // namespace v8::internal |
| 1400 | 1401 |
| 1401 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1402 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
| OLD | NEW |