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

Issue 1217603005: [es6] Function bind should preserve [[Prototype]] (Closed)

Created:
5 years, 5 months ago by arv (Not doing code reviews)
Modified:
5 years, 5 months ago
Reviewers:
adamk, Toon Verwaest
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[es6] Function bind should preserve [[Prototype]] The function returned from Function.prototype.bind should have the same [[Prototype]] as the receiver. BUG=v8:3889 LOG=N R=adamk@chromium.org, verwaest@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_chromium_rel_ng;tryserver.blink:linux_blink_rel Committed: https://crrev.com/66f5779c5b0d5aafeea3140bc7bc1ad8c7803971 Cr-Commit-Position: refs/heads/master@{#29556}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use Map::TransitionToPrototype instead #

Patch Set 3 : Add test for same map #

Total comments: 2

Patch Set 4 : Only transition map to prototype if the prototype is not already correct #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M src/runtime/runtime-function.cc View 1 2 3 1 chunk +9 lines, -0 lines 0 comments Download
M test/mjsunit/function-bind.js View 1 2 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
arv (Not doing code reviews)
PTAL
5 years, 5 months ago (2015-07-01 19:25:10 UTC) #1
adamk
https://codereview.chromium.org/1217603005/diff/1/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/1217603005/diff/1/src/runtime/runtime-function.cc#newcode448 src/runtime/runtime-function.cc:448: Handle<Map> bound_function_map = Map::Copy( Forcing map creation here seems ...
5 years, 5 months ago (2015-07-01 19:31:55 UTC) #2
arv (Not doing code reviews)
Use Map::TransitionToPrototype instead
5 years, 5 months ago (2015-07-01 19:45:17 UTC) #3
arv (Not doing code reviews)
Add test for same map
5 years, 5 months ago (2015-07-01 19:48:36 UTC) #4
arv (Not doing code reviews)
https://codereview.chromium.org/1217603005/diff/1/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/1217603005/diff/1/src/runtime/runtime-function.cc#newcode448 src/runtime/runtime-function.cc:448: Handle<Map> bound_function_map = Map::Copy( On 2015/07/01 19:31:55, adamk wrote: ...
5 years, 5 months ago (2015-07-01 19:51:21 UTC) #5
adamk
lgtm
5 years, 5 months ago (2015-07-01 20:12:41 UTC) #6
arv (Not doing code reviews)
Toon, can you take a look at this too?
5 years, 5 months ago (2015-07-07 15:40:29 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1217603005/40001
5 years, 5 months ago (2015-07-07 15:40:33 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/82862)
5 years, 5 months ago (2015-07-07 17:15:13 UTC) #11
Toon Verwaest
lgtm with comment https://codereview.chromium.org/1217603005/diff/40001/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/1217603005/diff/40001/src/runtime/runtime-function.cc#newcode449 src/runtime/runtime-function.cc:449: Handle<Map> bound_function_map = Map::TransitionToPrototype( I guess ...
5 years, 5 months ago (2015-07-08 16:31:33 UTC) #12
arv (Not doing code reviews)
Thanks https://codereview.chromium.org/1217603005/diff/40001/src/runtime/runtime-function.cc File src/runtime/runtime-function.cc (right): https://codereview.chromium.org/1217603005/diff/40001/src/runtime/runtime-function.cc#newcode449 src/runtime/runtime-function.cc:449: Handle<Map> bound_function_map = Map::TransitionToPrototype( On 2015/07/08 16:31:33, Toon ...
5 years, 5 months ago (2015-07-08 16:37:01 UTC) #13
arv (Not doing code reviews)
Only transition map to prototype if the prototype is not already correct
5 years, 5 months ago (2015-07-09 15:04:47 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1217603005/60001
5 years, 5 months ago (2015-07-09 15:05:16 UTC) #17
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-09 15:48:56 UTC) #18
commit-bot: I haz the power
5 years, 5 months ago (2015-07-09 15:49:21 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/66f5779c5b0d5aafeea3140bc7bc1ad8c7803971
Cr-Commit-Position: refs/heads/master@{#29556}

Powered by Google App Engine
This is Rietveld 408576698