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

Issue 10024039: Replace kind variable from validator API with Boolean stubout parameter. (Closed)

Created:
8 years, 8 months ago by Nick Bray (chromium)
Modified:
8 years, 8 months ago
Reviewers:
Mark Seaborn
CC:
native-client-reviews_googlegroups.com, Brad Chen (chromium), Karl
Visibility:
Public.

Description

Replace kind variable from validator API with Boolean stubout parameter. There were actually three kinds, but the NaClApplyValidationAnnotator kind was unused. This is an incremental step in cleaning up the validator API. BUG= none TEST= none Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=8219

Patch Set 1 #

Total comments: 14

Patch Set 2 : Edits #

Total comments: 8

Patch Set 3 : Final edits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -109 lines) Patch
M src/tools/validator_tools/ncstubout.c View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/trusted/service_runtime/sel_validate_image.c View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M src/trusted/validator/ncvalidate.h View 1 2 5 chunks +10 lines, -34 lines 0 comments Download
M src/trusted/validator/validation_cache_test.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/trusted/validator/x86/32/ncvalidate.c View 1 2 2 chunks +8 lines, -14 lines 0 comments Download
M src/trusted/validator/x86/32/ncvalidate_verbose.c View 2 chunks +2 lines, -14 lines 0 comments Download
M src/trusted/validator/x86/64/ncvalidate.c View 2 chunks +8 lines, -13 lines 0 comments Download
M src/trusted/validator/x86/64/ncvalidate_verbose.c View 2 chunks +2 lines, -14 lines 0 comments Download
M src/trusted/validator_arm/ncvalidate.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M src/trusted/validator_x86/ncenuminsts_x86_32.c View 1 1 chunk +3 lines, -2 lines 0 comments Download
M src/trusted/validator_x86/ncenuminsts_x86_64.c View 1 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nick Bray (chromium)
8 years, 8 months ago (2012-04-09 22:41:02 UTC) #1
Mark Seaborn
https://chromiumcodereview.appspot.com/10024039/diff/1/src/tools/validator_tools/ncstubout.c File src/tools/validator_tools/ncstubout.c (right): https://chromiumcodereview.appspot.com/10024039/diff/1/src/tools/validator_tools/ncstubout.c#newcode42 src/tools/validator_tools/ncstubout.c:42: (sb_kind, load_address, code, code_size, bundle_size, TRUE, FALSE, Can you ...
8 years, 8 months ago (2012-04-10 00:57:38 UTC) #2
pasko-google - do not use
Can you, please, also (in the future changes) remove the bundle_size argument? It was an ...
8 years, 8 months ago (2012-04-10 05:23:24 UTC) #3
Nick Bray (chromium)
PTAL pasko: bundle size elimination is planned for CL 3 out of 4(?) https://chromiumcodereview.appspot.com/10024039/diff/1/src/tools/validator_tools/ncstubout.c File ...
8 years, 8 months ago (2012-04-10 18:49:20 UTC) #4
Mark Seaborn
LGTM https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/service_runtime/sel_validate_image.c File src/trusted/service_runtime/sel_validate_image.c (right): https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/service_runtime/sel_validate_image.c#newcode82 src/trusted/service_runtime/sel_validate_image.c:82: /* fixed feature cpu mode implies read-only */ ...
8 years, 8 months ago (2012-04-10 19:04:09 UTC) #5
Nick Bray (chromium)
8 years, 8 months ago (2012-04-10 19:12:40 UTC) #6
https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/service_r...
File src/trusted/service_runtime/sel_validate_image.c (right):

https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/service_r...
src/trusted/service_runtime/sel_validate_image.c:82: /* fixed feature cpu mode
implies read-only */
On 2012/04/10 19:04:09, Mark Seaborn wrote:
> Capitalise 'Fixed' and 'CPU'

Done.

https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/validator...
File src/trusted/validator/ncvalidate.h (right):

https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/validator...
src/trusted/validator/ncvalidate.h:77: *    stubout_mode - If the validator
should stub out illegal instructions.
On 2012/04/10 19:04:09, Mark Seaborn wrote:
> 'If' -> 'Whether'
> 
> 'illegal' -> 'forbidden'/'disallowed'

Done.

https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/validator...
src/trusted/validator/ncvalidate.h:82: *           the responsability of the
caller to call the validator a second
On 2012/04/10 19:04:09, Mark Seaborn wrote:
> 'responsibility'

Done.

https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/validator...
File src/trusted/validator/x86/32/ncvalidate.c (right):

https://chromiumcodereview.appspot.com/10024039/diff/19/src/trusted/validator...
src/trusted/validator/x86/32/ncvalidate.c:111: guest_addr, data, size,
bundle_size,
On 2012/04/10 19:04:09, Mark Seaborn wrote:
> Nit: indent -2

Done.

Powered by Google App Engine
This is Rietveld 408576698