| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // *more* bits to be clear to set Z. This is fine. | 389 // *more* bits to be clear to set Z. This is fine. |
| 390 virtual bool sets_Z_if_bits_clear(Instruction i, | 390 virtual bool sets_Z_if_bits_clear(Instruction i, |
| 391 Register r, | 391 Register r, |
| 392 uint32_t mask) const { | 392 uint32_t mask) const { |
| 393 UNREFERENCED_PARAMETER(i); | 393 UNREFERENCED_PARAMETER(i); |
| 394 UNREFERENCED_PARAMETER(r); | 394 UNREFERENCED_PARAMETER(r); |
| 395 UNREFERENCED_PARAMETER(mask); | 395 UNREFERENCED_PARAMETER(mask); |
| 396 return false; | 396 return false; |
| 397 } | 397 } |
| 398 | 398 |
| 399 // Returns a c-string containing the name of the class. Used for | |
| 400 // testing only. | |
| 401 virtual const char* name() const; | |
| 402 | |
| 403 // Many instructions define control bits in bits 20-24. The useful bits | 399 // Many instructions define control bits in bits 20-24. The useful bits |
| 404 // are defined here. | 400 // are defined here. |
| 405 | 401 |
| 406 // True if U (updates flags register) flag is defined. | 402 // True if U (updates flags register) flag is defined. |
| 407 inline bool UpdatesFlagsRegister(const Instruction& i) const { | 403 inline bool UpdatesFlagsRegister(const Instruction& i) const { |
| 408 return i.bit(20); | 404 return i.bit(20); |
| 409 } | 405 } |
| 410 | 406 |
| 411 // True if W (does write) flag is defined. | 407 // True if W (does write) flag is defined. |
| 412 inline bool WritesFlag(const Instruction& i) const { | 408 inline bool WritesFlag(const Instruction& i) const { |
| (...skipping 1271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1684 } | 1680 } |
| 1685 virtual int32_t branch_target_offset(Instruction i) const; | 1681 virtual int32_t branch_target_offset(Instruction i) const; |
| 1686 | 1682 |
| 1687 private: | 1683 private: |
| 1688 NACL_DISALLOW_COPY_AND_ASSIGN(Branch); | 1684 NACL_DISALLOW_COPY_AND_ASSIGN(Branch); |
| 1689 }; | 1685 }; |
| 1690 | 1686 |
| 1691 } // namespace | 1687 } // namespace |
| 1692 | 1688 |
| 1693 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ | 1689 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_V2_INST_CLASSES_H_ |
| OLD | NEW |