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

Unified Diff: src/trusted/validator/ncvalidate.h

Issue 10070010: validator_ragel: Link into TCB, use under env var (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: revert introducing extra empty line Created 8 years, 8 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/ncvalidate.h
diff --git a/src/trusted/validator/ncvalidate.h b/src/trusted/validator/ncvalidate.h
index 655334338a98c7e0bf790c82a1a54617fc69ff62..a46e6960814f49ed0fbd0036ab1a21303d1fc7bf 100644
--- a/src/trusted/validator/ncvalidate.h
+++ b/src/trusted/validator/ncvalidate.h
@@ -86,6 +86,22 @@ extern NaClValidationStatus NACL_SUBARCH_NAME(ApplyValidator,
const NaClCPUFeatures *cpu_features,
struct NaClValidationCache *cache);
+/* Applies the DFA-based validator as in the ApplyValidator case described
+ * above. The interface of this new validator must remain the same as of the
+ * ApplyValidator. Less arguments will be ignored as the new validator
+ * implements features, such as stubout mode.
+ */
+extern NaClValidationStatus NACL_SUBARCH_NAME(ApplyDfaValidator,
+ NACL_TARGET_ARCH,
+ NACL_TARGET_SUBARCH)(
+ uintptr_t guest_addr,
+ uint8_t *data,
+ size_t size,
+ int stubout_mode,
+ int readonly_text,
+ const NaClCPUFeatures *cpu_features,
+ struct NaClValidationCache *cache);
+
/* Applies the validator, as used in a command-line tool to report issues.
* Note: This is intentionally separated from ApplyValidator, since it need
* not be performance critical.
« no previous file with comments | « src/trusted/service_runtime/testdata/dfa_validator_hello.stderr ('k') | src/trusted/validator/x86/64/validator_x86_64.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698