| Index: src/trusted/validator_ragel/unreviewed/validator.h
|
| ===================================================================
|
| --- src/trusted/validator_ragel/unreviewed/validator.h (revision 9996)
|
| +++ src/trusted/validator_ragel/unreviewed/validator.h (working copy)
|
| @@ -7,11 +7,15 @@
|
| #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_VALIDATOR_H_
|
| #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_VALIDATOR_H_
|
|
|
| -#include "native_client/src/trusted/validator_ragel/unreviewed/decoder.h"
|
| +#include "native_client/src/trusted/validator_ragel/decoder.h"
|
|
|
| EXTERN_C_BEGIN
|
|
|
| -enum validation_callback_info {
|
| +/*
|
| + * Bits and masks used to transfer information from validator to user_callback.
|
| + * See validator_internals.html for details.
|
| + */
|
| +enum ValidationCallbackInfo {
|
| /* Anyfield info mask: you can use to parse information about anyfields. */
|
| ANYFIELD_INFO_MASK = 0x000000ff,
|
| /* Immediate sizes (immediates always come at the end of instruction). */
|
| @@ -99,7 +103,8 @@
|
| * When callback is called for invalid jump tagret,
|
| * instruction_start = instruction_end = jump target
|
| *
|
| - * Minimal user_callback looks like this:
|
| + * Minimal user_callback for CALL_USER_CALLBACK_ON_EACH_INSTRUCTION case looks
|
| + * like this:
|
| * ...
|
| * if (validation_info & (VALIDATION_ERRORS_MASK | BAD_JUMP_TARGET))
|
| * return FALSE;
|
|
|