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

Issue 9960043: Finish separation of testing from sel_ldr validation. Also, automate (Closed)

Created:
8 years, 8 months ago by Karl
Modified:
8 years, 8 months ago
CC:
native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Finish separation of testing from sel_ldr validation. Also, automate the process of generating tests from the specified decoder tables. BUG= http://code.google.com/p/nativeclient/issues/detail?id=2673 Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=8337

Patch Set 1 #

Patch Set 2 : #

Total comments: 22

Patch Set 3 : #

Total comments: 36

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 12

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5911 lines, -4052 lines) Patch
M src/trusted/validator_arm/address_set_test.cc View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M src/trusted/validator_arm/armv7.table View 1 2 3 4 5 1 chunk +604 lines, -536 lines 0 comments Download
M src/trusted/validator_arm/build.scons View 1 2 3 4 5 5 chunks +32 lines, -22 lines 0 comments Download
M src/trusted/validator_arm/decoder_tester.h View 1 2 3 4 5 8 chunks +20 lines, -14 lines 0 comments Download
M src/trusted/validator_arm/decoder_tester.cc View 1 2 3 4 5 11 chunks +15 lines, -10 lines 0 comments Download
D src/trusted/validator_arm/decoder_tests.cc View 1 2 3 4 5 1 chunk +0 lines, -65 lines 0 comments Download
M src/trusted/validator_arm/dgen_core.py View 1 2 3 4 5 5 chunks +192 lines, -22 lines 0 comments Download
A src/trusted/validator_arm/dgen_decoder_output.py View 1 2 3 4 5 1 chunk +273 lines, -0 lines 0 comments Download
M src/trusted/validator_arm/dgen_input.py View 1 2 3 4 5 2 chunks +273 lines, -91 lines 0 comments Download
M src/trusted/validator_arm/dgen_output.py View 1 2 3 4 5 1 chunk +20 lines, -262 lines 0 comments Download
A src/trusted/validator_arm/dgen_test_output.py View 1 2 3 4 5 1 chunk +647 lines, -0 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode.h View 1 2 3 4 5 2 chunks +198 lines, -60 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode.cc View 1 2 3 4 5 2 chunks +1394 lines, -1425 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode_named.h View 1 2 3 4 5 1 chunk +0 lines, -270 lines 0 comments Download
M src/trusted/validator_arm/gen/arm32_decode_named.cc View 1 2 3 4 5 2 chunks +1138 lines, -1225 lines 0 comments Download
A src/trusted/validator_arm/gen/arm32_decode_named_classes.h View 1 2 3 1 chunk +612 lines, -0 lines 0 comments Download
A src/trusted/validator_arm/gen/arm32_decode_named_decoder.h View 1 2 3 4 5 1 chunk +236 lines, -0 lines 0 comments Download
A src/trusted/validator_arm/gen/arm32_decode_tests.cc View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
M src/trusted/validator_arm/generate_decoder.py View 1 2 3 4 5 2 chunks +21 lines, -24 lines 0 comments Download
M src/trusted/validator_arm/inst_classes.h View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M src/trusted/validator_arm/inst_classes.cc View 1 2 3 4 5 2 chunks +1 line, -6 lines 0 comments Download
MM src/trusted/validator_arm/inst_classes_testers.h View 1 2 3 4 5 3 chunks +26 lines, -3 lines 0 comments Download
MM src/trusted/validator_arm/inst_classes_testers.cc View 1 2 3 4 5 2 chunks +31 lines, -8 lines 0 comments Download
A src/trusted/validator_arm/named_class_decoder.h View 1 chunk +101 lines, -0 lines 0 comments Download
M src/trusted/validator_arm/validator_tests.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Karl
8 years, 8 months ago (2012-04-09 20:53:51 UTC) #1
robertm
It don't go much into detail about what I mean by templates in the python ...
8 years, 8 months ago (2012-04-11 01:28:43 UTC) #2
Karl
Please take a look at my changes. Thanks. https://chromiumcodereview.appspot.com/9960043/diff/3002/src/trusted/validator_arm/address_set_test.cc File src/trusted/validator_arm/address_set_test.cc (right): https://chromiumcodereview.appspot.com/9960043/diff/3002/src/trusted/validator_arm/address_set_test.cc#newcode12 src/trusted/validator_arm/address_set_test.cc:12: #error("This ...
8 years, 8 months ago (2012-04-16 23:18:10 UTC) #3
robertm
https://chromiumcodereview.appspot.com/9960043/diff/11001/src/trusted/validator_arm/build.scons File src/trusted/validator_arm/build.scons (right): https://chromiumcodereview.appspot.com/9960043/diff/11001/src/trusted/validator_arm/build.scons#newcode158 src/trusted/validator_arm/build.scons:158: ['gen/arm32_decode_tests.cc'], is this gen/ dir different from the one ...
8 years, 8 months ago (2012-04-17 17:12:19 UTC) #4
Karl
https://chromiumcodereview.appspot.com/9960043/diff/11001/src/trusted/validator_arm/build.scons File src/trusted/validator_arm/build.scons (right): https://chromiumcodereview.appspot.com/9960043/diff/11001/src/trusted/validator_arm/build.scons#newcode158 src/trusted/validator_arm/build.scons:158: ['gen/arm32_decode_tests.cc'], On 2012/04/17 17:12:19, robertm wrote: > is this ...
8 years, 8 months ago (2012-04-17 19:28:31 UTC) #5
sehr (please use chromium)
Nits from my previous version. http://codereview.chromium.org/9960043/diff/19001/src/trusted/validator_arm/dgen_core.py File src/trusted/validator_arm/dgen_core.py (right): http://codereview.chromium.org/9960043/diff/19001/src/trusted/validator_arm/dgen_core.py#newcode222 src/trusted/validator_arm/dgen_core.py:222: action_string: a string indicating ...
8 years, 8 months ago (2012-04-19 19:52:47 UTC) #6
sehr (please use chromium)
A number of nits. Ignore the spacing comments. Fix the nits and LGTM. http://codereview.chromium.org/9960043/diff/27001/src/trusted/validator_arm/dgen_decoder_output.py File ...
8 years, 8 months ago (2012-04-19 21:54:46 UTC) #7
Karl
8 years, 8 months ago (2012-04-24 19:58:26 UTC) #8
https://chromiumcodereview.appspot.com/9960043/diff/19001/src/trusted/validat...
File src/trusted/validator_arm/dgen_core.py (right):

