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

Unified Diff: src/trusted/validator/x86/ncval_reg_sfi/nc_opcode_histogram.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/ncval_reg_sfi/nc_opcode_histogram.h
diff --git a/src/trusted/validator/x86/ncval_reg_sfi/nc_opcode_histogram.h b/src/trusted/validator/x86/ncval_reg_sfi/nc_opcode_histogram.h
deleted file mode 100644
index 48f18f255f94be670f75fda4b98170f995d7d932..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/ncval_reg_sfi/nc_opcode_histogram.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 2011 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.
- */
-
-/*
- * Collects histogram information as a validator function.
- *
- * Note: The following functions are used to define a validator function
- * for collecting this information. See header file ncvalidator_iter.h
- * for more information on how to register these functions as a validator
- * function.
- */
-
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_OPCODE_HISTOGRAPH_H__
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_OPCODE_HISTOGRAPH_H__
-
-#include "native_client/src/include/portability.h"
-#include "native_client/src/shared/utils/types.h"
-
-/* Defines a validator state. */
-struct NaClValidatorState;
-
-/* Defines an instruction iterator that processes a code segment. */
-struct NaClInstIter;
-
-/* Defines a data structure that holds data defining the opcode histogram
- * being collected. Holds a histogram of the (first) byte of the found
- * opcodes for each instruction.
- */
-typedef struct NaClOpcodeHistogram {
- uint32_t opcode_histogram[256];
-} NaClOpcodeHistogram;
-
-/* Command line flag controlling whether an opcode histogram is
- * collected while validating.
- */
-extern Bool NACL_FLAGS_opcode_histogram;
-
-/* Initializes opcode histogram data in the validator state. */
-void NaClOpcodeHistogramInitialize(struct NaClValidatorState* state);
-
-/* Validator function to record histgram value for current instruction. */
-void NaClOpcodeHistogramRecord(struct NaClValidatorState* state);
-
-/* Validator print function to print out collected histogram. */
-void NaClOpcodeHistogramPrintStats(struct NaClValidatorState* state);
-
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_OPCODE_HISTOGRAPH_H__ */

Powered by Google App Engine
This is Rietveld 408576698