| 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 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2276 explicit InstructionBarrierTester(const NamedClassDecoder& decoder) | 2276 explicit InstructionBarrierTester(const NamedClassDecoder& decoder) |
| 2277 : BarrierInstTester(decoder) {} | 2277 : BarrierInstTester(decoder) {} |
| 2278 virtual bool ApplySanityChecks( | 2278 virtual bool ApplySanityChecks( |
| 2279 nacl_arm_dec::Instruction inst, | 2279 nacl_arm_dec::Instruction inst, |
| 2280 const NamedClassDecoder& decoder); | 2280 const NamedClassDecoder& decoder); |
| 2281 | 2281 |
| 2282 private: | 2282 private: |
| 2283 NACL_DISALLOW_COPY_AND_ASSIGN(InstructionBarrierTester); | 2283 NACL_DISALLOW_COPY_AND_ASSIGN(InstructionBarrierTester); |
| 2284 }; | 2284 }; |
| 2285 | 2285 |
| 2286 // Implements a decoder tester for a Roadblock. | 2286 // Implements a decoder tester for a PermanentlyUndefined. |
| 2287 class RoadblockTester : public CondDecoderTester { | 2287 class PermanentlyUndefinedTester : public CondDecoderTester { |
| 2288 public: | 2288 public: |
| 2289 explicit RoadblockTester(const NamedClassDecoder& decoder) | 2289 explicit PermanentlyUndefinedTester(const NamedClassDecoder& decoder) |
| 2290 : CondDecoderTester(decoder) {} | 2290 : CondDecoderTester(decoder) {} |
| 2291 virtual bool ApplySanityChecks( | 2291 virtual bool ApplySanityChecks( |
| 2292 nacl_arm_dec::Instruction inst, | 2292 nacl_arm_dec::Instruction inst, |
| 2293 const NamedClassDecoder& decoder); | 2293 const NamedClassDecoder& decoder); |
| 2294 | 2294 |
| 2295 private: | 2295 private: |
| 2296 NACL_DISALLOW_COPY_AND_ASSIGN(RoadblockTester); | 2296 NACL_DISALLOW_COPY_AND_ASSIGN(PermanentlyUndefinedTester); |
| 2297 }; | 2297 }; |
| 2298 | 2298 |
| 2299 } // namespace nacl_arm_test | 2299 } // namespace nacl_arm_test |
| 2300 | 2300 |
| 2301 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ | 2301 #endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_ARM_INST_CLASSES_TESTERS_H_ |
| OLD | NEW |