Description[ignition] Only initialize [[HomeObject]] for class constructors if needed
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}
Committed: https://chromium.googlesource.com/v8/v8/+/3e20d381eddec3198ef0de790f099bd0c08bbb33
Patch Set 1 #
Total comments: 6
Patch Set 2 : Review comments #Patch Set 3 : Fix bytecode expectations #
Total comments: 1
Messages
Total messages: 20 (12 generated)
|