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

Unified Diff: src/trusted/validator/x86/decoder/ncop_exps_inl.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
« no previous file with comments | « src/trusted/validator/x86/decoder/ncop_exps.c ('k') | src/trusted/validator/x86/decoder/ncopcode_desc.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator/x86/decoder/ncop_exps_inl.c
diff --git a/src/trusted/validator/x86/decoder/ncop_exps_inl.c b/src/trusted/validator/x86/decoder/ncop_exps_inl.c
deleted file mode 100644
index 977efab01cd6ca818950b0b76e607f12217df49b..0000000000000000000000000000000000000000
--- a/src/trusted/validator/x86/decoder/ncop_exps_inl.c
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- * Copyright (c) 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.
- */
-
-/*
- * ncop_exps_inl.c - Holds inline routines for commonly used (simple)
- * functions in ncop_exps.h. Used to speed up code. Inlined routines
- * correspond to the following functions in ncop_exps.h, but with an
- * 'Inline' suffix:
- *
- * NaClGetExpRegister
- */
-#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NCOP_EXPS_INL_H_
-#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NCOP_EXPS_INL_H_
-
-#include <assert.h>
-#include "native_client/src/trusted/validator/x86/decoder/ncop_exps.h"
-
-static INLINE NaClOpKind NaClGetExpRegisterInline(NaClExp* node) {
- assert(node->kind == ExprRegister);
- return (NaClOpKind) node->value;
-}
-
-/* Return the sign extended integer in the given expr node. */
-static INLINE int64_t NaClGetExprSignedValue(NaClExp* node) {
- if (node->flags & NACL_EFLAG(ExprSize8)) {
- return (int8_t) node->value;
- } else if (node->flags & NACL_EFLAG(ExprSize16)) {
- return (int16_t) node->value;
- } else if (node->flags & NACL_EFLAG(ExprSize32)) {
- return (int32_t) node->value;
- } else {
- return (int64_t) node->value;
- }
-}
-
-/* Return the zero padded integer in the given expr node. */
-static INLINE uint64_t NaClGetExprUnsignedValue(NaClExp* node) {
- if (node->flags & NACL_EFLAG(ExprSize8)) {
- return (uint8_t) node->value;
- } else if (node->flags & NACL_EFLAG(ExprSize16)) {
- return (uint16_t) node->value;
- } else if (node->flags & NACL_EFLAG(ExprSize32)) {
- return (uint32_t) node->value;
- } else {
- return (uint64_t) node->value;
- }
-}
-
-#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NCOP_EXPS_INL_H_ */
« no previous file with comments | « src/trusted/validator/x86/decoder/ncop_exps.c ('k') | src/trusted/validator/x86/decoder/ncopcode_desc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698