• mvstanton's avatar
    Reland Store OSR'd optimized code on the native context. · 044b2d1b
    mvstanton authored
    The patch was reverted due to a bug - we failed to evict OSR-optimized
    code in the case where the SharedFunctionInfo OptimizedCodeMap was
    empty/cleared.
    
    Since we OSR code rarely, it makes sense to store it and look for it on the native context rather than the SharedFunctionInfo. This makes the OptimizedCodeMap data structure more space efficient, as it doesn't have to store an ast ID for the OSR entry point.
    
    Review-Url: https://codereview.chromium.org/2561083002
    Cr-Commit-Position: refs/heads/master@{#41584}
    044b2d1b
contexts-inl.h 4.16 KB