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

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: Minor update to the patch set 1 Created 8 years, 9 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
===================================================================
--- src/trusted/validator_mips/decode.h (revision 0)
+++ src/trusted/validator_mips/decode.h (revision 0)
@@ -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
Property changes on: src/trusted/validator_mips/decode.h
___________________________________________________________________
Added: svn:executable
+ *

Powered by Google App Engine
This is Rietveld 408576698