[fastcall] Support FastApiCallbackOptions::CreateForTesting [v8/v8 : master]

0 views
Skip to first unread message

Yuki Shiino (Gerrit)

unread,
Apr 13, 2021, 8:37:24 AM4/13/21
to Yuki Shiino, Toon Verwaest, Maya Lekova, v8-re...@googlegroups.com

Attention is currently required from: Toon Verwaest.

View Change

1 comment:

  • Commit Message:

To view, visit change 2822188. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: v8/v8
Gerrit-Branch: master
Gerrit-Change-Id: If47ba080eede96e91ba60b89ff502dd3d3e34b93
Gerrit-Change-Number: 2822188
Gerrit-PatchSet: 3
Gerrit-Owner: Yuki Shiino <yukis...@chromium.org>
Gerrit-Reviewer: Maya Lekova <msle...@chromium.org>
Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
Gerrit-CC: Commit Bot <commi...@chromium.org>
Gerrit-Attention: Toon Verwaest <verw...@chromium.org>
Gerrit-Comment-Date: Tue, 13 Apr 2021 12:37:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Maya Lekova <msle...@chromium.org>
Gerrit-MessageType: comment

Toon Verwaest (Gerrit)

unread,
Apr 13, 2021, 11:35:20 AM4/13/21
to Yuki Shiino, Maya Lekova, v8-re...@googlegroups.com

Attention is currently required from: Yuki Shiino.

Patch set 3:Code-Review +1

View Change

    To view, visit change 2822188. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: v8/v8
    Gerrit-Branch: master
    Gerrit-Change-Id: If47ba080eede96e91ba60b89ff502dd3d3e34b93
    Gerrit-Change-Number: 2822188
    Gerrit-PatchSet: 3
    Gerrit-Owner: Yuki Shiino <yukis...@chromium.org>
    Gerrit-Reviewer: Maya Lekova <msle...@chromium.org>
    Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
    Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
    Gerrit-CC: Commit Bot <commi...@chromium.org>
    Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
    Gerrit-Comment-Date: Tue, 13 Apr 2021 15:35:11 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    Gerrit-MessageType: comment

    Yuki Shiino (Gerrit)

    unread,
    Apr 13, 2021, 10:05:31 PM4/13/21
    to Yuki Shiino, Toon Verwaest, Maya Lekova, v8-re...@googlegroups.com

    Attention is currently required from: Yuki Shiino.

    Patch set 3:Commit-Queue +2

    View Change

      To view, visit change 2822188. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: v8/v8
      Gerrit-Branch: master
      Gerrit-Change-Id: If47ba080eede96e91ba60b89ff502dd3d3e34b93
      Gerrit-Change-Number: 2822188
      Gerrit-PatchSet: 3
      Gerrit-Owner: Yuki Shiino <yukis...@chromium.org>
      Gerrit-Reviewer: Maya Lekova <msle...@chromium.org>
      Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
      Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
      Gerrit-CC: Commit Bot <commi...@chromium.org>
      Gerrit-Attention: Yuki Shiino <yukis...@chromium.org>
      Gerrit-Comment-Date: Wed, 14 Apr 2021 02:05:22 +0000

      Commit Bot (Gerrit)

      unread,
      Apr 13, 2021, 11:39:33 PM4/13/21
      to Yuki Shiino, Toon Verwaest, Maya Lekova, v8-re...@googlegroups.com

      Commit Bot submitted this change.

      View Change

      Approvals: Toon Verwaest: Looks good to me Maya Lekova: Looks good to me Yuki Shiino: Commit
      [fastcall] Support FastApiCallbackOptions::CreateForTesting

      https://crrev.com/c/2817958 is going to support artificial
      calls of NoAllocDirectCall for a testing purpose, and this
      new API will be used there.

      Change-Id: If47ba080eede96e91ba60b89ff502dd3d3e34b93
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2822188
      Reviewed-by: Toon Verwaest <verw...@chromium.org>
      Reviewed-by: Maya Lekova <msle...@chromium.org>
      Commit-Queue: Yuki Shiino <yukis...@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#73945}
      ---
      M include/v8-fast-api-calls.h
      1 file changed, 10 insertions(+), 0 deletions(-)

      diff --git a/include/v8-fast-api-calls.h b/include/v8-fast-api-calls.h
      index f8b5acb..035ad38 100644
      --- a/include/v8-fast-api-calls.h
      +++ b/include/v8-fast-api-calls.h
      @@ -194,6 +194,8 @@

      namespace v8 {

      +class Isolate;
      +
      class CTypeInfo {
      public:
      enum class Type : uint8_t {
      @@ -322,6 +324,14 @@
      */
      struct FastApiCallbackOptions {
      /**
      + * Creates a new instance of FastApiCallbackOptions for testing purpose. The
      + * returned instance may be filled with mock data.
      + */
      + static FastApiCallbackOptions CreateForTesting(Isolate* isolate) {
      + return {false, {0}};
      + }
      +
      + /**
      * If the callback wants to signal an error condition or to perform an
      * allocation, it must set options.fallback to true and do an early return
      * from the fast method. Then V8 checks the value of options.fallback and if

      To view, visit change 2822188. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: v8/v8
      Gerrit-Branch: master
      Gerrit-Change-Id: If47ba080eede96e91ba60b89ff502dd3d3e34b93
      Gerrit-Change-Number: 2822188
      Gerrit-PatchSet: 4
      Gerrit-Owner: Yuki Shiino <yukis...@chromium.org>
      Gerrit-Reviewer: Commit Bot <commi...@chromium.org>
      Gerrit-Reviewer: Maya Lekova <msle...@chromium.org>
      Gerrit-Reviewer: Toon Verwaest <verw...@chromium.org>
      Gerrit-Reviewer: Yuki Shiino <yukis...@chromium.org>
      Gerrit-MessageType: merged
      Reply all
      Reply to author
      Forward
      0 new messages