Skip to content

Index number-keyed maps from a movable base - #4885

Open
ctate wants to merge 3 commits into
canaryfrom
ctate/map-dense-window
Open

ctate wants to merge 3 commits into
canaryfrom
ctate/map-dense-window

Conversation

@ctate

@ctate ctate commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator
  • Number-keyed Map and Set index their keys directly from a movable base, so sliding windows of integer keys skip hashing and probing; iteration order and semantics are unchanged.
  • Changes the direct-index table layout shared by compiled code and the runtime, so it ships with the next runtime ABI version.

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
scriptc Ready Ready Preview, v0 Dec 5, 2026 10:24pm UTC

@vercel-internal-security-reviewer

Copy link
Copy Markdown

Security review details

@vercel vercel Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional findings

  1. packages/compiler/src/backend/llvm/emit-module.ts:2181-2182 — Renaming the direct-index branch condition to %direct.ok makes the existing number-map lookup test fail for both pointer widths.

    Fix on Vercel

Comment thread packages/runtime/src/scr_map.c Resolved

This branch was successfully deployed

1 active deployment
Preview — b6293c0b Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant