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

Issue 2654733004: [tests] Make assertOptimized()/assertUnoptimized() great again. (Closed)

Created:
3 years, 11 months ago by Igor Sheludko
Modified:
3 years, 10 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[tests] Make assertOptimized()/assertUnoptimized() great again. The mentioned asserts did not work properly with interpreted and turbofanned functions. To fix this issue %GetOptimizationStatus() now returns a set of flags instead of a single value. This CL also adds more helper functions to mjsunit, like isNeverOptimize(), isAlwaysOptimize(), isOptimized(fun), etc. BUG=v8:5890 Review-Url: https://codereview.chromium.org/2654733004 Cr-Original-Commit-Position: refs/heads/master@{#42703} Committed: https://chromium.googlesource.com/v8/v8/+/d1ddec785725a184fe6d01bd0813262e3ba24966 Review-Url: https://codereview.chromium.org/2654733004 Cr-Commit-Position: refs/heads/master@{#42731} Committed: https://chromium.googlesource.com/v8/v8/+/4a5446fb2b50ef4756117135a6f18fb0c7309852

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix #

Patch Set 3 : Cleanup and added --no-always-opt #

Patch Set 4 : Add explicit --crankshaft to tests that relies on isNeverOptimize() and workaround assertOptimized() #

Patch Set 5 : Update debugger.status #

Total comments: 11

Patch Set 6 : Addressing comments #

Total comments: 1

