Closed Bug 1705198 Opened 3 years ago Closed 3 years ago

Remove uses of JSID_TO_ATOM in js/src/jit directory

Categories

(Core :: JavaScript Engine, task, P5)

task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: mgaudet, Assigned: janey, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(1 file)

Note: this bug is currently reserved for Outreachy applicants for the Spring/Summer 2021 cycle. If it has not been completed by the end of the application cycle, we will open it up.

Background

The JSID_TO_ATOM calls reflect an old style of SpiderMonkey programming that we think we can start to get away from, at internally to the engine.

This Bug

This bug is about removing uses of JSID_TO_ATOM within the js/src/jit directory. You can find these uses using your editor search functionality, or SearchFox. Instead of using JSID_TO_ATOM we should be using JS::PropertyKey::toAtom, which is actually how JSID_TO_ATOM is implemented.

Prerequisites

Before getting started, you'll want to

How you’ll know you’re done

  • The use of JSID_TO_ATOM is removed in the specified places.
  • SpiderMonkey builds
  • The tests run successfully.

Getting Help

Feel free to leave comments on this bug for questions, or, if you have more synchronous questions about this bug, feel free to drop into the #spidermonkey channel on chat.mozilla.org.

Tips:

  • Not sure if the code you've been editing is getting run? Insert a call to MOZ_CRASH, a macro which will crash when executed, and run the entire test suite with an optimized build (for speed). If you see crashes, you can then use a debug build to make sure it's crashing in your code!

Hey! It's Jane from Outreachy. I just finished my work on similar bug and would love to grab this one for work!
Especially when mine SpiderMonkey works great and I do have now correct code.
Thanks heaps! Looking forward to work on this one!

Assignee: nobody → jenyabrentnall
Status: NEW → ASSIGNED
Attachment #9216004 - Attachment description: Bug 1705198: Uses of JSID_TO_ATOM are replaced with JS::PropertyKey::toAtom r=mgaudet → Bug 1705198: Remove uses of JSID_To_ATOM from js/src/jit directory r=mgaudet
Pushed by mgaudet@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3296724e1b9d
Remove uses of JSID_To_ATOM from js/src/jit directory r=mgaudet
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.