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

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: Update per initial code review. Nexes removed. Created 8 years, 8 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_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..de759ae19d227c0fc206d468d7bdca7832d28f4f
--- /dev/null
+++ b/src/trusted/validator_mips/decode.h
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2009 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 2009, 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

Powered by Google App Engine
This is Rietveld 408576698