• kmillikin@chromium.org's avatar
    Partial fix for V8 issue 1079. · f1149734
    kmillikin@chromium.org authored
    Record a safepoint with a deoptimization id for throw in optimized code.  We
    don't seem to much care what the AST ID is because we will not be using it
    for lazy deoptimization (throw doesn't return to the point of throw).  For
    hygiene we use the actual ID of the throw expression.  Throw is no longer a
    control-flow instruction, but it's followed by an unconditional abnormal
    exit.  This is required to insert a simulate between the throw and the exit.
    
    Make our optimized treatment of Function.prototype.apply act like a call and
    have side effects.  This ensures that it will get a lazy deoptimization
    environment.  Use that deoptimization ID in the safepoint for the call.
    
    Deleting a property was also missing a deoptimization ID, though there was a
    deoptimization environment assigned to the instruction.  Record the
    environment and use the deoptimization ID at the safepoint.
    
    Review URL: http://codereview.chromium.org/6250105
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6576 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    f1149734
deoptimizer.h 15.3 KB