Commit Graph

27270 Commits (667462e848a07636ae7968966f2e3805853cbf8e)

Author SHA1 Message Date
Doug Coleman e97e74b682 GNUmakefile: Don't compile.gch with -std=c++11 2015-06-05 10:35:03 -07:00
Doug Coleman ad2c2c36bb GNUmakefile: add -std=c++11 to CXXFLAGS 2015-06-05 10:31:49 -07:00
Doug Coleman a83df49ecc ffi_test.c: Casting a 32bit int to a 64bit pointer is invalid. Instead,
cast it to a 64bit int then to the pointer. Found with visual studio 2015.
2015-06-05 10:21:20 -07:00
Doug Coleman f26c7fc66d utilities.hpp: Use auto pointer instead of gcc extension typeof().
Fixes #1336.
2015-06-05 10:20:32 -07:00
John Benediktsson c74ccdd33e deques: use fry to simplify. 2015-06-04 23:15:51 -07:00
Björn Lindqvist 40b7805e0a VM: fixes so that raw_fread and safe_fread returns a size_t again 2015-06-05 02:14:49 +02:00
Björn Lindqvist 428937dbeb VM: make FACTOR_FOR_EACH not call .end() more than once 2015-06-05 02:14:49 +02:00
Björn Lindqvist 0713f28bdb VM: safe_fread needs to return an int so you can return -1 on error 2015-06-05 02:14:49 +02:00
Björn Lindqvist a0e7bb8770 VM: move free_list_allocator<Block>::next_allocated_block_after to
tenured_space::next_allocated_object_after, because it's only used there
2015-06-05 02:14:49 +02:00
Björn Lindqvist f1ca83524a VM: new functions raw_fclose and raw_fread
These need to be used when the image is loaded because there is no
context so you can't throw io errors yet.
2015-06-05 02:14:49 +02:00
Björn Lindqvist 9d289e35f4 VM: macro FACTOR_FOR_EACH used in more places to drive iteration 2015-06-05 02:14:49 +02:00
Björn Lindqvist b7bd0668b3 VM: macro FACTOR_FOR_EACH to make stl container iteration easier to express 2015-06-05 02:14:48 +02:00
Doug Coleman 27590b514c vm: Only call fclose() once. Rename io_error() to io_error_if_not_EINTR() to be more explicit.
Fixes #1335.
2015-06-03 14:35:48 -07:00
John Benediktsson fbc146d97a assocs.extras: minor changes to assoc-merge. 2015-06-03 08:59:41 -07:00
John Benediktsson 14ed9a5455 math.functions: some silly cleanup. 2015-06-02 11:54:05 -07:00
John Benediktsson ec6e3c218c benchmark.backtrack: some cleanup. 2015-06-01 19:46:40 -07:00
John Benediktsson 343e8d7b87 game.models.obj: some cleanup. 2015-06-01 19:46:15 -07:00
John Benediktsson 6480a46c1e backtrack: some cleanup. 2015-06-01 19:46:08 -07:00
John Benediktsson e2bead3328 editors.sublime: keep Sublime Text 2 support like we do on OS X. 2015-06-01 15:34:32 -07:00
Doug Coleman 2ee3516bf1 io.files.unique: Better docs for with-unique-directory. 2015-06-01 15:22:05 -07:00
Doug Coleman 51d60dd833 editors.sublime: Fix sublime for windows. 2015-06-01 15:00:40 -07:00
John Benediktsson 22402a2e07 Revert "io.standard-paths: adding support for PATHEXT."
This reverts commit be9bff0e5b.
2015-06-01 14:59:36 -07:00
John Benediktsson be9bff0e5b io.standard-paths: adding support for PATHEXT. 2015-06-01 14:57:47 -07:00
John Benediktsson 071704072c editors: bunch of cleanup. 2015-06-01 14:39:30 -07:00
John Benediktsson 0d7c3c5291 io.standard-paths: add ?find-in-path. 2015-06-01 14:26:38 -07:00
John Benediktsson 2884f8dabe io.standard-paths.windows: use map-find. 2015-06-01 14:26:27 -07:00
John Benediktsson de9094b8d5 tools.which: add a convenience for "which or". 2015-06-01 09:11:19 -07:00
Doug Coleman 769af0673a calendar.format: Add a word to output times in the format that git uses. Rename a paren word. 2015-05-31 15:08:51 -07:00
John Benediktsson 69a6fa72bc io.binary.fast: adding fast version of signed> words. 2015-05-31 08:44:55 -07:00
John Benediktsson e04dc6db29 io.binary: adding some tests for signed>. 2015-05-31 08:44:39 -07:00
John Benediktsson ddb636c4c0 io.binary.fast: easier to read using stdint types. 2015-05-31 08:09:05 -07:00
John Benediktsson 0eea157d90 math.bitwise: bitfield should just use map-reduce. 2015-05-31 08:04:34 -07:00
John Benediktsson b1ac83c908 io.binary.fast: speed up when used by byte-arrays. 2015-05-31 07:08:07 -07:00
John Benediktsson f24bbffb2a math.bitwise: change bitfield to reduce from first argument rather than zero. 2015-05-30 21:55:27 -07:00
John Benediktsson 040e61cbe7 english: fix copyright. 2015-05-30 21:55:16 -07:00
John Benediktsson 0f1f27dcee math.bitwise: fix docs for bitfield. 2015-05-30 21:51:08 -07:00
Björn Lindqvist c2a70d18b4 bootstrap.x86: fix assembler code bug in fixnum*
Now the operands are kept in EBP and ECX and the vm-reg (EBX) is not
used unnecessarily
2015-05-25 08:42:16 -07:00
Björn Lindqvist 5dcaf2553f bootstrap.primitives: shorter code for mapping architecture to assembly file 2015-05-22 12:22:30 -07:00
Björn Lindqvist 48e6455186 cpu.x86.*: %mov-vm-ptr isn't so useful, shorter and simpler to write
vm-reg MOV
2015-05-22 12:22:29 -07:00
Björn Lindqvist fa190a8329 bootstrap.ppc: untested fix for #1319 for ppc 2015-05-22 12:22:28 -07:00
Björn Lindqvist 8e1f3a0e51 VM: after reset_datastack and retainstack clear the stack segment. makes
it easier to find bad accesses to shadow data
2015-05-22 12:22:28 -07:00
Björn Lindqvist 183ec83a6d VM: possible fix for #1319.
Fix for reset_context() so that the top two stack items are never
removed from the stack so if the parent->init_context(ctx) call triggers
a GC, those items are never collected.
2015-05-22 12:22:27 -07:00
Björn Lindqvist 8d697fcc34 threads.test: a test that is mostly able to reproduce #1319 2015-05-22 12:22:26 -07:00
Björn Lindqvist 016614747d VM: the delete_context() and reset_context() api functions can be
simplified a bit

The functions always operates on parent->ctx, so passing a context*
parameter is redundant. This enables shorter assembly code for
the (start-context-and-delete) and (set-context-and-delete) primitives.
2015-05-22 12:22:26 -07:00
Björn Lindqvist 528e9f61f3 bootstrap.x86: new words jit-call-Xarg for calling vm functions with
arguments, simplifies some assembly code
2015-05-22 12:22:25 -07:00
Björn Lindqvist 6ca83e7588 Reorganising bootstrap files
All the bootstrap.factor scripts in cpu/ are run by the bootstrap to
make boot images, but aren't used otherwise. So I think it's cleaner to
put them in one directory inside the bootstrap hierarchy.
2015-05-22 12:22:24 -07:00
Doug Coleman cf3ccd0abe io.directories.search: Add some more combinators for finding files. 2015-05-21 22:35:24 -07:00
Doug Coleman a2913d6bd7 sequences.extras: Add selector* which saves the output from the quotation
not the original value.
2015-05-21 22:35:23 -07:00
Doug Coleman c13b881517 generalizations: dos2unix 2015-05-20 15:02:04 -07:00
Doug Coleman 0a9c79752d generalizations: Only define npick for >= 1. Fixes #1306. 2015-05-20 15:01:49 -07:00