Closed Bug 1532716 Opened 5 years ago Closed 4 years ago

Cranelift: Provide source locations for symbolic accesses

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1618595

People

(Reporter: bbouvier, Unassigned)

References

Details

My understanding is that it can't be done at the moment, since Cranelift calls the reloc_ functions at binemit time. What we could do is have Cranelift provide the source locations when it calls these functions, that is, add SourceLocation parameters to the CodeSink::reloc_ functions. Does it make sense Dan?

Flags: needinfo?(sunfish)

Another possibility would be to get the source location from the Cursor when we're calling symbolic_funcref (in baldrdash), and encode it in the namespace (1 bit to know if it's a user defined function or a symbolic function, the rest for the source location in the case of a symbolic function), but that's less elegant (and wouldn't apply to other Cranelift embedders).

Priority: -- → P3

Will do this as part of bug 1618595.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(sunfish)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.