• 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
objects.h 379 KB