• mstarzinger's avatar
    [compiler] Improve contract for Compiler::CompileDebugCode. · 80b98da2
    mstarzinger authored
    This changes the contract for the aforementioned API function to be more
    permissive and allow callers to call it with less restrictions. The new
    contract is:
    
    a) For so far un-compiled functions, the compiler is free to choose the
       backend according to other decision criteria. Debug code can hence be
       provided by either Ignition or FullCodegen.
    b) For compiled functions, the compiler will provide debug code within
       the same tier as existing code. For Ignition the generated code will
       be equivalent to the old one. For FullCodegen the code will contain
       debug information and debug break slots.
    
    Concretely this fixes an issue where generator or async functions might
    have been compiled with an unexpected backend, due to the fact that the
    API method in question was always providing FullCodegen code.
    
    R=yangguo@chromium.org
    
    Review-Url: https://codereview.chromium.org/2044063002
    Cr-Commit-Position: refs/heads/master@{#36808}
    80b98da2
Name
Last commit
Last update
..
arm Loading commit data...
arm64 Loading commit data...
ia32 Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc Loading commit data...
s390 Loading commit data...
x64 Loading commit data...
x87 Loading commit data...
OWNERS Loading commit data...
debug-evaluate.cc Loading commit data...
debug-evaluate.h Loading commit data...
debug-frames.cc Loading commit data...
debug-frames.h Loading commit data...
debug-scopes.cc Loading commit data...
debug-scopes.h Loading commit data...
debug.cc Loading commit data...
debug.h Loading commit data...
debug.js Loading commit data...
liveedit.cc Loading commit data...
liveedit.h Loading commit data...
liveedit.js Loading commit data...
mirrors.js Loading commit data...