Closed Bug 1526394 Opened 5 years ago Closed 5 years ago

Treat self-hosted builtins the same as native functions in the debugger

Categories

(Core :: JavaScript Engine, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox67 --- wontfix
firefox68 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(1 file, 1 obsolete file)

  • Return undefined instead of null in the script getter.
    • That way self-hosted getters are treated as safe-getters in DevTools.
    • I have an experimental patch to change get TypedArray.prototype.byteLength to a self-hosted getter which requires this change to avoid an xpc test suite failure.
  • Don't expose the environment in the environment getter.
Attached patch bug1526394.patch (obsolete) — Splinter Review

Changes the JSFunction::isInterpreted() calls to also test for self-hosted builtins.

Drive-by fix:

  • Refer to "asm.js" instead of "wasm" to make a comment less confusing.
Attachment #9042552 - Flags: review?(jimb)
Comment on attachment 9042552 [details] [diff] [review]
bug1526394.patch

Review of attachment 9042552 [details] [diff] [review]:
-----------------------------------------------------------------

Stealing this review. Looks great.
Attachment #9042552 - Flags: review?(jimb) → review+
Priority: -- → P1

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:anba, could you have a look please?

Flags: needinfo?(andrebargull)
Attached patch bug1526394.patchSplinter Review

Updated patch to apply cleanly on inbound and to fix a devtools test, which expected to be able to retrieve the parameter names of self-hosted functions. Carrying r+.

Attachment #9042552 - Attachment is obsolete: true
Flags: needinfo?(andrebargull)
Attachment #9053704 - Flags: review+

Pushed by dvarga@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b8e1b1b70f3
Treat self-hosted functions the same as non-interpreted functions in Debugger code. r=jorendorff

Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
https://hg.mozilla.org/projects/ash/rev/9b8e1b1b70f326cc8170b3a26c4321e360632a2d
Bug 1526394: Treat self-hosted functions the same as non-interpreted functions in Debugger code. r=jorendorff
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: