• svenpanne@chromium.org's avatar
    Instance-type-related fixes and cleanup. · f0305bd8
    svenpanne@chromium.org authored
    Things got quite a bit out of sync (don't we all love copy-n-paste?):
    
       * TypeToString didn't handle SLICED_STRING_TYPE,
         SLICED_ASCII_STRING_TYPE, FIXED_DOUBLE_ARRAY_TYPE,
         JS_FUNCTION_PROXY_TYPE and JS_DATE_TYPE.
    
       * INSTANCE_TYPE_LIST was missing entries for
         SLICED_ASCII_STRING_TYPE, JS_SET_TYPE, and JS_MAP_TYPE.
    
    To improve this maintenance nightmare a little bit, the missing
    instance types were added to the INSTANCE_TYPE_LIST macro and this
    list is now used via our beloved 2nd order macro technique in
    TypeToString. As a side-effect, the strings returned by TypeToString
    have a "_TYPE" suffix now, but this doesn't really matter and is a
    small price to pay for consistency.
    
    Removed INVALID_TYPE on the way, it had no real use.
    
    R=mstarzinger@chromium.org
    
    Review URL: https://codereview.chromium.org/22681004
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16120 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    f0305bd8
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
preparser Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS 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...