• ssanfilippo's avatar
    [Interpreter] Print constant pool in generate-bytecode-expectations · db52dbbb
    ssanfilippo authored
    This is a follow-up to https://crrev.com/1671863002, adding the
    capability to print the contents of the constant pool. The expected
    type of the pool is taken from command line, and it's either:
    
    * string/int/double: assume all constants have the specified type.
      This way, we can emit a meaningful representation, e.g. a quoted
      string for type string and so on. All the constants in the pool must
      have the same type, otherwise one or more CHECK() will fail and the
      program will eventually crash.
    
    * mixed: print the InstanceType tag instead of the actual value.
      This is the choice for those tests where the type of the constants in
      the pool is not uniform, however only a type tag is printed, not the
      actual value of the entries. SMIs are an exception, since they do not
      have an InstanceType tag, so kInstanceTypeDontCare is printed instead.
    
    In addition to that, functions Print{ExpectedSnippet,BytecodeSequence}
    have been extracted with no functional change. It's just for improving
    readability, since the code is becoming quite long.
    
    BUG=v8:4280
    LOG=N
    
    Review URL: https://codereview.chromium.org/1686963002
    
    Cr-Commit-Position: refs/heads/master@{#33888}
    db52dbbb
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...