Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(451)

Issue 1510753005: Fix Function subclassing. (Closed)

Created:
5 years ago by Igor Sheludko
Modified:
5 years ago
Reviewers:
ulan, Toon Verwaest
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix Function subclassing. Function subclasses did not have function properties installed (name, prototype, etc.). Now when an instance of a Function subclass is created it gets initial map that corresponds to the language mode of the function body. The language mode dependent maps are cached as special transitions on initial map of the subclass constructor. BUG=v8:4597, v8:3101, v8:3330 LOG=Y Committed: https://crrev.com/dddcd0ac17be9e24df15fc6ae4993f2b75bc256d Cr-Commit-Position: refs/heads/master@{#32764}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Addressing comments #

Total comments: 4

Patch Set 3 : Addressing comments #

Patch Set 4 : Rebased and updated reflect-construct test #

Total comments: 7

Patch Set 5 : Adressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -51 lines) Patch
M src/bootstrapper.cc View 1 2 3 2 chunks +16 lines, -6 lines 0 comments Download
M src/heap/heap.h View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M src/objects.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 2 chunks +60 lines, -1 line 0 comments Download
M src/objects-printer.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M src/runtime/runtime-function.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M src/transitions-inl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M test/mjsunit/es6/classes-subclass-builtins.js View 1 2 3 4 3 chunks +128 lines, -39 lines 0 comments Download
M test/mjsunit/harmony/reflect-construct.js View 1 2 3 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (13 generated)
Igor Sheludko
PTAL
5 years ago (2015-12-08 15:09:49 UTC) #2
Toon Verwaest
looking good. https://codereview.chromium.org/1510753005/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1510753005/diff/1/src/objects.cc#newcode9203 src/objects.cc:9203: function_map = isolate->sloppy_function_map(); What about making the ...
5 years ago (2015-12-08 20:01:08 UTC) #4
Toon Verwaest
Looking good. I'm pretty sure it works, but could you please add a test to ...
5 years ago (2015-12-09 21:40:03 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1510753005/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1510753005/100001
5 years ago (2015-12-10 10:50:17 UTC) #9
Igor Sheludko
PTAL again. https://codereview.chromium.org/1510753005/diff/1/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1510753005/diff/1/src/objects.cc#newcode9203 src/objects.cc:9203: function_map = isolate->sloppy_function_map(); On 2015/12/08 20:01:08, Toon ...
5 years ago (2015-12-10 10:50:41 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-10 11:16:44 UTC) #12
Toon Verwaest
lgtm https://codereview.chromium.org/1510753005/diff/100001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1510753005/diff/100001/src/bootstrapper.cc#newcode1097 src/bootstrapper.cc:1097: native_context()->strong_function_map()->SetConstructor(*function_function); I think we can drop the special ...
5 years ago (2015-12-10 13:10:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1510753005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1510753005/120001
5 years ago (2015-12-10 16:25:15 UTC) #16
Igor Sheludko
https://codereview.chromium.org/1510753005/diff/100001/src/objects.cc File src/objects.cc (right): https://codereview.chromium.org/1510753005/diff/100001/src/objects.cc#newcode9289 src/objects.cc:9289: default: On 2015/12/10 13:10:54, Toon Verwaest wrote: > case ...
5 years ago (2015-12-10 16:39:47 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: v8_presubmit on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_presubmit/builds/8812)
5 years ago (2015-12-10 17:08:18 UTC) #19
ulan
heap lgtm
5 years ago (2015-12-10 17:21:09 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1510753005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1510753005/120001
5 years ago (2015-12-10 17:26:14 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:120001)
5 years ago (2015-12-10 17:27:49 UTC) #25
commit-bot: I haz the power
5 years ago (2015-12-10 17:28:14 UTC) #27
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/dddcd0ac17be9e24df15fc6ae4993f2b75bc256d
Cr-Commit-Position: refs/heads/master@{#32764}

Powered by Google App Engine
This is Rietveld 408576698