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

Unified Diff: src/trusted/validator_mips/decode.h

Issue 9979025: [MIPS] Adding validator for MIPS architecture. (Closed) Base URL: http://src.chromium.org/native_client/trunk/src/native_client/
Patch Set: Rebased patch, conflict resolved. Created 8 years, 7 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
« no previous file with comments | « src/trusted/validator_mips/build.scons ('k') | src/trusted/validator_mips/dgen/dgen_core.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_mips/decode.h
diff --git a/src/trusted/validator_mips/decode.h b/src/trusted/validator_mips/decode.h
new file mode 100644
index 0000000000000000000000000000000000000000..1ba2def096288ac18168535a9cebed6b2964c98f
--- /dev/null
+++ b/src/trusted/validator_mips/decode.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright 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.
+ * Copyright 2012, Google Inc.
+ */
+
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_DECODE_H
+#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_DECODE_H
+
+#include "native_client/src/trusted/validator_mips/model.h"
+#include "native_client/src/trusted/validator_mips/inst_classes.h"
+
+namespace nacl_mips_dec {
+
+struct DecoderState;
+
+/*
+ * Creates a new DecodeState instance that can be used to make calls to
+ * decode. The caller owns the result and should delete it when appropriate,
+ * by using delete_state below.
+ */
+const DecoderState *init_decode();
+
+/*
+ * Frees any resources previously allocated by a call to init_decode.
+ */
+void delete_state(const DecoderState *);
+
+/*
+ * Chooses a ClassDecoder that can answer questions about the given Instruction.
+ */
+const ClassDecoder &decode(const Instruction, const DecoderState *);
+
+
+} // namespace
+
+#endif // NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_MIPS_DECODE_H
« no previous file with comments | « src/trusted/validator_mips/build.scons ('k') | src/trusted/validator_mips/dgen/dgen_core.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698