mraleph / irhydra

Tool for displaying IR used by V8 and Dart VM optimizing compilers
Apache License 2.0
433 stars 32 forks source link

add support for loading files from a local server #46

Open mafintosh opened 8 years ago

mafintosh commented 8 years ago

being able to load the hydrogen.cfg, code.asm files from a local server (that has cors support) would be a great addition.

maybe something like

http://mrale.ph/irhydra/2/#http://localhost:8080/hydrogen.cfg,http://localhost:8080/code.asm

mraleph commented 8 years ago

I wonder if this will actually work and not be prohibited by CORS?

I think the only way to make it work reliably would be to serve IRHydra from localhost itself and just have a URL like

http://localhost:8080/irhydra/#/path/to/hydrogen.cfg,path/to/code.asm

mafintosh commented 8 years ago

I think my approach works as long as i set the correct core headers in my local server