Closed Bug 585692 Opened 15 years ago Closed 13 years ago

reuse code in js_ReportIsNotFunction to produce precise errors from natives

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: luke, Assigned: evilpies)

Details

Attachments

(1 file)

(Follow-up to bug 581900) As described in bug 581900, natives can't assume they are called directly from the interpreter or that they know the sp-offset of their input values. js_ReportIsNotFunction avoids using JSDVG_SEARCH_STACK by intelligently searching the stack for the right Value*. This could be factored into DVG and reused by, e.g., obj_getPrototypeOf.
Assignee: general → evilpies
Attached patch wipSplinter Review
Just throwing it out there so we can think about if this is useful. I think we should be able to replace most of the stack search code in js_DecompileValueGenerator, but for now I only try the new method and fall back to the new one. This patch gives us better (for some definition of better, that still needs to evaluated) error reporting for free, when DecompileValueGenerator or ReportValueError is used.
Yaay -1 assigned bug for free, somebody fixed this stuff.
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: needinfo?
Resolution: --- → FIXED
Flags: needinfo?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: