• fpizlo@apple.com's avatar
    It should be possible to hijack IndexingHeader for things other than lengths · 85eb7df9
    fpizlo@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=119065
    
    Reviewed by Mark Hahnenberg.
            
    Made the body of IndexingHeader be a union.
            
    Modified the offlineasm so that you can say IndexingHeader::u.lengths.publicLength.
    Previously those dots would cause parse errors. Now an identifier in offlineasm can
    have a dot anywhere except the first character.
    
    * llint/LowLevelInterpreter32_64.asm:
    * llint/LowLevelInterpreter64.asm:
    * offlineasm/parser.rb:
    * runtime/IndexingHeader.h:
    (JSC::IndexingHeader::offsetOfPublicLength):
    (JSC::IndexingHeader::offsetOfVectorLength):
    (JSC::IndexingHeader::IndexingHeader):
    (JSC::IndexingHeader::vectorLength):
    (JSC::IndexingHeader::setVectorLength):
    (JSC::IndexingHeader::publicLength):
    (JSC::IndexingHeader::setPublicLength):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@153104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    85eb7df9