• adamk's avatar
    [ignition] Only initialize [[HomeObject]] for class constructors if needed · 3e20d381
    adamk authored
    This moves the initialization of [[HomeObject]] for constructors from
    the %DefineClass runtime function into the bytecode generator, and
    makes it conditional (resolving an old TODO). As part of this refactor,
    avoid a load of "prototype" by returning the class prototype from
    %DefineClass.
    
    This is one of many steps in moving more of class definition into
    bytecode.
    
    R=rmcilroy@chromium.org
    
    Review-Url: https://codereview.chromium.org/2610683003
    Cr-Commit-Position: refs/heads/master@{#42072}
    3e20d381
runtime-classes.cc 18.1 KB