Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Contribute to GitLab
  • Sign in / Register
V
V8
  • Project
    • Project
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Linshizhi
  • V8
  • Repository

Switch branch/tag
  • v8
  • test
  • mjsunit
  • compiler
  • collection-has.js
Find file
BlameHistoryPermalink
  • snek's avatar
    optimize Set#has · 4c81827c
    snek authored Jun 23, 2022
    Code for map methods was added a really long time ago but no one ever
    brought that to set. Adds new common lowering for both collections and
    updates the SetPrototypeHas builtin. My initial testing shows this to
    be as much as 50x faster in some cases.
    
    Change-Id: Ifea5be01c9e51013d57ac00bd817759ceace6669
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3709246Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
    Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
    Commit-Queue: snek <snek@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#81330}
    4c81827c
collection-has.js 1.4 KB
EditWeb IDE

Replace collection-has.js

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.