Closed Bug 729833 Opened 13 years ago Closed 13 years ago

IonMonkey: Provide a js_DumpIonStack function to be able to locate the guilty line of a testcase

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gkw, Assigned: nbp)

References

Details

Attachments

(1 file)

As per f2f discussion with Nicolas, it seems difficult to find the line number of the line that the testcase is failing at. Having a js_DumpIonStack function would be nice to print all ion frames of the last activation, including inline frames, providing function location, pc and (hopefully) line numbers.
What do you mean by failing? Like, if we hit an assert and want to dump the state of the world? That seems like a really good idea.
> What do you mean by failing? Like, if we hit an assert and want to dump the > state of the world? That seems like a really good idea. Yes, an assert or probably a crash.
Depends on: 732546
Attached patch Add js_DumpBacktrace (deleted) — Splinter Review
Assignee: general → nicolas.b.pierron
Status: NEW → ASSIGNED
Attachment #603893 - Flags: review?(dvander)
Comment on attachment 603893 [details] [diff] [review] Add js_DumpBacktrace r=me though it might be easier to just use fprintf instead of sprinter
Attachment #603893 - Flags: review?(dvander) → review+
Status: ASSIGNED → RESOLVED
Closed: 13 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: