• oth's avatar
    [interpreter] Move temporary register allocator into own file. · ef93854a
    oth authored
    Moves the temporary register allocator out of the bytecode array
    builder into TemporaryRegisterAllocator class and adds unittests.
    Particular must be taken around the translation window boundary
    motivating the addition of tests.
    
    Also adds a Clear() method to IdentityMap() which is called by
    the destructor. This allows classes to hold an IdentityMap if
    they are zone allocated. Classes must call Clear() before the zone
    is re-cycled or face v8 heap corruption.
    
    BUG=v8:4280,v8:4675
    LOG=N
    
    Review URL: https://codereview.chromium.org/1651133002
    
    Cr-Commit-Position: refs/heads/master@{#33686}
    ef93854a
bytecodes.cc 15.6 KB