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

Issue 8268004: Ignore flags with arguments in preparser-process. (Closed)

Created:
9 years, 2 months ago by ulan
Modified:
9 years, 1 month ago
Reviewers:
Lasse Reichstein
CC:
v8-dev
Visibility:
Public.

Description

Ignore flags with arguments in preparser-process. Currently, preparser-process crashes when given flags with arguments (e.g. --gc_interval 10). It can be fixed by ignoring everything in the command line except the "throws" command and its immediate arguments. This assumes that no flags appear between "throws" and its arguments. TEST=make ia32.release.check TESTFLAGS="preparser --special-command=\"@ --gc_interval 10\"" Committed: http://code.google.com/p/v8/source/detail?r=9617

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -23 lines) Patch
M preparser/preparser-process.cc View 1 2 chunks +12 lines, -23 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
ulan
Please take a look.
9 years, 2 months ago (2011-10-13 12:15:43 UTC) #1
Lasse Reichstein
http://codereview.chromium.org/8268004/diff/1/preparser/preparser-process.cc File preparser/preparser-process.cc (right): http://codereview.chromium.org/8268004/diff/1/preparser/preparser-process.cc#newcode273 preparser/preparser-process.cc:273: while (argc > arg_index && strncmp("throws", argv[arg_index], 7)) Braces ...
9 years, 2 months ago (2011-10-13 13:08:14 UTC) #2
ulan
Addressed comments, please take another look. http://codereview.chromium.org/8268004/diff/1/preparser/preparser-process.cc File preparser/preparser-process.cc (right): http://codereview.chromium.org/8268004/diff/1/preparser/preparser-process.cc#newcode273 preparser/preparser-process.cc:273: while (argc > ...
9 years, 2 months ago (2011-10-13 13:43:18 UTC) #3
Lasse Reichstein
9 years, 2 months ago (2011-10-13 13:45:02 UTC) #4
lgtm

Powered by Google App Engine
This is Rietveld 408576698