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

Issue 1540953004: [runtime] Rewrite Function.prototype.toString in C++. (Closed)

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

Description

[runtime] Rewrite Function.prototype.toString in C++. There's actually no point trying to do Function.prototype.toString in JavaScript, as it always calls into C++ at least once, so it only complicates things (esp. once we start optimizing bound functions). Drive-by-fix: Rename FunctionApply and FunctionCall builtins to also reflect the fact that these are builtins in the Function.prototype and not on Function itself. TBR=hpayer@chromium.org R=yangguo@chromium.org BUG=chromium:535408 LOG=n Committed: https://crrev.com/4acca53e62cdfe6f3c495c87ca7d3c8fe1059f01 Cr-Commit-Position: refs/heads/master@{#32996}

Patch Set 1 #

Patch Set 2 : Fix typos. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -471 lines) Patch
M src/arm/builtins-arm.cc View 1 2 chunks +45 lines, -44 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 chunks +50 lines, -47 lines 0 comments Download
M src/bootstrapper.cc View 2 chunks +8 lines, -19 lines 0 comments Download
M src/builtins.h View 3 chunks +6 lines, -4 lines 0 comments Download
M src/builtins.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M src/debug/mirrors.js View 3 chunks +1 line, -3 lines 2 comments Download
M src/elements.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/heap/heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 2 chunks +48 lines, -47 lines 0 comments Download
M src/js/messages.js View 3 chunks +1 line, -3 lines 0 comments Download
M src/js/prologue.js View 1 chunk +0 lines, -1 line 0 comments Download
M src/js/v8natives.js View 3 chunks +0 lines, -52 lines 0 comments Download
M src/mips/builtins-mips.cc View 2 chunks +46 lines, -45 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 2 chunks +46 lines, -45 lines 0 comments Download
M src/objects.h View 1 chunk +4 lines, -0 lines 0 comments Download
M src/objects.cc View 1 chunk +72 lines, -0 lines 0 comments Download
M src/profiler/profile-generator.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M src/runtime/runtime.h View 3 chunks +27 lines, -32 lines 0 comments Download
M src/runtime/runtime-classes.cc View 1 chunk +0 lines, -25 lines 0 comments Download
M src/runtime/runtime-function.cc View 4 chunks +8 lines, -37 lines 0 comments Download
M src/runtime/runtime-generator.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/x64/builtins-x64.cc View 2 chunks +52 lines, -52 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Benedikt Meurer
5 years ago (2015-12-22 05:58:37 UTC) #1
Benedikt Meurer
Hey Yang, First part of yak shaving for Function.prototype.bind: Moving Function.prototype.toString to C++, so we ...
5 years ago (2015-12-22 06:01:11 UTC) #3
Yang
awesome. lgtm with comment. https://codereview.chromium.org/1540953004/diff/20001/src/debug/mirrors.js File src/debug/mirrors.js (right): https://codereview.chromium.org/1540953004/diff/20001/src/debug/mirrors.js#newcode939 src/debug/mirrors.js:939: return %FunctionToString(this.value_); Alternatively, you could ...
5 years ago (2015-12-22 06:19:22 UTC) #4
Benedikt Meurer
https://codereview.chromium.org/1540953004/diff/20001/src/debug/mirrors.js File src/debug/mirrors.js (right): https://codereview.chromium.org/1540953004/diff/20001/src/debug/mirrors.js#newcode939 src/debug/mirrors.js:939: return %FunctionToString(this.value_); As per offline discussion: This doesn't work ...
5 years ago (2015-12-22 06:30:35 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1540953004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1540953004/20001
5 years ago (2015-12-22 06:30:49 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years ago (2015-12-22 06:32:54 UTC) #9
commit-bot: I haz the power
5 years ago (2015-12-22 06:33:50 UTC) #11
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4acca53e62cdfe6f3c495c87ca7d3c8fe1059f01
Cr-Commit-Position: refs/heads/master@{#32996}

Powered by Google App Engine
This is Rietveld 408576698