Commit Graph

22929 Commits (2f0efb62e87c8e1f45d967ee2986b51ccc12c7b7)

Author SHA1 Message Date
Slava Pestov 41c5e41619 compiler.cfg.builder: add test to ensure that fast union predicates do not contain a conditional 2011-10-29 17:11:04 -07:00
Slava Pestov 0f5a65ea51 compiler.tree.propagation: more accurate output type for 'tag' primitive 2011-10-29 17:11:04 -07:00
Slava Pestov 52cf183e4e classes.union: unions of built-in types now have more efficient predicates. Fixes #292 2011-10-29 17:11:03 -07:00
Slava Pestov bf533d7d8d compiler.tree.debugger: disable length limit when printing optimized. quotation 2011-10-29 17:11:03 -07:00
Doug Coleman 6e4964df67 Look for mvim on mac and use 'open -a MacVim' if it's not in the path. Since 'open -a macvim' doesn't support command line options, add a generic for opening to a line or not. 2011-10-29 15:31:06 -07:00
Slava Pestov 5d94205509 help.html: I give up with the article name escaping. Just compute a SHA1 hash and use that as the file name. Fixes #309 2011-10-29 15:27:27 -07:00
Slava Pestov 1ee0a1944b help.html: simpler stylesheet for navbar to give it a consistent look. Fixes #310 2011-10-29 15:27:27 -07:00
Slava Pestov 83bac51831 help.html: use GET not POST for search form, so that the search term appears in the URL, and to make the back button work. Fixes #312 2011-10-29 15:27:27 -07:00
Slava Pestov 3468ff385c ui.gadgets.editors: fix wonky word names. Fixes #277 2011-10-29 15:27:27 -07:00
Slava Pestov 826112c5a1 Revert "ui.gadgets.editors: implement Ctrl-A/E/K to be more compatible."
This reverts commit 6a096a1e71.
2011-10-29 15:27:27 -07:00
Slava Pestov 281ff6b7a3 Revert "ui.gadgets.editors: windows doesn't work like macosx."
This reverts commit cf1d12ce78.
2011-10-29 15:27:27 -07:00
Doug Coleman 1353d98a22 Change order or articles in io.launcher. 2011-10-29 15:13:45 -07:00
Doug Coleman 031bb5ed1a Clean up editors.*vim so that it runs detached with gvim and there is less
code duplication. Use mvim on mac. Remove gvim.unix vocabulary since it
doesn't do anything besides return "gvim" as the path.
2011-10-29 15:10:42 -07:00
Doug Coleman 20999c41b9 Add edit-file and edit-vocab words and make edit on strings call
edit-vocab.
2011-10-29 13:35:13 -07:00
Doug Coleman 1260d00739 Add options to set the child process group id or session for Unix. This fixes part of #307. 2011-10-29 02:47:10 -07:00
Doug Coleman d3ba70a7d8 Remove the lexer-factory because nothing uses it. Update usages. 2011-10-29 01:11:19 -07:00
Doug Coleman 2bcb000873 Add a toggle word to namespaces and update docs, tests, and usages. Document with-global too. 2011-10-29 01:05:38 -07:00
Doug Coleman 9ce1f894a2 Change prompt to something we can copy/paste back into the Factor repl. Add auto-use word. Fixes #301. 2011-10-29 01:05:38 -07:00
Doug Coleman 323ee6f53e Cleanup vocab name validation. Vocab names and vocab prefixes are the same concept, and by disallowing slashes, spaces, and colon, we automatically check for absolute paths. Unit test this. 2011-10-29 01:05:37 -07:00
Doug Coleman e158dc19f4 factor.sh: Make net-bootstrap recompile the vm, add make_clean_factor function 2011-10-29 01:05:37 -07:00
Doug Coleman bf56723840 Add a seq>dlist word and make a dlist literal DL{
Implement prettyprint on dlists.
2011-10-29 01:05:37 -07:00
Slava Pestov b740d79d91 http.server: closing socket without sending any text would hang the http.server. Fixes #311 2011-10-28 23:54:55 -07:00
Slava Pestov fd944c5726 mason.git: cleanup 2011-10-28 21:53:39 -07:00
Slava Pestov d6499abda9 io.launcher: change kill-process to also close the pipe, if there is one, so that try-output-process can timeout even if the process spawns a subprocess which inherits the pipe. This fixes part of #307 2011-10-28 21:53:25 -07:00
Joe Groff 83569d3793 vm: give factorbug a help command
Also change the prompt to "> _" instead of "READY\n_" since it's not 1970 anymore
2011-10-27 21:18:23 -07:00
Joe Groff 09088ec3ce cleanups from code review 2011-10-27 21:18:23 -07:00
Joe Groff b1094e0e5f vm: remove half-assed signal queueing scaffolding
Should implement it right later. See #297.
2011-10-27 21:18:22 -07:00
Joe Groff bdf28ce3df vm: remove some debugging crumbs 2011-10-27 21:18:22 -07:00
Joe Groff 3b04f3b270 vm: add "gc" command to factorbug 2011-10-27 21:18:22 -07:00
Joe Groff 5c8c63d7c3 vm: clean up windows ctrl-handler 2011-10-27 21:18:22 -07:00
Joe Groff 871ea10cb0 cpu.x86.64: also must save ctx-reg 2011-10-27 21:18:21 -07:00
Joe Groff ef603216ad vm: some typos in debug.cpp 2011-10-27 21:18:21 -07:00
Joe Groff 7e3944509a vm: get CtrlHandler working on windows 2011-10-27 21:18:21 -07:00
Joe Groff ad9b90f23b vm: update windows for resumable signals 2011-10-27 21:18:21 -07:00
Joe Groff 5b61f3a359 vm: win32 GetCurrentThread is a fake thread handle
Open a real thread handle with the necessary permissions to dispatch a handler from the the Ctrl-C handler thread.
2011-10-27 21:18:21 -07:00
Joe Groff 3c947d0019 vm: change factorbug "q" to quit process
Also change the docs around so the useful commands are all listed under "Basic commands", and rename the more arcane "s" and "r" dumps to "ds" and "dr".
2011-10-27 21:18:20 -07:00
Joe Groff e431cef96b vm: move dispatch_signal_handler to cpu-x86.cpp
The new signal handler dispatch is logic is CISC-centric; defer fixing it until we find someone who cares
2011-10-27 21:18:20 -07:00
Joe Groff e36bb86f26 vm: code_block_for_address method -> code_heap 2011-10-27 21:18:20 -07:00
Joe Groff 1660bd5a19 vm: remove signal_from_leaf flag
Now that the resuming from the signal handler works within leaf procedures, the flag is no longer necessary.
2011-10-27 21:18:20 -07:00
Joe Groff 3e3be77d07 vm: sniff leaf words walking code heap, not data 2011-10-27 21:18:19 -07:00
Joe Groff fa37ddcdf9 vm: include quots and profile stubs in leaf search 2011-10-27 21:18:19 -07:00
Joe Groff 66ffd0f138 cpu.x86.32: update for resumable signal handlers 2011-10-27 21:18:19 -07:00
Joe Groff 9c7731e4c9 vm: suppress signal-handler stack frame generation
This is a hack; see #295
2011-10-27 21:18:19 -07:00
Joe Groff c049fa4a46 vm: turns out adding and subtracting are different 2011-10-27 21:18:19 -07:00
Joe Groff a5da58bb97 vm: fix foreign segfaults and callstack overflows 2011-10-27 21:18:18 -07:00
Joe Groff 1eddaf34f1 vm: resumably handle signals from leaf procedures 2011-10-27 21:18:18 -07:00
Joe Groff cb6f175ef8 vm: dispatch signal handlers through subprimitive
We also need to save C ABI volatile registers before calling the signal handler in order to be able to reliably resume. Add signal-handler and leaf-signal-handler subprimitives to preserve volatile registers before invoking the signal handler C function.
2011-10-27 21:18:18 -07:00
Joe Groff 011ce33068 vm: Revert extra canary page before callstack
This reverts commit 7d5c8d6990385b94569116a23163d7e75ae21f49. We pretty much can't avoid unwinding frames without some more drastic redesign.
2011-10-27 21:14:50 -07:00
Joe Groff d41c3f2709 cpu.x86.(32,64).bootstrap: get rid of PUSH malarky
In the function prologue, move the stack pointer once after the stack frame is set up instead of PUSHing the stack frame piece by piece.
2011-10-27 21:14:50 -07:00
Joe Groff 50ae01e659 vm: comments should be in English 2011-10-27 21:14:50 -07:00