• Ross McIlroy's avatar
    Get BytecodeArray via current frame where possible. · 7350e7b2
    Ross McIlroy authored
    With BytecodeArray flushing the SFI->BytecodeArray pointer will become pseudo weak.
    Instead of getting the bytecode array from the SFI, get it from the frame instead
    (which is a strong pointer). Note: This won't actually change behaviour since the
    fact that the bytecode array was on the frame will retain it strongly, however it
    makes the contract that the BytecodeArray must exist at these points more explicit.
    
    Updates code in runtime-profiler.cc, frames.cc and runtime-test.cc to do this.
    
    BUG=v8:8395
    
    Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel
    Change-Id: Id7a3e6857abd0e89bf238e9b0b01de4461df54e1
    Reviewed-on: https://chromium-review.googlesource.com/c/1310193
    Commit-Queue: Ross McIlroy <rmcilroy@chromium.org>
    Reviewed-by: 's avatarMythri Alle <mythria@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#57198}
    7350e7b2
runtime-profiler.h 1.31 KB