John Benediktsson
5fdc98cb97
syntax: fix bad search-and-replace.
2015-09-08 16:21:06 -07:00
John Benediktsson
e477f6996f
Fix comments to be ! not #!.
2015-09-08 16:15:10 -07:00
John Benediktsson
75e50ec5e0
images.loader: use accessors in tests.
2015-09-06 08:23:17 -07:00
Björn Lindqvist
5684fab484
images.loader.gdiplus: fix for the call to GdipBitmapLockBits
...
GdipBitmapLockBits might trigger gc so the GpRect struct must be copied
to stable stack memory so that the collector doesn't move it.
2015-09-06 15:15:01 +02:00
Björn Lindqvist
721048bbb9
bootstrap.image.tests: total 20 -> 18
2015-09-03 13:18:26 +02:00
John Benediktsson
2435307fb3
peg: some cleanup.
2015-09-02 13:14:01 -07:00
Björn Lindqvist
b3de115e3c
VM: remove RT_EXCEPTION_HANDLER reference
2015-09-02 21:54:47 +02:00
Björn Lindqvist
769c09def5
VM: for consistency, it is easier to put all functions in the exports file
2015-09-02 21:54:44 +02:00
Björn Lindqvist
bc7f9ee669
VM: always use undecorated names when loading ffi functions
...
For win32, Factor tries four different function names when loading
stdcall and fastcall functions, in case decorated names are used in the
dll. It seems to not be necessary because a dll meant for 3rd party use
will always export undecorated
names (http://blogs.msdn.com/b/oldnewthing/archive/2004/01/12/57833.aspx ).
2015-09-02 21:54:41 +02:00
Björn Lindqvist
da3de080ee
VM: callback_entry_point() and update() can be removed
2015-09-02 21:54:39 +02:00
Björn Lindqvist
9725169ca7
compiler.cfg.intrinsics.misc: use the vm-special-object-offset word
2015-09-02 21:54:36 +02:00
Björn Lindqvist
de4917e6a1
VM: give the exception handling special object a real name
2015-09-02 21:54:33 +02:00
Björn Lindqvist
22887c5816
VM: get rid of the odd RT_EXCEPTION_HANDLER relocation
...
The address to the win32 relocation handler can be stored in a special
object and be accessed by jit-install-seh. Doing it that way is better
because you can remove a lot of special code related to that relocation
type.
2015-09-02 21:54:30 +02:00
Björn Lindqvist
68c0c0f53a
VM: clear commented out code
2015-09-02 21:54:27 +02:00
Björn Lindqvist
85e45ae29e
compiler.constants: remove a bunch of constants that are unused
...
(or only used by the defunkt arm backend)
2015-09-02 21:54:24 +02:00
Björn Lindqvist
a89b0c2b30
Docs: reorg of the compiler.constants docs a little
2015-09-02 21:54:21 +02:00
Björn Lindqvist
84ec2164c2
VM: nicer way of initializing those special objects that are aliens
2015-09-02 21:54:18 +02:00
Björn Lindqvist
cee0b19324
VM: the ffi-signal-handler and ffi-leaf-signal-handler primitives are unused
2015-09-02 21:54:15 +02:00
John Benediktsson
b28a24c7df
peg: fix some old docs that referred to "p1".
2015-09-02 10:34:59 -07:00
Jon Harper
6ee9fad443
formatting: fix docs for padding and use a better example
...
Make the padding number coherent between the example and the docs.
Also bump it from 3 to 10 because [[3.14 "%'#5f" printf]] is "3.140000"
because the default precision is 6.
2015-08-30 18:43:59 +02:00
Jon Harper
03630e8100
peg.ebnf: support escaped double quote in a string
2015-08-30 18:43:58 +02:00
Doug Coleman
b2a51dfeb2
vocabs.metadata: wrap test in a with-manifest to ensure there's a manifest. Fixes #1463 .
2015-08-27 22:28:30 -07:00
Doug Coleman
2a520191e1
vocabs.metadata: Fix test so it stops trying to load the wrong platform vocabulary forever. Fixes #1463 .
2015-08-27 18:51:40 -07:00
Doug Coleman
bb16ef8a86
windows.kernel32: add more bindings
2015-08-27 11:29:26 -07:00
Björn Lindqvist
a9c33cbfd7
VM: better way to set signal_resumable
2015-08-26 20:23:28 +02:00
Björn Lindqvist
663e5e2a09
VM: fix jit-signal-handler-prolog/epilog to account for the home space
...
Windows 64bit abi requires callers to reserve 32 bytes of home space in
the stack frame which the callee is free to clobber. Previous versions
of VS didn't compile code to take advantage of the home space so it
worked fined. VS2015 however, is using the home space which causes
registers and flags that were supposed to be saved to be
overwritten. The fix is to put a little extra empty space at the bottom
of the stack frame.
2015-08-26 20:23:25 +02:00
Björn Lindqvist
316b16f377
VM: instead of enqueue_safepoint() just call set_safepoint_guard() directly
2015-08-26 20:23:23 +02:00
Björn Lindqvist
5a39631b4b
VM: refactoring, new function get_thread_pc() and simpler logic in exception_handler()
2015-08-26 20:23:20 +02:00
Björn Lindqvist
2a852915d2
VM: signal_fault_pc probably should be set here...
2015-08-26 20:23:17 +02:00
Björn Lindqvist
10464e7e4e
VM: LEAF_FRAME_SIZE is 16 bytes on all platforms so we can simplify it
2015-08-26 20:23:15 +02:00
Doug Coleman
05de24e9a1
factor.sh: pass CC and CXX to make script.
2015-08-26 04:58:42 +00:00
Doug Coleman
7a75694d91
factor.sh: add g++ to deps-apt-get. Add all() function to make sure we have both gcc and g++ (since they install separately). Add any() function to tell which of the commands it finds. Fix bug with wget/curl where the function was not meant to accept multiple arguments.
2015-08-26 04:11:19 +00:00
John Benediktsson
8db66d9dd3
ui.gestures: update action gesture docs, thanks @jonenst!
2015-08-24 10:27:00 -07:00
John Benediktsson
e45e669fd6
locals.parser: change docs for with-lambda-scope.
2015-08-24 10:21:35 -07:00
Björn Lindqvist
cb0bf3b1ce
VM: merge memory_protection_error() with memory_signal_handler_impl()
2015-08-24 07:23:40 -07:00
Björn Lindqvist
39c888230a
VM: new function set_safepoint_guard to replace the functions (un)guard_safepoint
2015-08-24 07:23:40 -07:00
Björn Lindqvist
56ddb59b00
VM: new function set_memory_locked(true/false)
...
it wraps the mprotect/VirtualProtect platform differences and makes it
so you can unify some windows/unix code path forks
2015-08-24 07:23:40 -07:00
Björn Lindqvist
a2e8af2581
io.files: command line params is in the system's native encoding
2015-08-24 07:23:40 -07:00
Björn Lindqvist
94eb855903
VM: make the debug output a little prettier
2015-08-24 07:23:40 -07:00
Björn Lindqvist
51daaf6be4
VM: the windows_image_path method is unused
2015-08-24 07:23:40 -07:00
Doug Coleman
0a5c181c9e
words: cleaning up word-props
2015-08-23 22:40:56 -07:00
Doug Coleman
de4e42b6ca
classes.parser: add a create-class word.
2015-08-23 22:40:56 -07:00
Doug Coleman
92e576e544
factor.sh: Prefer clang to gcc and stop special-casing mac.
...
Add deps-dnf command to install all Fedora packages.
Add full-report command to see what's installed.
2015-08-23 22:39:00 -07:00
John Benediktsson
3154e70b88
vocabs.metadata: add some tests.
2015-08-23 18:43:36 -07:00
John Benediktsson
087b8df798
vocabs.metadata: fix for error refactoring.
2015-08-23 18:37:34 -07:00
Björn Lindqvist
4efef7bfd9
VM: merge the compute_dlsym_toc_address() with the
...
compute_dlsym_address() method
it makes the code slightly more cluttered but you get rid of a lot of
special casing for the ppc platform
2015-08-23 18:36:31 -07:00
Björn Lindqvist
a53d5be683
VM: make allot_alien() and ffi_dlsym() use cell instead of void*
...
this way we get rid of a bunch of superfluous casts
2015-08-23 18:36:31 -07:00
Björn Lindqvist
1045f41778
VM: gc required here because we are iterating all objects
2015-08-23 18:36:31 -07:00
Björn Lindqvist
7f545271f4
VM: new iteration method each_object_each_slot()
...
used by find_data_references() and dump_edges() instead of the functor structs
2015-08-23 18:36:31 -07:00
Björn Lindqvist
59b7a50567
VM: removing the get_datastack/retainstack/callstack primitives
...
they can all be implemented using the
datastack/retainstack/callstack-for primitives and the less primitives
the better!
2015-08-23 18:36:30 -07:00