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

Issue 9968039: Add ragel machine generators to SCONS (Closed)

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

Description

Add ragel decoder/validator to SCONS BUG=http://code.google.com/p/nativeclient/issues/detail?id=2597 TEST=scons decoder-test validator-test ; ls -al scons-out/*/staging Committed: https://src.chromium.org/viewvc/native_client?view=rev&revision=8202

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Total comments: 13

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : #

Total comments: 12

Patch Set 13 : #

Total comments: 2

Patch Set 14 : #

Patch Set 15 : #

Total comments: 6

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Total comments: 11

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Total comments: 2

Patch Set 24 : #

Patch Set 25 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+377 lines, -173 lines) Patch
M SConstruct View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A src/trusted/validator_ragel/build.scons View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +135 lines, -0 lines 2 comments Download
M src/trusted/validator_ragel/unreviewed/Makefile View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M src/trusted/validator_ragel/unreviewed/decoder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +12 lines, -2 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/decoder-test.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 15 chunks +50 lines, -34 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/decoder-x86_32.rl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -9 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/decoder-x86_64.rl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -9 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/gen-dfa.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 30 chunks +95 lines, -62 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/validator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -3 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/validator-test.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 6 chunks +35 lines, -18 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/validator-x86_32.rl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +11 lines, -13 lines 0 comments Download
M src/trusted/validator_ragel/unreviewed/validator-x86_64.rl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +28 lines, -22 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
khim
8 years, 8 months ago (2012-04-02 13:57:43 UTC) #1
pasko-google - do not use
first round of review non-scons changes look fine, though for build.scons I would suggest inviting ...
8 years, 8 months ago (2012-04-03 15:09:40 UTC) #2
halyavin
https://chromiumcodereview.appspot.com/9968039/diff/6001/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/6001/src/trusted/validator_ragel/build.scons#newcode91 src/trusted/validator_ragel/build.scons:91: [('${SOURCES[0]} -o ${TARGET} -m %s -d %s ${SOURCES[1]} ' ...
8 years, 8 months ago (2012-04-03 15:15:12 UTC) #3
khim
https://chromiumcodereview.appspot.com/9968039/diff/6001/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/6001/src/trusted/validator_ragel/build.scons#newcode57 src/trusted/validator_ragel/build.scons:57: env_gen_decoder.Append(CCFLAGS=['-std=c++0x', '-O3', '-finline-limit=10000', On 2012/04/03 15:09:40, pasko wrote: > ...
8 years, 8 months ago (2012-04-03 16:45:52 UTC) #4
Mark Seaborn
https://chromiumcodereview.appspot.com/9968039/diff/2004/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/2004/src/trusted/validator_ragel/build.scons#newcode15 src/trusted/validator_ragel/build.scons:15: if not env.Bit('target_x86'): Return() Our Python style is to ...
8 years, 8 months ago (2012-04-03 17:13:37 UTC) #5
khim
https://chromiumcodereview.appspot.com/9968039/diff/2004/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/2004/src/trusted/validator_ragel/build.scons#newcode15 src/trusted/validator_ragel/build.scons:15: if not env.Bit('target_x86'): Return() On 2012/04/03 17:13:37, Mark Seaborn ...
8 years, 8 months ago (2012-04-03 17:48:04 UTC) #6
pasko-google - do not use
https://chromiumcodereview.appspot.com/9968039/diff/13003/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/13003/src/trusted/validator_ragel/build.scons#newcode64 src/trusted/validator_ragel/build.scons:64: gen_env.Command( nit: see in src/trusted/validator_arm/build.scons: env.Command(target=blah, source=blah, action=blah) improves ...
8 years, 8 months ago (2012-04-05 09:41:37 UTC) #7
pasko-google - do not use
https://chromiumcodereview.appspot.com/9968039/diff/13003/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/13003/src/trusted/validator_ragel/build.scons#newcode93 src/trusted/validator_ragel/build.scons:93: ['unreviewed/%s-x86_%s.rl' % (automata, bits), rl_file], I think it can ...
8 years, 8 months ago (2012-04-05 11:41:24 UTC) #8
khim
PTAL 2BradN: my initial version included cargo-culted piece related to Microsoft.VC80.DebugCRT and this piece included ...
8 years, 8 months ago (2012-04-05 13:39:33 UTC) #9
pasko-google - do not use
you should also fix the unreviewed/Makefile, it is too early now to break 'make check' ...
8 years, 8 months ago (2012-04-05 14:16:38 UTC) #10
Mark Seaborn
On 5 April 2012 06:39, <khim@chromium.org> wrote: > PTAL > > 2BradN: my initial version ...
8 years, 8 months ago (2012-04-05 14:57:50 UTC) #11
khim
Small fixes suggested by Egor PTAL https://chromiumcodereview.appspot.com/9968039/diff/19001/src/trusted/validator_ragel/unreviewed/decoder-test.c File src/trusted/validator_ragel/unreviewed/decoder-test.c (right): https://chromiumcodereview.appspot.com/9968039/diff/19001/src/trusted/validator_ragel/unreviewed/decoder-test.c#newcode23 src/trusted/validator_ragel/unreviewed/decoder-test.c:23: /* We only ...
8 years, 8 months ago (2012-04-05 16:38:43 UTC) #12
Mark Seaborn
https://chromiumcodereview.appspot.com/9968039/diff/21002/src/trusted/validator_ragel/unreviewed/decoder-test.c File src/trusted/validator_ragel/unreviewed/decoder-test.c (right): https://chromiumcodereview.appspot.com/9968039/diff/21002/src/trusted/validator_ragel/unreviewed/decoder-test.c#newcode22 src/trusted/validator_ragel/unreviewed/decoder-test.c:22: UNREFERENCED_PARAMETER(data); It's not unreferenced: it's referenced immediately above. You ...
8 years, 8 months ago (2012-04-05 16:58:52 UTC) #13
Mark Seaborn
Please set BUG= and TEST= fields, BTW. Mark
8 years, 8 months ago (2012-04-05 16:59:45 UTC) #14
khim
https://chromiumcodereview.appspot.com/9968039/diff/21002/src/trusted/validator_ragel/unreviewed/decoder-test.c File src/trusted/validator_ragel/unreviewed/decoder-test.c (right): https://chromiumcodereview.appspot.com/9968039/diff/21002/src/trusted/validator_ragel/unreviewed/decoder-test.c#newcode22 src/trusted/validator_ragel/unreviewed/decoder-test.c:22: UNREFERENCED_PARAMETER(data); On 2012/04/05 16:58:53, Mark Seaborn wrote: > It's ...
8 years, 8 months ago (2012-04-05 17:59:16 UTC) #15
pasko-google - do not use
More general comments. These generated files are missing from this CL: decoder-x86_32.c decoder-x86_64.c validator-x86_64.c Generated ...
8 years, 8 months ago (2012-04-06 11:15:58 UTC) #16
khim
All files are in this CL. I'm not responsible for rietveld limitations. I can remove ...
8 years, 8 months ago (2012-04-06 12:24:11 UTC) #17
pasko-google - do not use
LGTM for everything except build.scons https://chromiumcodereview.appspot.com/9968039/diff/22011/src/trusted/validator_ragel/unreviewed/decoder-test.c File src/trusted/validator_ragel/unreviewed/decoder-test.c (right): https://chromiumcodereview.appspot.com/9968039/diff/22011/src/trusted/validator_ragel/unreviewed/decoder-test.c#newcode18 src/trusted/validator_ragel/unreviewed/decoder-test.c:18: void NaClLog_Function(int detail_level, char ...
8 years, 8 months ago (2012-04-06 15:23:58 UTC) #18
khim
https://chromiumcodereview.appspot.com/9968039/diff/22011/src/trusted/validator_ragel/unreviewed/decoder-test.c File src/trusted/validator_ragel/unreviewed/decoder-test.c (right): https://chromiumcodereview.appspot.com/9968039/diff/22011/src/trusted/validator_ragel/unreviewed/decoder-test.c#newcode18 src/trusted/validator_ragel/unreviewed/decoder-test.c:18: void NaClLog_Function(int detail_level, char const *fmt, ...) { On ...
8 years, 8 months ago (2012-04-06 15:30:04 UTC) #19
Nick Bray
Here's my initial reaction, just looking at the scons file and not having much context. ...
8 years, 8 months ago (2012-04-07 00:17:46 UTC) #20
khim
https://chromiumcodereview.appspot.com/9968039/diff/23016/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/23016/src/trusted/validator_ragel/build.scons#newcode18 src/trusted/validator_ragel/build.scons:18: # TODO(khim): eliminate need for the following piece Created ...
8 years, 8 months ago (2012-04-07 13:26:53 UTC) #21
pasko-google - do not use
https://chromiumcodereview.appspot.com/9968039/diff/23016/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/23016/src/trusted/validator_ragel/build.scons#newcode76 src/trusted/validator_ragel/build.scons:76: '${SOURCES[6]} && { ! test -e %s || mv ...
8 years, 8 months ago (2012-04-09 08:35:10 UTC) #22
khim
On 2012/04/09 08:35:10, pasko wrote: > Alternatively, get rid of the extra consts_file in gen-dfa. ...
8 years, 8 months ago (2012-04-09 09:02:04 UTC) #23
pasko-google - do not use
On 2012/04/09 09:02:04, khim wrote: > On 2012/04/09 08:35:10, pasko wrote: > > Alternatively, get ...
8 years, 8 months ago (2012-04-09 09:35:23 UTC) #24
pasko-google - do not use
oh by the way, you should add something to EXCLUDE_PROJECT_CHECKS_DIRS in PRESUBMIT.py
8 years, 8 months ago (2012-04-09 09:37:58 UTC) #25
pasko-google - do not use
https://chromiumcodereview.appspot.com/9968039/diff/28001/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/28001/src/trusted/validator_ragel/build.scons#newcode124 src/trusted/validator_ragel/build.scons:124: env.ComponentLibrary('%s-x86_%s' % (automata, bits), you suggest a validator library ...
8 years, 8 months ago (2012-04-09 10:04:26 UTC) #26
khim
On 2012/04/09 09:35:23, pasko wrote: > On 2012/04/09 09:02:04, khim wrote: > > On 2012/04/09 ...
8 years, 8 months ago (2012-04-09 10:30:22 UTC) #27
pasko-google - do not use
https://chromiumcodereview.appspot.com/9968039/diff/28001/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/28001/src/trusted/validator_ragel/build.scons#newcode124 src/trusted/validator_ragel/build.scons:124: env.ComponentLibrary('%s-x86_%s' % (automata, bits), On 2012/04/09 10:04:27, pasko wrote: ...
8 years, 8 months ago (2012-04-09 10:38:54 UTC) #28
khim
On 2012/04/09 10:04:26, pasko wrote: > https://chromiumcodereview.appspot.com/9968039/diff/28001/src/trusted/validator_ragel/build.scons > File src/trusted/validator_ragel/build.scons (right): > > https://chromiumcodereview.appspot.com/9968039/diff/28001/src/trusted/validator_ragel/build.scons#newcode124 > ...
8 years, 8 months ago (2012-04-09 10:41:52 UTC) #29
pasko-google - do not use
On 2012/04/09 10:41:52, khim wrote: > I've followed GNU conventions so far WRT dashes and ...
8 years, 8 months ago (2012-04-09 11:28:07 UTC) #30
khim
PTAL I don't want to add renaming of source files in this CL, it's already ...
8 years, 8 months ago (2012-04-09 15:17:11 UTC) #31
Nick Bray
SCons looks good. > Why is it unexpected? This is normal practice in make... Principle ...
8 years, 8 months ago (2012-04-09 19:04:36 UTC) #32
khim
https://chromiumcodereview.appspot.com/9968039/diff/28004/src/trusted/validator_ragel/build.scons File src/trusted/validator_ragel/build.scons (right): https://chromiumcodereview.appspot.com/9968039/diff/28004/src/trusted/validator_ragel/build.scons#newcode77 src/trusted/validator_ragel/build.scons:77: target=rl_file, Today -const.c file is created 3 times out ...
8 years, 8 months ago (2012-04-09 19:13:29 UTC) #33
Mark Seaborn
8 years, 8 months ago (2012-04-09 19:31:17 UTC) #34
This broke the build.  You don't seem to have run any try jobs, at least
according to Rietveld.  *Please do not commit without try runs.*

Mark

Powered by Google App Engine
This is Rietveld 408576698