• sgjesse@chromium.org's avatar
    Remove the different length string types · eb4d261e
    sgjesse@chromium.org authored
    The different length string types was used to encode the string length and the hash in one field. This is now split into two fields one for length and one for hash. The hash field still encodes the array index of the string if it has one. If an array index is encoded in the hash field the string length is added to the top bits of the hash field to avoid a hash value of zero.
    
    On 32-bit this causes an additional 4 bytes to be used for all string objects. On 64-bit this will be half on average dur to pointer alignment.
    Review URL: http://codereview.chromium.org/436001
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3350 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    eb4d261e
utils.h 16.6 KB