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

Issue 49183002: Regular instructions golden file test.

Created:
7 years, 1 month ago by khim
Modified:
6 years, 10 months ago
Reviewers:
bsy, bsy_cr, halyavin
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Regular instructions golden file test. compress_regular_instructions.py traverses the tree in a fashion similar to other exhaustive tests and then "compresses" the list of instructions found accepting by the validator.

Patch Set 1 : #

Total comments: 38

Patch Set 2 : #

Total comments: 32

Patch Set 3 : #

Total comments: 44

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 44

Patch Set 6 : #

Total comments: 14

Patch Set 7 : #

Total comments: 26

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Patch Set 10 : #

Total comments: 42

Patch Set 11 : #

Total comments: 6

Patch Set 12 : #

Total comments: 56

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Total comments: 8

Patch Set 16 : #

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4406 lines, -6 lines) Patch
M buildbot/buildbot_standard.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M src/trusted/validator_ragel/build.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 6 chunks +30 lines, -6 lines 0 comments Download
A src/trusted/validator_ragel/compress_regular_instructions.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1733 lines, -0 lines 0 comments Download
A src/trusted/validator_ragel/testdata/32bit_regular.golden View 1 1 chunk +1110 lines, -0 lines 0 comments Download
A src/trusted/validator_ragel/testdata/64bit_regular.golden View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1529 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (0 generated)
khimg
PTAL 32bit version works, but 64bit version produces file too large to fit in rietvield ...
7 years, 1 month ago (2013-10-28 17:12:31 UTC) #1
bsy
preliminary feedback. i am not familiar with this part of the code base, and am ...
7 years, 1 month ago (2013-10-31 22:51:53 UTC) #2
khimg
Answered questions in comments, will fix code tomorrow https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode102 src/trusted/validator_ragel/compress_regular_instructions.py:102: # ...
7 years, 1 month ago (2013-10-31 23:08:49 UTC) #3
halyavin
https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode14 src/trusted/validator_ragel/compress_regular_instructions.py:14: Instruction: 00 00 %al,(%rax) add %al,(%rax) or may be ...
7 years, 1 month ago (2013-11-01 08:17:49 UTC) #4
halyavin
https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode214 src/trusted/validator_ragel/compress_regular_instructions.py:214: # regex = '.*?[0-9a-fA-F]([0-7]) \\w* (%e(?:[abcd]x|[sb]p|[sd]i)).*()' ".*?" I don't ...
7 years, 1 month ago (2013-11-01 08:34:28 UTC) #5
halyavin
https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode352 src/trusted/validator_ragel/compress_regular_instructions.py:352: True - instruction uses rm as source, reg as ...
7 years, 1 month ago (2013-11-01 14:08:57 UTC) #6
khim
https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode14 src/trusted/validator_ragel/compress_regular_instructions.py:14: Instruction: 00 00 %al,(%rax) On 2013/11/01 08:17:49, halyavin wrote: ...
7 years, 1 month ago (2013-11-05 15:04:36 UTC) #7
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/330001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/330001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode11 src/trusted/validator_ragel/compress_regular_instructions.py:11: The following compression rules are present: Rules are applied ...
7 years, 1 month ago (2013-11-06 12:11:51 UTC) #8
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/330001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/330001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode188 src/trusted/validator_ragel/compress_regular_instructions.py:188: # Note that iteration order is aligned with CCEPTABLE_X86_64_INPUTS ...
7 years, 1 month ago (2013-11-06 14:23:23 UTC) #9
khim
https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/80001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode352 src/trusted/validator_ragel/compress_regular_instructions.py:352: True - instruction uses rm as source, reg as ...
7 years, 1 month ago (2013-11-06 14:25:15 UTC) #10
khim
https://codereview.chromium.org/49183002/diff/330001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/330001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode11 src/trusted/validator_ragel/compress_regular_instructions.py:11: The following compression rules are present: On 2013/11/06 12:11:51, ...
7 years, 1 month ago (2013-11-06 21:28:26 UTC) #11
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode179 src/trusted/validator_ragel/compress_regular_instructions.py:179: for initial_rr in validator.ALL_REGISTERS + [None]: I think that ...
7 years, 1 month ago (2013-11-07 10:54:37 UTC) #12
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode412 src/trusted/validator_ragel/compress_regular_instructions.py:412: '%rip' I don't understand the space-alignment algorithm in these ...
7 years, 1 month ago (2013-11-07 11:08:49 UTC) #13
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode448 src/trusted/validator_ragel/compress_regular_instructions.py:448: # Expand RR_NOTES section in regex. https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode454 src/trusted/validator_ragel/compress_regular_instructions.py:454: base ...
7 years, 1 month ago (2013-11-07 11:59:37 UTC) #14
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode429 src/trusted/validator_ragel/compress_regular_instructions.py:429: reg: reg operand kind (see REGISTERS array) or None ...
7 years, 1 month ago (2013-11-07 12:07:27 UTC) #15
khim
https://codereview.chromium.org/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/450001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode179 src/trusted/validator_ragel/compress_regular_instructions.py:179: for initial_rr in validator.ALL_REGISTERS + [None]: On 2013/11/07 10:54:38, ...
7 years, 1 month ago (2013-11-07 17:05:30 UTC) #16
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/520001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/520001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode419 src/trusted/validator_ragel/compress_regular_instructions.py:419: memory_compressors (regsiter <-> memory instructions) regsiter->register https://chromiumcodereview.appspot.com/49183002/diff/520001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode524 src/trusted/validator_ragel/compress_regular_instructions.py:524: '(?:%' ...
7 years, 1 month ago (2013-11-08 15:35:18 UTC) #17
khim
https://codereview.chromium.org/49183002/diff/520001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/520001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode419 src/trusted/validator_ragel/compress_regular_instructions.py:419: memory_compressors (regsiter <-> memory instructions) On 2013/11/08 15:35:19, halyavin ...
7 years, 1 month ago (2013-11-12 10:14:55 UTC) #18
khim
7 years, 1 month ago (2013-11-12 10:16:53 UTC) #19
halyavin
https://codereview.chromium.org/49183002/diff/720001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/720001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode425 src/trusted/validator_ragel/compress_regular_instructions.py:425: memory_accessed: True if instruction accesses memory Not used. Default ...
7 years, 1 month ago (2013-11-12 11:44:05 UTC) #20
khim
https://codereview.chromium.org/49183002/diff/720001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/720001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode425 src/trusted/validator_ragel/compress_regular_instructions.py:425: memory_accessed: True if instruction accesses memory On 2013/11/12 11:44:06, ...
7 years, 1 month ago (2013-11-13 00:31:59 UTC) #21
halyavin
https://chromiumcodereview.appspot.com/49183002/diff/890001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://chromiumcodereview.appspot.com/49183002/diff/890001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode448 src/trusted/validator_ragel/compress_regular_instructions.py:448: # end make rejection faster (%r15 is equal to ...
7 years, 1 month ago (2013-11-14 07:07:50 UTC) #22
khim
https://codereview.chromium.org/49183002/diff/890001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/890001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode448 src/trusted/validator_ragel/compress_regular_instructions.py:448: # end make rejection faster (%r15 is equal to ...
7 years, 1 month ago (2013-11-15 12:11:26 UTC) #23
halyavin
https://codereview.chromium.org/49183002/diff/960001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/960001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode415 src/trusted/validator_ragel/compress_regular_instructions.py:415: base_text='%r15', index_text='%r15'): Can we use %riz as default value ...
7 years, 1 month ago (2013-11-18 09:50:47 UTC) #24
khim
https://codereview.chromium.org/49183002/diff/960001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/960001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode415 src/trusted/validator_ragel/compress_regular_instructions.py:415: base_text='%r15', index_text='%r15'): On 2013/11/18 09:50:47, halyavin wrote: > Can ...
7 years, 1 month ago (2013-11-18 12:10:21 UTC) #25
halyavin
https://codereview.chromium.org/49183002/diff/1010001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1010001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode602 src/trusted/validator_ragel/compress_regular_instructions.py:602: # In 32-bit mode there are another, shorter, form, ...
7 years, 1 month ago (2013-11-18 14:13:09 UTC) #26
halyavin
https://codereview.chromium.org/49183002/diff/1010001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1010001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode698 src/trusted/validator_ragel/compress_regular_instructions.py:698: if writes_to == 'reg' and register_write == 'sandbox': The ...
7 years, 1 month ago (2013-11-19 08:57:50 UTC) #27
khim
https://codereview.chromium.org/49183002/diff/1010001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1010001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode602 src/trusted/validator_ragel/compress_regular_instructions.py:602: # In 32-bit mode there are another, shorter, form, ...
7 years, 1 month ago (2013-11-19 09:26:48 UTC) #28
khim
PTAL
7 years ago (2013-12-06 01:45:36 UTC) #29
halyavin
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode857 src/trusted/validator_ragel/compress_regular_instructions.py:857: if reg[0:2] == 'r8' and register_write != 'ignore' and ...
7 years ago (2013-12-06 10:58:45 UTC) #30
halyavin
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode925 src/trusted/validator_ragel/compress_regular_instructions.py:925: regex += '.*' Can we use '$' instead? https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode935 ...
7 years ago (2013-12-06 11:25:42 UTC) #31
halyavin
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode1026 src/trusted/validator_ragel/compress_regular_instructions.py:1026: {'writes_to':'reg', 'x3Dnow':'yes'}) 'yes'->True https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode1026 src/trusted/validator_ragel/compress_regular_instructions.py:1026: {'writes_to':'reg', 'x3Dnow':'yes'}) 'x3Dnow'-> 'is_3Dnow'
7 years ago (2013-12-06 11:31:16 UTC) #32
halyavin
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode991 src/trusted/validator_ragel/compress_regular_instructions.py:991: instruction_kinds = [ Use append and extract register_write to ...
7 years ago (2013-12-06 11:41:32 UTC) #33
halyavin
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode1051 src/trusted/validator_ragel/compress_regular_instructions.py:1051: if rm[0:2] == 'r8' and register_write != 'ignore': The ...
7 years ago (2013-12-06 12:38:27 UTC) #34
halyavin
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode1172 src/trusted/validator_ragel/compress_regular_instructions.py:1172: end_reg = REGISTERS[reg][-2 if text2[-2] == 'e' else -1] ...
7 years ago (2013-12-06 13:02:50 UTC) #35
khim
https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1110001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode857 src/trusted/validator_ragel/compress_regular_instructions.py:857: if reg[0:2] == 'r8' and register_write != 'ignore' and ...
7 years ago (2013-12-06 15:57:35 UTC) #36
halyavin
https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode885 src/trusted/validator_ragel/compress_regular_instructions.py:885: if is_3Dnow: Write it as if else and replace ...
7 years ago (2013-12-06 16:05:47 UTC) #37
halyavin
https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode831 src/trusted/validator_ragel/compress_regular_instructions.py:831: """ Returns two memory regexes: for bytes and textual ...
7 years ago (2013-12-06 16:17:57 UTC) #38
khim
https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode831 src/trusted/validator_ragel/compress_regular_instructions.py:831: """ Returns two memory regexes: for bytes and textual ...
7 years ago (2013-12-06 16:28:49 UTC) #39
halyavin
https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode1209 src/trusted/validator_ragel/compress_regular_instructions.py:1209: ' \\w* (?:\\$0x0,|%ax,|%st,)?' Use raw literals when you are ...
7 years ago (2013-12-06 16:30:37 UTC) #40
halyavin
https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode6 src/trusted/validator_ragel/compress_regular_instructions.py:6: Traverse the validator's DFA, collect all "normal" instruction and ...
7 years ago (2013-12-07 17:27:14 UTC) #41
halyavin
https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode934 src/trusted/validator_ragel/compress_regular_instructions.py:934: if options.bitness == 64: # We generate 2 variants ...
7 years ago (2013-12-07 17:49:31 UTC) #42
halyavin
https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode304 src/trusted/validator_ragel/compress_regular_instructions.py:304: instructions -= subset Add "assert instruction in subset". We ...
7 years ago (2013-12-07 19:51:14 UTC) #43
khim
https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode304 src/trusted/validator_ragel/compress_regular_instructions.py:304: instructions -= subset On 2013/12/07 19:51:15, halyavin wrote: > ...
7 years ago (2013-12-08 20:13:03 UTC) #44
khim
https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1150001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode6 src/trusted/validator_ragel/compress_regular_instructions.py:6: Traverse the validator's DFA, collect all "normal" instruction and ...
7 years ago (2013-12-08 23:22:30 UTC) #45
khim
https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1130001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode1209 src/trusted/validator_ragel/compress_regular_instructions.py:1209: ' \\w* (?:\\$0x0,|%ax,|%st,)?' On 2013/12/06 16:30:38, halyavin wrote: > ...
7 years ago (2013-12-08 23:23:03 UTC) #46
halyavin
https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_ragel/compress_regular_instructions.py File src/trusted/validator_ragel/compress_regular_instructions.py (right): https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_ragel/compress_regular_instructions.py#newcode949 src/trusted/validator_ragel/compress_regular_instructions.py:949: subst = ('XX', subst_rm, '[%{}..%{}]'.format(start_reg, end_reg)) You created subst_reg ...
7 years ago (2013-12-10 08:03:33 UTC) #47
khim
7 years ago (2013-12-10 21:06:38 UTC) #48
Significant robustness change: we no longer generate version where information
is hidden (interval %rax..%r14 where %rbp and %rsp is not included) and, even
more importantly, produce %eax|%ecx|%edx|%ebx|%esi|%edi instead of %eax..%edi is
%rbp and %rsp are forbidden.

Unfortunately it significantly changes both output and logs...

https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_r...
File src/trusted/validator_ragel/compress_regular_instructions.py (right):

https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_r...
src/trusted/validator_ragel/compress_regular_instructions.py:949: subst = ('XX',
subst_rm, '[%{}..%{}]'.format(start_reg, end_reg))
On 2013/12/10 08:03:34, halyavin wrote:
> You created subst_reg which you can use here.

Done.

https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_r...
src/trusted/validator_ragel/compress_regular_instructions.py:961: subst = ('XX',
'[%{}..%{}]'.format(start_reg, end_reg), subst_rm)
On 2013/12/10 08:03:34, halyavin wrote:
> The same.

Done.

https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_r...
src/trusted/validator_ragel/compress_regular_instructions.py:1283: if reg[0:2]
== 'r8':
On 2013/12/10 08:03:34, halyavin wrote:
> REGISTERS[reg][-1].startswith('r15')

This code is removed compretely.

https://codereview.chromium.org/49183002/diff/1440001/src/trusted/validator_r...
src/trusted/validator_ragel/compress_regular_instructions.py:1292: end_out =
REGISTERS[out_reg][-1 if out_reg[0:2] != 'r8' else -2]
On 2013/12/10 08:03:34, halyavin wrote:
> Use end_out.startswith('r15') instead.

This code is removed completely.

Powered by Google App Engine
This is Rietveld 408576698