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

Issue 1742723003: [Interpreter] Silence runtime errors in generate-bytecode-expectations. (Closed)

Created:
4 years, 10 months ago by Stefano Sanfilippo
Modified:
4 years, 9 months ago
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] Silence runtime errors in generate-bytecode-expectations. Runtime errors will be suppressed in --rebaseline mode, unless the --verbose flag is passed. The reasoning behind (rebaseline && !verbose) and not just (verbose) is to suppress harmless noise while updating the expectation for existing, known good snippets, without hiding actually relevant errors when the tool is used to write new expectation files. In fact, some tests are supposed to produce a runtime error, which might nevertheless alarm a developer who is just --rebaseline'ing. BUG=v8:4280 LOG=N Committed: https://crrev.com/dc71deb077a5e2cfe381aa0b8bbc4b9fe324d787 Cr-Commit-Position: refs/heads/master@{#34385}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make the suppression condition more readable. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M test/cctest/interpreter/generate-bytecode-expectations.cc View 1 3 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
Stefano Sanfilippo
As discussed, here is a patch to suppress error messages when rebaselining. PTAL.
4 years, 10 months ago (2016-02-26 16:51:58 UTC) #3
rmcilroy
LGTM with one suggestion, thanks. https://codereview.chromium.org/1742723003/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1742723003/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode538 test/cctest/interpreter/generate-bytecode-expectations.cc:538: options.rebaseline() && !options.verbose() ? ...
4 years, 10 months ago (2016-02-26 16:57:58 UTC) #5
Stefano Sanfilippo
https://codereview.chromium.org/1742723003/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc File test/cctest/interpreter/generate-bytecode-expectations.cc (right): https://codereview.chromium.org/1742723003/diff/1/test/cctest/interpreter/generate-bytecode-expectations.cc#newcode538 test/cctest/interpreter/generate-bytecode-expectations.cc:538: options.rebaseline() && !options.verbose() ? PrintMessage On 2016/02/26 16:57:58, rmcilroy ...
4 years, 10 months ago (2016-02-26 17:01:06 UTC) #6
Michael Starzinger
LGTM.
4 years, 9 months ago (2016-03-01 09:05:34 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1742723003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1742723003/20001
4 years, 9 months ago (2016-03-01 10:25:23 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-01 10:42:00 UTC) #12
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 10:43:29 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/dc71deb077a5e2cfe381aa0b8bbc4b9fe324d787
Cr-Commit-Position: refs/heads/master@{#34385}

Powered by Google App Engine
This is Rietveld 408576698