Patch Set 7 : Rebasing for relanding #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -107 lines) Patch
M src/compiler.cc View 1 2 3 4 5 6 1 chunk +6 lines, -5 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M src/runtime/runtime-test.cc View 2 chunks +17 lines, -16 lines 0 comments Download
M test/cctest/test-api-interceptors.cc View 1 2 3 4 5 3 chunks +6 lines, -1 line 0 comments Download
M test/debugger/debugger.status View 1 2 3 4 5 6 1 chunk +0 lines, -6 lines 0 comments Download
M test/mjsunit/assert-opt-and-deopt.js View 1 2 3 4 5 4 chunks +9 lines, -28 lines 0 comments Download
M test/mjsunit/compiler/concurrent-proto-change.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M test/mjsunit/es6/array-iterator-turbo.js View 1 2 3 4 5 6 4 chunks +20 lines, -23 lines 0 comments Download
M test/mjsunit/mjsunit.js View 1 2 3 4 5 6 2 chunks +103 lines, -2 lines 2 comments Download
M test/mjsunit/regress/regress-2132.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-594183.js View 1 2 3 4 5 6 1 chunk +5 lines, -1 line 0 comments Download
M test/mjsunit/regress/regress-v8-5697.js View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M test/mjsunit/shared-function-tier-up-default.js View 1 2 3 4 5 6 2 chunks +6 lines, -7 lines 0 comments Download
M test/mjsunit/shared-function-tier-up-ignition.js View 1 2 3 4 5 6 2 chunks +9 lines, -9 lines 0 comments Download
M test/mjsunit/shared-function-tier-up-turbo.js View 1 2 3 4 5 6 2 chunks +6 lines, -7 lines 0 comments Download
M test/mjsunit/shift-for-integer-div.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 64 (49 generated)
Igor Sheludko
PTAL https://codereview.chromium.org/2654733004/diff/60001/test/mjsunit/regress/regress-crbug-594183.js File test/mjsunit/regress/regress-crbug-594183.js (right): https://codereview.chromium.org/2654733004/diff/60001/test/mjsunit/regress/regress-crbug-594183.js#newcode5 test/mjsunit/regress/regress-crbug-594183.js:5: // Flags: --allow-natives-syntax --no-turbo TF is not sophisticated ...
3 years, 11 months ago (2017-01-25 11:38:42 UTC) #5
Michael Starzinger
Cool stuff, I like it, just a bunch smallish comments. https://codereview.chromium.org/2654733004/diff/60001/test/mjsunit/regress/regress-crbug-594183.js File test/mjsunit/regress/regress-crbug-594183.js (right): https://codereview.chromium.org/2654733004/diff/60001/test/mjsunit/regress/regress-crbug-594183.js#newcode5 ...
3 years, 11 months ago (2017-01-26 12:24:52 UTC) #28
Michael Achenbach
https://codereview.chromium.org/2654733004/diff/130042/test/mjsunit/mjsunit.js File test/mjsunit/mjsunit.js (right): https://codereview.chromium.org/2654733004/diff/130042/test/mjsunit/mjsunit.js#newcode123 test/mjsunit/mjsunit.js:123: // These bits must be in sync with bits ...
3 years, 11 months ago (2017-01-26 13:05:18 UTC) #34
Igor Sheludko
https://codereview.chromium.org/2654733004/diff/60001/test/mjsunit/regress/regress-v8-5697.js File test/mjsunit/regress/regress-v8-5697.js (right): https://codereview.chromium.org/2654733004/diff/60001/test/mjsunit/regress/regress-v8-5697.js#newcode12 test/mjsunit/regress/regress-v8-5697.js:12: % OptimizeFunctionOnNextCall(load); On 2017/01/26 12:24:52, Michael Starzinger wrote: > ...
3 years, 11 months ago (2017-01-26 14:12:34 UTC) #37
Michael Starzinger
LGTM from my end. Thanks!
3 years, 11 months ago (2017-01-26 14:25:55 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2654733004/130042
3 years, 11 months ago (2017-01-26 14:33:27 UTC) #40
commit-bot: I haz the power
Committed patchset #6 (id:130042) as https://chromium.googlesource.com/v8/v8/+/d1ddec785725a184fe6d01bd0813262e3ba24966
3 years, 11 months ago (2017-01-26 14:35:35 UTC) #43
Michael Achenbach
A revert of this CL (patchset #6 id:130042) has been created in https://codereview.chromium.org/2655223003/ by machenbach@chromium.org. ...
3 years, 11 months ago (2017-01-26 15:04:25 UTC) #44
Michael Achenbach
On 2017/01/26 15:04:25, Michael Achenbach wrote: > A revert of this CL (patchset #6 id:130042) ...
3 years, 11 months ago (2017-01-26 15:17:22 UTC) #45
Michael Achenbach
Ignore the shell test runner flake. That one is still in after the revert: https://build.chromium.org/p/client.v8/builders/V8%20Mac%20-%20debug/builds/12190/steps/SimdJs%20-%20all%20%28flakes%29/logs/shell_test_runner
3 years, 11 months ago (2017-01-26 15:33:03 UTC) #46
Igor Sheludko
I'm sorry, I had to reshuffle the code a bit. This CL is mostly the ...
3 years, 11 months ago (2017-01-26 16:51:40 UTC) #48
Igor Sheludko
https://codereview.chromium.org/2654733004/diff/230001/test/mjsunit/mjsunit.js File test/mjsunit/mjsunit.js (right): https://codereview.chromium.org/2654733004/diff/230001/test/mjsunit/mjsunit.js#newcode514 test/mjsunit/mjsunit.js:514: if ((opt_status & V8OptimizationStatus.kMaybeDeopted) !== 0) { This case ...
3 years, 10 months ago (2017-01-27 09:33:06 UTC) #56
Michael Starzinger
Yep, patch set #7 still LGTM. https://codereview.chromium.org/2654733004/diff/230001/test/mjsunit/mjsunit.js File test/mjsunit/mjsunit.js (right): https://codereview.chromium.org/2654733004/diff/230001/test/mjsunit/mjsunit.js#newcode514 test/mjsunit/mjsunit.js:514: if ((opt_status & ...
3 years, 10 months ago (2017-01-27 10:10:25 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2654733004/230001
3 years, 10 months ago (2017-01-27 10:11:56 UTC) #61
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 10:14:00 UTC) #64
Message was sent while issue was closed.
Committed patchset #7 (id:230001) as
https://chromium.googlesource.com/v8/v8/+/4a5446fb2b50ef4756117135a6f18fb0c73...

Powered by Google App Engine
This is Rietveld 408576698