Commit Graph
14 Commits
Author SHA1 Message Date
Bob Nystrom e493ac7cf4 Check for number of field overflow. 2014-01-15 07:59:10 -08:00
Bob Nystrom 3be059a137 Fix scoping and break statements.
Variables declared in the loop were not properly disposed of
when you broke out of the loop.
2014-01-06 08:01:04 -08:00
Bob Nystrom 870f3b8b93 Allow more than 256 methods and constants.
Class symbol tables now grow on demand, and the relevant
instructions take 16-bit arguments. There's a small perf hit
for this, but only a few percent, which is good.
2014-01-04 11:08:31 -08:00
Bob Nystrom f82a034b57 Add time to GC tracing. 2014-01-03 13:17:14 -08:00
Bob Nystrom a89386b4e8 Better argument validation for some list methods. 2014-01-02 07:32:00 -08:00
Bob Nystrom a6fd0b2dd2 Move SymbolTable to wren_utils. 2014-01-01 20:57:58 -08:00
Bob Nystrom 63d1255566 Start sketching in the FFI. 2013-12-29 10:06:35 -08:00
Bob Nystrom 24686eb4be First step towards making FnObjs smarter about size.
Currently, they have a hardcoded number of constants and 
bytecodes. That wastes memory in most cases and fails 
catastrophically when there is too much bytecode.

To fix this, we should use growable buffers for both during
compilation and then only create the FnObj when done compiling.

This moves a bunch of stuff around and gets it to the point
where functions are created at the end of compilation. It
doesn't yet size functions appropriately, but all tests are
passing, so this is a good checkpoint.
2013-12-26 16:58:03 -08:00
Bob Nystrom c0169896e6 Get rid of ResolvedName. 2013-12-22 20:53:35 -08:00
Bob Nystrom 9e67cd3220 Use stdbool.h and bool for booleans. 2013-12-14 23:41:23 -08:00
Bob Nystrom 7fe60499db Get rid of my name from TODOs. Anyone can do them. 2013-12-14 15:28:18 -08:00
Bob Nystrom 088b1be98c Clean up config #defines. 2013-12-14 11:06:54 -08:00
Bob Nystrom c1cfe1b9f6 Handle inherited fields correctly. 2013-12-10 16:13:25 -08:00
Bob Nystrom 715fecdc7c Rename files and add some docs. 2013-11-28 08:11:50 -08:00