• ssanfilippo's avatar
    [Interpreter] generate-bytecode-expectations improvements. · d2187182
    ssanfilippo authored
    A few options and features have been added to the tool:
    
    * an output file might be specified using --output=file.name
    * a shortcut when the output file is also the input, which is handy
       when fixing golden files, --rebaseline.
    * the input snippet might be optionally not wrapped in a top function,
       or not executed after compilation (--no-wrap and --no-execute).
    * the name of the wrapper can be configured using --wrapper-name=foo
    
    The same options can be configured via setters on the usual
    BytecodeExpectationsPrinter.
    
    The output file now includes all the relevant flags to reproduce it
    when running again through the tool (usually with --rebaseline).
    
    In particular, when running in --rebaseline mode, options from the
    file header will override options specified in the command line.
    
    A couple of other fixes and improvements:
    
    * description of the handlers is now emitted (closing the TODO).
    * the snippet is now correctly unquoted when double quotes are used.
    * special registers (closure, context etc.) are now emitted as such,
       instead of displaying their numeric value.
    * the tool can now process top level code as well.
    
    BUG=v8:4280
    LOG=N
    
    Review URL: https://codereview.chromium.org/1698403002
    
    Cr-Commit-Position: refs/heads/master@{#34152}
    d2187182
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
docs Loading commit data...
include Loading commit data...
infra Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
testing Loading commit data...
third_party/binutils Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.ycm_extra_conf.py Loading commit data...
AUTHORS Loading commit data...
BUILD.gn Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...
snapshot_toolchain.gni Loading commit data...