| 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 // Defines decoder testers for decoder classes. | 7 // Defines decoder testers for decoder classes. |
| 8 | 8 |
| 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ | 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ |
| 10 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ | 10 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ |
| (...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 explicit InstructionBarrierTester(const NamedClassDecoder& decoder) | 2424 explicit InstructionBarrierTester(const NamedClassDecoder& decoder) |
| 2425 : BarrierInstTester(decoder) {} | 2425 : BarrierInstTester(decoder) {} |
| 2426 virtual bool ApplySanityChecks( | 2426 virtual bool ApplySanityChecks( |
| 2427 nacl_arm_dec::Instruction inst, | 2427 nacl_arm_dec::Instruction inst, |
| 2428 const NamedClassDecoder& decoder); | 2428 const NamedClassDecoder& decoder); |
| 2429 | 2429 |
| 2430 private: | 2430 private: |
| 2431 NACL_DISALLOW_COPY_AND_ASSIGN(InstructionBarrierTester); | 2431 NACL_DISALLOW_COPY_AND_ASSIGN(InstructionBarrierTester); |
| 2432 }; | 2432 }; |
| 2433 | 2433 |
| 2434 // Implements a decoder tester for a Roadblock. | 2434 // Implements a decoder tester for a PermanentlyUndefined. |
| 2435 class RoadblockTester : public CondDecoderTester { | 2435 class PermanentlyUndefinedTester : public CondDecoderTester { |
| 2436 public: | 2436 public: |
| 2437 explicit RoadblockTester(const NamedClassDecoder& decoder) | 2437 explicit PermanentlyUndefinedTester(const NamedClassDecoder& decoder) |
| 2438 : CondDecoderTester(decoder) {} | 2438 : CondDecoderTester(decoder) {} |
| 2439 virtual bool ApplySanityChecks( | 2439 virtual bool ApplySanityChecks( |
| 2440 nacl_arm_dec::Instruction inst, | 2440 nacl_arm_dec::Instruction inst, |
| 2441 const NamedClassDecoder& decoder); | 2441 const NamedClassDecoder& decoder); |
| 2442 | 2442 |
| 2443 private: | 2443 private: |
| 2444 NACL_DISALLOW_COPY_AND_ASSIGN(RoadblockTester); | 2444 NACL_DISALLOW_COPY_AND_ASSIGN(PermanentlyUndefinedTester); |
| 2445 }; | 2445 }; |
| 2446 | 2446 |
| 2447 } // namespace nacl_arm_test | 2447 } // namespace nacl_arm_test |
| 2448 | 2448 |
| 2449 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ | 2449 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ |
| OLD | NEW |