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

Unified Diff: src/trusted/validator/x86/decoder/ncopcode_desc_verbose.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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator/x86/decoder/ncopcode_desc_verbose.c
===================================================================
--- src/trusted/validator/x86/decoder/ncopcode_desc_verbose.c (revision 6734)
+++ src/trusted/validator/x86/decoder/ncopcode_desc_verbose.c (working copy)
@@ -11,6 +11,7 @@
#include <assert.h>
#include <string.h>
+#include "native_client/src/trusted/validator/x86/decoder/ncopcode_desc_inl.h"
#include "native_client/src/trusted/validator/x86/decoder/nc_decode_tables.h"
void NaClInstPrint(struct Gio* f,
@@ -33,7 +34,7 @@
int i;
gprintf(f, " %s", NaClMnemonicName(inst->name));
for (i = 0; i < inst->num_operands; ++i) {
- const NaClOp* op = NaClGetInstOperand(tables, inst, i);
+ const NaClOp* op = NaClGetInstOperandInline(tables, inst, i);
if (NULL == op->format_string) continue;
if (is_first) {
is_first = FALSE;
@@ -50,3 +51,11 @@
}
}
}
+
+/* Dummy routine to allow unreferenced NaClGetInstNumberOperandsInline
+ * inline.
+ */
+uint8_t NaClNcopcodeDescVerboseDummyNaClGetInstNumberOperands(
+ const NaClInst* inst) {
+ return NaClGetInstNumberOperandsInline(inst);
+}

Powered by Google App Engine
This is Rietveld 408576698