Closed Bug 524841 Opened 15 years ago Closed 15 years ago

TM: add an internal API to get the JSThreadData structure for the current thread

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(1 file, 1 obsolete file)

Some API calls don't supply cx only runtime, so we can't get to the JSThreadData by following cx->thread. This call looks up the current thread in the runtime.
Attached patch patch (obsolete) — Splinter Review
Assignee: general → gal
Attached patch patchSplinter Review
Attachment #408739 - Attachment is obsolete: true
Attachment #408740 - Flags: review?(brendan)
OS: Mac OS X → All
Hardware: x86 → All
Attachment #408740 - Flags: review?(brendan) → review+
Comment on attachment 408740 [details] [diff] [review]
patch

Looks ok, but is it time to make new functions taking JSRuntime *rt first parameter be C++ methods of JSRuntime? Separate bug to convert all such if you prefer.

/be
Compilation fix

http://hg.mozilla.org/tracemonkey/rev/d2f5f34a480b
Whiteboard: fixed-in-tracemonkey
http://hg.mozilla.org/mozilla-central/rev/d7c7a9d15a96
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: