• 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...
cctest Loading commit data...
fuzzer Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...