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

Issue 1737623002: [Interpreter] Multiple input files for generate-bytecode-expectations. (Closed)

Created:
4 years, 9 months ago by Stefano Sanfilippo
Modified:
4 years, 9 months ago
Reviewers:
oth, rmcilroy
CC:
v8-reviews_googlegroups.com, oth, rmcilroy
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[Interpreter] Multiple input files for generate-bytecode-expectations. When operating in --rebaseline mode, each of the files will be updated. In --raw-js mode, all the expectations will be written to the same file. In default mode no more than one input file is accepted. On POSIX systems, --rebaseline will autodiscover golden files when run from the project root and no input file is provided. BUG=v8:4280 LOG=N Committed: https://crrev.com/e039f63a4f809b940f67498b85749be31fd8b82a Cr-Commit-Position: refs/heads/master@{#34324}

Patch Set 1 #

Total comments: 8

Patch Set 2 : ERROR reporting macro. #

Total comments: 1

Patch Set 3 : Drop "Processing foo.js" message. #

Patch Set 4 : Fix compiler errors on Mac OS X. #

Patch Set 5 : ERROR => REPORT_ERROR to solve MSVC macro redefinition error. #

Patch Set 6 : Add --verbose flag and be silent otherwise. #

Patch Set 7 : Unifying Do* functions. #

Total comments: 5

Patch Set 8 : Clarify how main() works. #

Patch Set 9 : Wrap duplicated code in a function. #

Patch Set 10 : Fix the same Mac OS X compiler error, again. #

Patch Set 11 : Golden files autodiscovery on POSIX + restore flags after use. #

Patch Set 12 : Assume running from V8 project root. #

Total comments: 2

Patch Set 13 : Use strcmp in EndsWith. #

Patch Set 14 : EndsWith => StrEndsWith for uniformity with other string functions. #

Patch Set 15 : Reword POSIX error message. #

Patch Set 16 : Remove unneeded special case. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -71 lines) Patch
M test/cctest/interpreter/generate-bytecode-expectations.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +178 lines, -71 lines 0 comments Download

Messages

