Commit Graph

19 Commits

Author SHA1 Message Date
Sergey Pepyakin
b32f77ea02 Add the fib test. 2018-12-11 20:15:26 +01:00
Sergey Pepyakin
0cd70c649a Implement returns. 2018-12-11 20:13:20 +01:00
Sergey Pepyakin
e02dbf1bc2 Add i32 literals support. 2018-12-11 20:12:55 +01:00
Sergey Pepyakin
0e9ba8332f Pass arguments. 2018-12-11 19:46:41 +01:00
Sergey Pepyakin
078486e080 Basic form of a function call 2018-12-07 19:16:42 +01:00
Sergey Pepyakin
5eb43f027a Introduce TranslationContext 2018-11-29 22:28:10 +01:00
Sergey Pepyakin
52c0443368 Pass function sig in function_body::translate 2018-11-29 18:58:14 +01:00
Sergey Pepyakin
13c36612b5 increment → reserve. 2018-11-28 05:45:25 -08:00
Sergey Pepyakin
aa5643b9b5 Implement if then else 2018-11-28 05:45:25 -08:00
Sergey Pepyakin
ba216b2e8a Add a simple i32.eq operator. 2018-11-28 05:45:25 -08:00
Sergey Pepyakin
b42696f207 Add a simple boilerplate. 2018-11-28 05:45:25 -08:00
Sergey Pepyakin
08240761d5 Compile a simple function (#2)
* Implement basics.

* Execute code

* Add wasm2wat test cases.

* abi_loc_for_arg for stack.

* Assert that sp_depth is 0 at the epilogue

* Do 32bit add.

* Assert that RAX can be used as a scratch register

* Reuse assembler.

* Align stack slots.
2018-11-08 13:56:27 -08:00
Dan Gohman
d3bc26bc93 Mention that a goal of lightbeam is linear-time compilation. 2018-10-30 13:00:34 -07:00
Dan Gohman
e32144727d Update project name. 2018-10-30 12:59:49 -07:00
Dan Gohman
dac2eaa3cb Adjust whitespace to match the upstream exception text.
This is a whitespace-only change.
2018-10-30 12:57:52 -07:00
Dan Gohman
8b92b91b0a Update issue tracker URL. 2018-10-30 10:24:06 -07:00
Dan Gohman
34646c6f1f Add some categories and keywords to Cargo.toml. 2018-10-30 10:08:47 -07:00
Dan Gohman
068f86f645 Add a basic README.md. 2018-10-30 10:07:39 -07:00
Dan Gohman
154b35ecc1 Initial experiment. 2018-10-29 12:02:01 -07:00