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

Side by Side Diff: src/trusted/validator/x86/x86_insts.h

Issue 7980021: Speed up x86-64 validator by inlining heavily called routines. Speeds up (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 /* 7 /*
8 * decoding.h - Holds common utilties for decoding x86 instructions. 8 * x86_insts.h - Holds common utilties for decoding x86 instructions.
9 */ 9 */
10 10
11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ 11 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__
12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ 12 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__
13 13
14 #include "native_client/src/include/portability.h" 14 #include "native_client/src/include/portability.h"
15 15
16 /* Readability macros for bitset testing. */ 16 /* Readability macros for bitset testing. */
17 #define NaClHasBit(set, bit) ((set) & (bit)) 17 #define NaClHasBit(set, bit) ((set) & (bit))
18 #define NaClExcludesBit(set, bit) (~(set) & bit) 18 #define NaClExcludesBit(set, bit) (~(set) & bit)
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 173
174 /* Accessors for each of the rex bits. */ 174 /* Accessors for each of the rex bits. */
175 uint8_t NaClRexW(uint8_t prefix); 175 uint8_t NaClRexW(uint8_t prefix);
176 uint8_t NaClRexR(uint8_t prefix); 176 uint8_t NaClRexR(uint8_t prefix);
177 uint8_t NaClRexX(uint8_t prefix); 177 uint8_t NaClRexX(uint8_t prefix);
178 uint8_t NaClRexB(uint8_t prefix); 178 uint8_t NaClRexB(uint8_t prefix);
179 179
180 EXTERN_C_END 180 EXTERN_C_END
181 181
182 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ */ 182 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_X86_INSTS_H__ */
OLDNEW
« no previous file with comments | « src/trusted/validator/x86/ncval_reg_sfi/ncvalidator_registry.c ('k') | src/trusted/validator/x86/x86_insts.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698