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
Messages
Total messages: 64 (49 generated)
|