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

Issue 1407313004: Adds the possibility of setting a Code object as the callback of a FunctionTemplate. (Closed)

Created:
5 years, 1 month ago by epertoso
Modified:
5 years ago
CC:
Paweł Hajdan Jr., v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Adds the possibility of setting a Code object as the callback of a FunctionTemplate. BUG= Committed: https://crrev.com/4307e448997d4a5ab6f4f0bd1216e7910177fa3f Cr-Commit-Position: refs/heads/master@{#32213}

Patch Set 1 #

Patch Set 2 : Update #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : Update. #

Total comments: 4

Patch Set 5 : Update. #

Total comments: 8

Patch Set 6 : Update with ia32, mips, mips64, arm, arm64. #

Patch Set 7 : Update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1144 lines, -27 lines) Patch
M build/features.gypi View 1 2 3 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M include/v8.h View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M src/api.cc View 1 2 3 4 5 6 7 chunks +30 lines, -7 lines 0 comments Download
M src/api-natives.cc View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 1 chunk +120 lines, -0 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 5 6 1 chunk +120 lines, -0 lines 0 comments Download
M src/builtins.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 6 1 chunk +128 lines, -0 lines 0 comments Download
M src/ic/arm/handler-compiler-arm.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/ic/arm64/handler-compiler-arm64.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/ic/ia32/handler-compiler-ia32.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M src/ic/mips/handler-compiler-mips.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/ic/mips64/handler-compiler-mips64.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/ic/ppc/handler-compiler-ppc.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M src/ic/x64/handler-compiler-x64.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M src/ic/x87/handler-compiler-x87.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 5 6 1 chunk +118 lines, -0 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 6 1 chunk +118 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/ppc/builtins-ppc.cc View 1 2 3 4 5 6 1 chunk +122 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 5 6 1 chunk +128 lines, -0 lines 0 comments Download
M src/x87/builtins-x87.cc View 1 2 3 4 5 6 1 chunk +128 lines, -0 lines 0 comments Download
M test/cctest/test-api-accessors.cc View 1 2 3 4 5 6 4 chunks +43 lines, -14 lines 0 comments Download

Messages

Total messages: 41 (16 generated)
vogelheim
This looks really nice; certainly much nicer than my initial stab at that problem. The ...
5 years, 1 month ago (2015-11-10 00:44:24 UTC) #2
epertoso
On 2015/11/10 at 00:44:24, vogelheim wrote: > This looks really nice; certainly much nicer than ...
5 years, 1 month ago (2015-11-10 17:36:17 UTC) #3
jochen (gone - plz use gerrit)
can you split the revert of the old api and the addition of the new ...
5 years, 1 month ago (2015-11-10 19:52:35 UTC) #5
epertoso
On 2015/11/10 at 19:52:35, jochen wrote: > can you split the revert of the old ...
5 years, 1 month ago (2015-11-10 20:40:19 UTC) #6
jochen (gone - plz use gerrit)
lgtm
5 years, 1 month ago (2015-11-11 07:55:25 UTC) #9
epertoso
Benedikt, could you take a look at this CL and see if there's anything wrong ...
5 years, 1 month ago (2015-11-11 17:37:09 UTC) #12
Benedikt Meurer
We should probably consider wrapping the Code object into something Callable or find another suitable ...
5 years, 1 month ago (2015-11-12 04:31:21 UTC) #15
epertoso
https://codereview.chromium.org/1407313004/diff/60001/src/execution.cc File src/execution.cc (right): https://codereview.chromium.org/1407313004/diff/60001/src/execution.cc#newcode139 src/execution.cc:139: bool is_callback = false; On 2015/11/12 at 04:31:21, Benedikt ...
5 years, 1 month ago (2015-11-13 01:39:28 UTC) #16
Benedikt Meurer
So Toon told me that he suggested a LazyAccessorPair mechanism earlier, which seems to address ...
5 years, 1 month ago (2015-11-13 05:41:25 UTC) #17
Toon Verwaest
I'm glad that the objects.cc change was a stray change :) https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc File src/execution.cc (right): ...
5 years, 1 month ago (2015-11-13 09:55:49 UTC) #18
epertoso
https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc File src/execution.cc (right): https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc#newcode145 src/execution.cc:145: !CallHandlerInfo::cast(call_code)->callback()->IsCode()) { On 2015/11/13 at 09:55:49, Toon Verwaest wrote: ...
5 years, 1 month ago (2015-11-13 19:06:10 UTC) #19
Benedikt Meurer
https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc File src/execution.cc (right): https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc#newcode145 src/execution.cc:145: !CallHandlerInfo::cast(call_code)->callback()->IsCode()) { I think there should always be a ...
5 years, 1 month ago (2015-11-16 04:43:56 UTC) #20
epertoso
https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc File src/execution.cc (right): https://codereview.chromium.org/1407313004/diff/80001/src/execution.cc#newcode145 src/execution.cc:145: !CallHandlerInfo::cast(call_code)->callback()->IsCode()) { On 2015/11/16 at 04:43:55, Benedikt Meurer wrote: ...
5 years, 1 month ago (2015-11-17 10:32:43 UTC) #22
Benedikt Meurer
Thanks. LGTM from my side.
5 years, 1 month ago (2015-11-17 10:34:27 UTC) #23
Toon Verwaest
lgtm with nit https://codereview.chromium.org/1407313004/diff/120001/src/api-natives.cc File src/api-natives.cc (right): https://codereview.chromium.org/1407313004/diff/120001/src/api-natives.cc#newcode443 src/api-natives.cc:443: !handle(CallHandlerInfo::cast(obj->call_code())) Why is this wrapped in ...
5 years, 1 month ago (2015-11-18 08:51:46 UTC) #24
vogelheim
lgtm. More nitpicks, though. :) https://codereview.chromium.org/1407313004/diff/120001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1407313004/diff/120001/include/v8.h#newcode4428 include/v8.h:4428: Isolate* isolate, Local<Value> fast_handler, ...
5 years, 1 month ago (2015-11-18 17:30:05 UTC) #25
epertoso
Resolved the comments and added a few other archs. https://codereview.chromium.org/1407313004/diff/120001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1407313004/diff/120001/include/v8.h#newcode4428 include/v8.h:4428: ...
5 years, 1 month ago (2015-11-20 15:27:14 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407313004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407313004/180001
5 years ago (2015-11-24 10:49:01 UTC) #32
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-11-24 11:30:43 UTC) #34
epertoso
bmeurer@, verwaest@: does this still LGTY?
5 years ago (2015-11-24 13:57:37 UTC) #35
Benedikt Meurer
Yep.
5 years ago (2015-11-24 14:05:10 UTC) #36
Toon Verwaest
lgtm
5 years ago (2015-11-24 14:29:52 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407313004/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407313004/180001
5 years ago (2015-11-24 14:31:02 UTC) #39
commit-bot: I haz the power
Committed patchset #7 (id:180001)
5 years ago (2015-11-24 14:32:45 UTC) #40
commit-bot: I haz the power
5 years ago (2015-11-24 14:33:28 UTC) #41
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/4307e448997d4a5ab6f4f0bd1216e7910177fa3f
Cr-Commit-Position: refs/heads/master@{#32213}

Powered by Google App Engine
This is Rietveld 408576698