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

Issue 1910253005: [api] Expose FunctionCallbackInfo::NewTarget (Closed)

Created:
4 years, 8 months ago by adamk
Modified:
4 years, 7 months 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

[api] Expose FunctionCallbackInfo::NewTarget This is needed by Blink to implement the Custom Elements spec. BUG=v8:4261 LOG=y Committed: https://crrev.com/306c412ce04a7c21a208e33dfce530536453c20d Cr-Commit-Position: refs/heads/master@{#35833}

Patch Set 1 #

Total comments: 15

Patch Set 2 : Less duplication #

Patch Set 3 : Remove HandleApiCallConstruct #

Patch Set 4 : IsConstructCall refactor #

Total comments: 7

Patch Set 5 : Use normal Invoke path for HandleApiCall #

Patch Set 6 : Added ports #

Patch Set 7 : Added a TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -160 lines) Patch
M include/v8.h View 1 2 3 5 chunks +14 lines, -16 lines 0 comments Download
M src/api-arguments.h View 1 2 3 2 chunks +6 lines, -7 lines 0 comments Download
M src/api-arguments.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M src/arm/builtins-arm.cc View 1 2 3 4 5 1 chunk +3 lines, -10 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 2 3 4 5 4 chunks +8 lines, -7 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 5 1 chunk +3 lines, -10 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 2 3 4 5 4 chunks +14 lines, -9 lines 0 comments Download
M src/builtins.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M src/builtins.cc View 1 2 3 4 5 6 7 chunks +36 lines, -35 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 1 chunk +3 lines, -10 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 3 4 5 4 chunks +9 lines, -6 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 5 1 chunk +3 lines, -10 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 3 4 5 4 chunks +8 lines, -5 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 1 chunk +3 lines, -10 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 1 2 3 4 5 4 chunks +8 lines, -5 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 1 chunk +3 lines, -10 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 3 4 chunks +8 lines, -6 lines 0 comments Download
M test/cctest/test-api.cc View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
Benedikt Meurer
Some early comments. https://codereview.chromium.org/1910253005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1910253005/diff/1/include/v8.h#newcode3207 include/v8.h:3207: static const int kIsolateIndex = 1; ...
4 years, 8 months ago (2016-04-23 11:45:41 UTC) #2
Benedikt Meurer
https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc#newcode4481 src/builtins.cc:4481: Isolate* isolate, BuiltinArguments<BuiltinExtraArguments::kTarget> args) { You could change this ...
4 years, 8 months ago (2016-04-23 11:57:47 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc#newcode4481 src/builtins.cc:4481: Isolate* isolate, BuiltinArguments<BuiltinExtraArguments::kTarget> args) { On 2016/04/23 11:57:47, Benedikt ...
4 years, 8 months ago (2016-04-23 18:21:45 UTC) #4
adamk
Thanks for taking a look! https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc#newcode4481 src/builtins.cc:4481: Isolate* isolate, BuiltinArguments<BuiltinExtraArguments::kTarget> args) ...
4 years, 8 months ago (2016-04-25 18:53:40 UTC) #5
Benedikt Meurer
https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc File src/builtins.cc (right): https://codereview.chromium.org/1910253005/diff/1/src/builtins.cc#newcode4481 src/builtins.cc:4481: Isolate* isolate, BuiltinArguments<BuiltinExtraArguments::kTarget> args) { Sure, it's part of ...
4 years, 8 months ago (2016-04-25 19:02:00 UTC) #6
adamk
https://codereview.chromium.org/1910253005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1910253005/diff/1/include/v8.h#newcode3207 include/v8.h:3207: static const int kIsolateIndex = 1; On 2016/04/23 11:45:41, ...
4 years, 8 months ago (2016-04-25 22:59:55 UTC) #10
adamk
https://codereview.chromium.org/1910253005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1910253005/diff/1/include/v8.h#newcode3222 include/v8.h:3222: int is_construct_call_; On 2016/04/25 22:59:55, adamk wrote: > On ...
4 years, 8 months ago (2016-04-25 23:35:48 UTC) #11
Benedikt Meurer
https://codereview.chromium.org/1910253005/diff/1/include/v8.h File include/v8.h (right): https://codereview.chromium.org/1910253005/diff/1/include/v8.h#newcode3222 include/v8.h:3222: int is_construct_call_; On 2016/04/25 22:59:55, adamk wrote: > On ...
4 years, 8 months ago (2016-04-26 04:15:34 UTC) #12
Benedikt Meurer
Getting closer, looks like this allows for some awesome simplifications in various places :-) https://codereview.chromium.org/1910253005/diff/80001/src/builtins.cc ...
4 years, 8 months ago (2016-04-26 04:21:34 UTC) #13
adamk
Added ports, though the mips ones look a bit odd (I added TODOs where they ...
4 years, 8 months ago (2016-04-26 18:17:14 UTC) #14
Benedikt Meurer
I think this is LGTM for the feature, thanks. It would be nice to do ...
4 years, 8 months ago (2016-04-26 18:28:41 UTC) #15
adamk
Thanks for the review. I agree there's more cleanup to do here. Was "fun" to ...
4 years, 8 months ago (2016-04-26 18:34:35 UTC) #16
Benedikt Meurer
On 2016/04/26 18:34:35, adamk wrote: > Thanks for the review. I agree there's more cleanup ...
4 years, 8 months ago (2016-04-26 18:37:01 UTC) #17
adamk
Jochen, does the additional API method look OK to you?
4 years, 8 months ago (2016-04-26 18:54:23 UTC) #18
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-04-27 12:06:19 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1910253005/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1910253005/140001
4 years, 7 months ago (2016-04-27 18:04:03 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 7 months ago (2016-04-27 18:07:28 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-01 22:01:28 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/306c412ce04a7c21a208e33dfce530536453c20d
Cr-Commit-Position: refs/heads/master@{#35833}

Powered by Google App Engine
This is Rietveld 408576698