Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: src/trusted/validator/x86/decoder/nc_inst_state.h

Issue 625923004: Delete old x86 validator. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebase master Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator/x86/decoder/nc_inst_state.h
diff --git a/src/trusted/validator/x86/decoder/nc_inst_state.h b/src/trusted/validator/x86/decoder/nc_inst_state.h
deleted file mode 100644
index b93ed46827549c69ff157e3bb967542fe478a593..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/decoder/nc_inst_state.h
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/*
- * Defines the user API to the state associated with matching instructions.
- */
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NC_INST_STATE_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NC_INST_STATE_H_
-
-#include "native_client/src/include/portability.h"
-#include "native_client/src/shared/utils/types.h"
-#include "native_client/src/trusted/validator/types_memory_model.h"
-
-EXTERN_C_BEGIN
-
-/* The meta model of an x86 opcode instruction. */
-struct NaClInst;
-
-/* The (user) representation of the parsed x86 instruction. */
-struct NaClExpVector;
-
-/* Defines the state used to match an instruction, while walking
- * instructions using the NaClInstIter.
- */
-typedef struct NaClInstState NaClInstState;
-
-struct NaClInst;
-
-/* Returns the address (i.e. program counter) associated with the currently
- * matched instruction, assuming the code segment has been mapped to vbase.
- * This value should not be used to influence validation because it would make
- * the validation algorithm position dependent.
- */
-NaClPcAddress NaClInstStatePrintableAddress(NaClInstState* state);
-
-/* Given an iterator state, return the corresponding opcode (instruction)
- * that matches the currently matched instruction of the corresponding
- * instruction iterator.
- */
-const struct NaClInst* NaClInstStateInst(NaClInstState* state);
-
-/* Given an iterator state, return the corresponding expression tree
- * denoting the currently matched instruction of the corresponding
- * instruction iterator.
- */
-struct NaClExpVector* NaClInstStateExpVector(NaClInstState* state);
-
-/* Returns true if the instruction defined by the given state could
- * be decoded into a valid instruction.
- */
-Bool NaClInstStateIsValid(NaClInstState* state);
-
-/* Given an iterator state, return the number of bytes matched
- * by the currently matched instruction of the corresponding
- * instruction iterator.
- */
-uint8_t NaClInstStateLength(NaClInstState* state);
-
-/* Given an iterator state, return the index-th byte of the
- * currently matched instruction. Index must be less than
- * the value of the corresponding call to NaClInstStateLength.
- */
-uint8_t NaClInstStateByte(NaClInstState* state, uint8_t index);
-
-/* Returns the operand size (measured in bytes) of the instruction state. */
-uint8_t NaClInstStateOperandSize(NaClInstState* state);
-
-/* Returns the address size (measured in bits) of the instruction state. */
-uint8_t NaClInstStateAddressSize(NaClInstState* state);
-
-EXTERN_C_END
-
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NC_INST_STATE_H_ */
« no previous file with comments | « src/trusted/validator/x86/decoder/nc_inst_iter_inl.c ('k') | src/trusted/validator/x86/decoder/nc_inst_state.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698