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

Unified Diff: src/trusted/validator_ragel/unreviewed/parse_instruction.rl

Issue 12716018: Remove defines by duplicating end_of_instruction_cleanup. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 9 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
« no previous file with comments | « src/trusted/validator_ragel/unreviewed/decoder_x86_64.rl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/trusted/validator_ragel/unreviewed/parse_instruction.rl
===================================================================
--- src/trusted/validator_ragel/unreviewed/parse_instruction.rl (revision 10997)
+++ src/trusted/validator_ragel/unreviewed/parse_instruction.rl (working copy)
@@ -900,40 +900,3 @@
action att_show_name_suffix_x { SET_ATT_INSTRUCTION_SUFFIX("x"); }
action att_show_name_suffix_y { SET_ATT_INSTRUCTION_SUFFIX("y"); }
}%%
-
-%%{
- machine decoder;
-
- action end_of_instruction_cleanup {
- process_instruction(instruction_begin, current_position + 1, &instruction,
- userdata);
- instruction_begin = current_position + 1;
- SET_DISP_TYPE(DISPNONE);
- SET_IMM_TYPE(IMMNONE);
- SET_IMM2_TYPE(IMMNONE);
- SET_REX_PREFIX(FALSE);
- SET_DATA16_PREFIX(FALSE);
- SET_LOCK_PREFIX(FALSE);
- SET_REPNZ_PREFIX(FALSE);
- SET_REPZ_PREFIX(FALSE);
- SET_BRANCH_NOT_TAKEN(FALSE);
- SET_BRANCH_TAKEN(FALSE);
- /* Top three bis of VEX2 are inverted: see AMD/Intel manual. */
- SET_VEX_PREFIX2(VEX_R | VEX_X | VEX_B);
- SET_VEX_PREFIX3(0x00);
- SET_ATT_INSTRUCTION_SUFFIX(NULL);
- CLEAR_SPURIOUS_REX_B();
- CLEAR_SPURIOUS_REX_X();
- CLEAR_SPURIOUS_REX_R();
- CLEAR_SPURIOUS_REX_W();
- }
-
- action report_fatal_error {
- process_error(current_position, userdata);
- result = FALSE;
- goto error_detected;
- }
-
- decoder = (one_instruction @end_of_instruction_cleanup)*
- $!report_fatal_error;
-}%%
« no previous file with comments | « src/trusted/validator_ragel/unreviewed/decoder_x86_64.rl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698