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

Side by Side Diff: src/trusted/validator/x86/decoder/ncop_exps_inl.c

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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 /*
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
4 * found in the LICENSE file.
5 */
6
7 /*
8 * ncop_exps_inl.c - Holds inline routines for commonly used (simple)
9 * functions in ncop_exps.h. Used to speed up code. Inlined routines
10 * correspond to the following functions in ncop_exps.h, but with an
11 * 'Inline' suffix:
12 *
13 * NaClGetExpRegister
14 */
15 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NCOP_EXPS_INL_H_
16 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NCOP_EXPS_INL_H_
17
18 #include <assert.h>
19 #include "native_client/src/trusted/validator/x86/decoder/ncop_exps.h"
20
21 static INLINE NaClOpKind NaClGetExpRegisterInline(NaClExp* node) {
22 assert(node->kind == ExprRegister);
23 return (NaClOpKind) node->value;
24 }
25
26 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_DECODER_NCOP_EXPS_INL_H_ */
OLDNEW
« no previous file with comments | « src/trusted/validator/x86/decoder/ncop_exps.c ('k') | src/trusted/validator/x86/decoder/ncopcode_desc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698