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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 public: | 1367 public: |
1367 explicit EnsureSpace(Assembler* assembler) { | 1368 explicit EnsureSpace(Assembler* assembler) { |
1368 assembler->CheckBuffer(); | 1369 assembler->CheckBuffer(); |
1369 } | 1370 } |
1370 }; | 1371 }; |
1371 | 1372 |
1372 | 1373 |
1373 } } // namespace v8::internal | 1374 } } // namespace v8::internal |
1374 | 1375 |
1375 #endif // V8_ARM_ASSEMBLER_ARM_H_ | 1376 #endif // V8_ARM_ASSEMBLER_ARM_H_ |
OLD | NEW |