{"action":"closed","issue":{"url":"https://api.github.com/repos/cretonne/cretonne/issues/205","repository_url":"https://api.github.com/repos/cretonne/cretonne","labels_url":"https://api.github.com/repos/cretonne/cretonne/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/cretonne/cretonne/issues/205/comments","events_url":"https://api.github.com/repos/cretonne/cretonne/issues/205/events","html_url":"https://github.com/cretonne/cretonne/issues/205","id":279429766,"number":205,"title":"Compiling wasm to native fails because of `ReservedReg` being unimplemented","user":{"login":"Vurich","id":29733394,"avatar_url":"https://avatars0.githubusercontent.com/u/29733394?v=4","gravatar_id":"","url":"https://api.github.com/users/Vurich","html_url":"https://github.com/Vurich","followers_url":"https://api.github.com/users/Vurich/followers","following_url":"https://api.github.com/users/Vurich/following{/other_user}","gists_url":"https://api.github.com/users/Vurich/gists{/gist_id}","starred_url":"https://api.github.com/users/Vurich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vurich/subscriptions","organizations_url":"https://api.github.com/users/Vurich/orgs","repos_url":"https://api.github.com/users/Vurich/repos","events_url":"https://api.github.com/users/Vurich/events{/privacy}","received_events_url":"https://api.github.com/users/Vurich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2017-12-05T16:00:44Z","updated_at":"2018-04-23T23:27:34Z","closed_at":"2018-04-23T23:27:34Z","author_association":"NONE","body":"`cton-util wasm --isa intel some-file.wasm` fails when legalising because `DummyFuncEnvironment::make_heap` emits a heap with `ReservedReg` but `offset_addr` is unimplemented for `ReservedReg`. I tried making it an empty implementation but that leads to an infinite loop (as you'd expect), and the only other thing I can think of is replacing it with an offset from `vmctx`, but there's no clear way to emit that (I can't explore the documentation easily since there's a lot of generated code). I can compile to `cton` with `cton-util wasm -pc some-file.wasm` and it appears to produce sensible code.\r\n\r\nThere is no documentation anywhere (not in the code or on http://cretonne.readthedocs.io/) that documents precisely what `reserved_reg` is supposed to represent, I'm just inferring what I can from reading the code, tests and examples."}}
{"actor":{"display_login":"sunfishcode"}}