• sgjesse@chromium.org's avatar
    Add support for lazy deoptimization from deferred stack checks · 10bb16f4
    sgjesse@chromium.org authored
    The debugger can be entered from the deferred stack check in optimized code. This can cause both lazy deoptimization and debugger deoptimization (setting the first break point and inspecting the stack for optimized code respectively). This required deoptimization support from the deferred stack check.
    
    The lazy deoptimiztion call is inserted when the deferred code is done including restoring the registers. The bailout to the full code is the begining of the loop body as that is where the stack check is sitting in the optimized code. The bailout is not to the stack check in the full code as that is sitting at the end of the loop.
    
    R=kmillikin@chromium.org
    
    BUG=none
    TEST=none
    
    Review URL: http://codereview.chromium.org//7212025
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8535 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    10bb16f4
test-debug.cc 240 KB