Total messages: 59 (24 generated)
Stefano Sanfilippo
The subject says pretty much everything :) PTAL.
4 years, 9 months ago (2016-02-25 12:18:20 UTC) #2
oth
A couple of minor comments, but looks good here. lgtm. https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode456 ...
4 years, 9 months ago (2016-02-25 13:12:38 UTC) #3
Stefano Sanfilippo
https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode456 test/cctest/interpreter/generate-bytecode-expectations.cc:456: std::cerr << "ERROR: Could not open '" << input_filename ...
4 years, 9 months ago (2016-02-25 13:23:56 UTC) #4
Stefano Sanfilippo
https://codereview.chromium.org/1737623002/diff/20001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/20001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode21 test/cctest/interpreter/generate-bytecode-expectations.cc:21: #define ERROR(MESSAGE) (((std::cerr << "ERROR: ") << MESSAGE) << ...
4 years, 9 months ago (2016-02-25 13:25:33 UTC) #5
Stefano Sanfilippo
On 2016/02/25 13:23:56, ssanfilippo wrote: > https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc > File test/cctest/interpreter/generate-bytecode-expectations.cc (right): > > https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode456 > ...
4 years, 9 months ago (2016-02-25 13:28:46 UTC) #7
Stefano Sanfilippo
4 years, 9 months ago (2016-02-25 13:28:55 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/40001
4 years, 9 months ago (2016-02-25 13:35:45 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_win_rel_ng on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_win_rel_ng/builds/3331)
4 years, 9 months ago (2016-02-25 13:38:19 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/80001
4 years, 9 months ago (2016-02-25 14:06:36 UTC) #14
rmcilroy
https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode434 test/cctest/interpreter/generate-bytecode-expectations.cc:434: int DoRebaseline(const V8InitializationScope& platform, As discussed offline, let's try ...
4 years, 9 months ago (2016-02-25 14:12:28 UTC) #15
Stefano Sanfilippo
https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode434 test/cctest/interpreter/generate-bytecode-expectations.cc:434: int DoRebaseline(const V8InitializationScope& platform, On 2016/02/25 14:12:28, rmcilroy wrote: ...
4 years, 9 months ago (2016-02-25 14:23:50 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/120001
4 years, 9 months ago (2016-02-25 15:31:02 UTC) #18
Stefano Sanfilippo
On 2016/02/25 14:23:50, ssanfilippo wrote: > https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc > File test/cctest/interpreter/generate-bytecode-expectations.cc (right): > > https://codereview.chromium.org/1737623002/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode434 > ...
4 years, 9 months ago (2016-02-25 15:31:12 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/140001
4 years, 9 months ago (2016-02-25 15:44:24 UTC) #21
rmcilroy
A couple of comments, but otherwise LGTM. https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode21 test/cctest/interpreter/generate-bytecode-expectations.cc:21: #define REPORT_ERROR(MESSAGE) ...
4 years, 9 months ago (2016-02-25 15:48:23 UTC) #22
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/16018)
4 years, 9 months ago (2016-02-25 16:00:31 UTC) #24
Stefano Sanfilippo
https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode21 test/cctest/interpreter/generate-bytecode-expectations.cc:21: #define REPORT_ERROR(MESSAGE) (((std::cerr << "ERROR: ") << MESSAGE) << ...
4 years, 9 months ago (2016-02-25 16:34:43 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/180001
4 years, 9 months ago (2016-02-25 16:35:00 UTC) #27
rmcilroy
https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode21 test/cctest/interpreter/generate-bytecode-expectations.cc:21: #define REPORT_ERROR(MESSAGE) (((std::cerr << "ERROR: ") << MESSAGE) << ...
4 years, 9 months ago (2016-02-25 16:39:07 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-25 16:50:07 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/200001
4 years, 9 months ago (2016-02-25 18:34:28 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/220001
4 years, 9 months ago (2016-02-25 18:42:58 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-25 18:59:20 UTC) #36
rmcilroy
lgtm with a comment (also consider the previous comment about using FATAL. https://codereview.chromium.org/1737623002/diff/220001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc ...
4 years, 9 months ago (2016-02-26 08:56:16 UTC) #38
Stefano Sanfilippo
On 2016/02/25 16:39:07, rmcilroy wrote: > https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc > File test/cctest/interpreter/generate-bytecode-expectations.cc (right): > > https://codereview.chromium.org/1737623002/diff/120001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode21 > ...
4 years, 9 months ago (2016-02-26 10:15:49 UTC) #39
Stefano Sanfilippo
https://codereview.chromium.org/1737623002/diff/220001/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1737623002/diff/220001/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode169 test/cctest/interpreter/generate-bytecode-expectations.cc:169: if (string[i] != suffix[j]) return false; On 2016/02/26 08:56:16, ...
4 years, 9 months ago (2016-02-26 10:22:43 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/260001
4 years, 9 months ago (2016-02-26 10:32:57 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-26 10:51:06 UTC) #44
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/280001
4 years, 9 months ago (2016-02-26 10:56:57 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-26 11:19:01 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/230002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/230002
4 years, 9 months ago (2016-02-26 11:54:00 UTC) #50
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-02-26 11:55:26 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1737623002/230002 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1737623002/230002
4 years, 9 months ago (2016-02-26 12:02:04 UTC) #55
commit-bot: I haz the power
Committed patchset #16 (id:230002)
4 years, 9 months ago (2016-02-26 12:04:08 UTC) #57
commit-bot: I haz the power
4 years, 9 months ago (2016-02-26 12:04:36 UTC) #59
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/e039f63a4f809b940f67498b85749be31fd8b82a
Cr-Commit-Position: refs/heads/master@{#34324}

Powered by Google App Engine
This is Rietveld 408576698