https://chromiumcodereview.appspot.com/9960043/diff/19001/src/trusted/validat...
src/trusted/validator_arm/dgen_core.py:222: action_string: a string indicating
the action to take; must begin
On 2012/04/19 19:52:47, sehr wrote:
> s/action_string/action/

Done.

https://chromiumcodereview.appspot.com/9960043/diff/19001/src/trusted/validat...
src/trusted/validator_arm/dgen_core.py:225: arg: a string defining the
architectures it applies to. None
On 2012/04/19 19:52:47, sehr wrote:
> s/arg/arch/

Done.

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
File src/trusted/validator_arm/dgen_decoder_output.py (right):

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
src/trusted/validator_arm/dgen_decoder_output.py:18: # decoder tables.  The code
is specifically written to minize the
On 2012/04/19 21:54:46, sehr wrote:
> minimize

Done.

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
File src/trusted/validator_arm/dgen_test_output.py (right):

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
src/trusted/validator_arm/dgen_test_output.py:52: # its only 'name'. For
testing, it will include other fields, depending
On 2012/04/19 21:54:46, sehr wrote:
> s/its/it's/

Done.

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
src/trusted/validator_arm/dgen_test_output.py:99: #  virtual
~NamedAdd_Rule_7_A1_P26Binary4RegisterShiftedOp() {}
On 2012/04/19 21:54:46, sehr wrote:
> Should this be ~NamedRuleInstClass?

Done.

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
File src/trusted/validator_arm/gen/arm32_decode_named_decoder.h (right):

https://chromiumcodereview.appspot.com/9960043/diff/27001/src/trusted/validat...
src/trusted/validator_arm/gen/arm32_decode_named_decoder.h:44: // that can be
returned by the API function "decode_name". They
On 2012/04/19 21:54:46, sehr wrote:
> decode_named?

Done.

Powered by Google App Engine
This is Rietveld 408576698