Open Bug 760258 Opened 13 years ago Updated 2 years ago

IonMonkey: Add MIR instruction MBreakpoint

Categories

(Core :: JavaScript Engine, enhancement, P5)

x86
macOS
enhancement

Tracking

()

People

(Reporter: efaust, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [ion:t])

It would be nice to have an instruction internally for testing purposes which assembled to a breakpoint from the MIR level.
I was just talking about wanting this. At least something that would get compiled into a |masm.breakpoint()|. (I assume that's what this is describing, though its possible efaust was talking about breakpoints visible to JS devtools and not a machine code level debugger like gdb.)
I have one version working that just emits a non-moveable nullary instruction into the codegen output for the basic block. I think it is useful. We may also want another version that acts like a unary mov instruction that could *move* along with the code it is attached to.
Assignee: general → nobody
Severity: trivial → S4
Blocks: sm-opt-jits
Severity: S4 → N/A
Type: defect → enhancement
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.