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/ncopcode_desc_verbose.c

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/ncopcode_desc_verbose.c
diff --git a/src/trusted/validator/x86/decoder/ncopcode_desc_verbose.c b/src/trusted/validator/x86/decoder/ncopcode_desc_verbose.c
deleted file mode 100644
index b71d6af2918f577f92c7d5f449e92074850f80d9..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/decoder/ncopcode_desc_verbose.c
+++ /dev/null
@@ -1,62 +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.
- */
-
-/* Descriptors to model instructions, opcodes, and instruction operands. */
-
-#include "native_client/src/trusted/validator/x86/decoder/ncopcode_desc.h"
-
-#include <assert.h>
-#include <string.h>
-
-#include "native_client/src/trusted/validator/x86/decoder/nc_decode_tables.h"
-
-#include "native_client/src/trusted/validator/x86/decoder/ncopcode_desc_inl.c"
-
-void NaClInstPrint(struct Gio* f,
- const NaClDecodeTables* tables,
- const NaClInst* inst) {
- { /* Print out instruction type less the NACLi_ prefix. */
- const char* name = NaClInstTypeString(inst->insttype);
- gprintf(f, "%s ", name + strlen("NACLi_"));
- }
- if (inst->flags) NaClIFlagsPrint(f, inst->flags);
- gprintf(f, "\n");
-
- /* If instruction type is invalid, and doesn't have
- * special translation purposes, then don't print additional
- * (ignored) information stored in the modeled instruction.
- */
- if ((NACLi_INVALID != inst->insttype) ||
- ((inst->flags & NACL_IFLAG(Opcode0F0F)))) {
- Bool is_first = TRUE;
- int i;
- gprintf(f, " %s", NaClMnemonicName(inst->name));
- for (i = 0; i < inst->num_operands; ++i) {
- const NaClOp* op = NaClGetInstOperandInline(tables, inst, i);
- if (NULL == op->format_string) continue;
- if (is_first) {
- is_first = FALSE;
- } else {
- gprintf(f, ",");
- }
- gprintf(f, " %s", op->format_string);
- }
- gprintf(f, "\n");
- /* Now print actual encoding of each operand. */
- for (i = 0; i < inst->num_operands; ++i) {
- gprintf(f, " ");
- NaClOpPrint(f, NaClGetInstOperand(tables, inst, i));
- }
- }
-}
-
-/* Dummy routine to allow unreferenced NaClGetInstNumberOperandsInline
- * inline.
- */
-uint8_t NaClNcopcodeDescVerboseDummyNaClGetInstNumberOperands(
- const NaClInst* inst) {
- return NaClGetInstNumberOperandsInline(inst);
-}
« no previous file with comments | « src/trusted/validator/x86/decoder/ncopcode_desc_inl.c ('k') | src/trusted/validator/x86/decoder/ncopcode_insts.enum » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698