Description[es6] Better support for built-ins subclassing.
Create proper initial map for original constructor (new.target) instead of doing prototype transition on the base constructor's initial map. This approach fixes in-object slack tracking for subclass instances.
This CL also fixes subclassing from String.
BUG=v8:3101, v8:3330
LOG=Y
Committed: https://crrev.com/cd5f48302a502154a0106d12e3066bd563c6340c
Cr-Commit-Position: refs/heads/master@{#31680}
Patch Set 1 #
Total comments: 8
Patch Set 2 : Addressed comments + ports #Patch Set 3 : Rebase #Patch Set 4 : Map::CopyInitialMap() added #Patch Set 5 : Arm and ia32 issues fixed #Patch Set 6 : Avoid crashes in case of Function subclassing #
Total comments: 2
Patch Set 7 : Comments addressed, test updated #Patch Set 8 : Test cleanup #
Dependent Patchsets: Messages
Total messages: 56 (29 generated)
|