3b0d5bba15 
								
							
								 
							
						 
						
							
							
								
								kernel.private: adding OBJ-SAMPLE-CALLSTACKS + test case  
							
							
							
						 
						
							2016-11-24 05:11:46 +01:00  
				
					
						
							
							
								 
						
							
							
								d73666b9d0 
								
							
								 
							
						 
						
							
							
								
								VM: the unimplemented error isn't used anymore  
							
							... 
							
							
							
							Cause all the primitives are implemented so it can never ever be
thrown. Probably requires new boot images. 
							
						 
						
							2016-11-23 10:24:52 +01:00  
				
					
						
							
							
								 
						
							
							
								c55a6ef873 
								
							
								 
							
						 
						
							
							
								
								VM: removing the unused callstack-bounds primitive  
							
							... 
							
							
							
							Probably needs new boot images 
							
						 
						
							2016-11-21 22:30:20 +01:00  
				
					
						
							
							
								 
						
							
							
								b31c0b8857 
								
							
								 
							
						 
						
							
							
								
								Docs: bunch of random doc updates  
							
							
							
						 
						
							2016-10-31 11:46:39 +01:00  
				
					
						
							
							
								 
						
							
							
								46105b62f6 
								
							
								 
							
						 
						
							
							
								
								VM: change callstack>array primitive so it doesn't reverse anymore  
							
							... 
							
							
							
							This fixes one part of the #452  bug. 
							
						 
						
							2016-10-13 01:34:55 +02:00  
				
					
						
							
							
								 
						
							
							
								6984bae7ca 
								
							
								 
							
						 
						
							
							
								
								VM: rename of JIT_PUSH_IMMEDIATE to JIT_PUSH_LITERAL  
							
							... 
							
							
							
							The code template pushes both immediates and references so the name was
wrong. 
							
						 
						
							2016-06-07 14:54:23 +02:00  
				
					
						
							
							
								 
						
							
							
								c133c16377 
								
							
								 
							
						 
						
							
							
								
								core: Trim using lists from -tests and clean up a few irregularities.  
							
							
							
						 
						
							2016-03-30 18:43:41 -07:00  
				
					
						
							
							
								 
						
							
							
								579875821b 
								
							
								 
							
						 
						
							
							
								
								VM: removes the OBJ-ERROR special object in favor of a constant  
							
							... 
							
							
							
							The special object contained the string "kernel-error" which were used
to tag VM errors. But it is simplier and removes a little complexity to
just tag them with a fixnum constant. 
							
						 
						
							2016-03-22 17:52:19 +01:00  
				
					
						
							
							
								 
						
							
							
								4d2baf5d50 
								
							
								 
							
						 
						
							
							
								
								kernel: improve docs for ?.  
							
							
							
						 
						
							2016-03-20 10:36:23 -07:00  
				
					
						
							
							
								 
						
							
							
								339b1b6466 
								
							
								 
							
						 
						
							
							
								
								VM: put the singletons t, -1, 0 and 1 in the special objects table  
							
							... 
							
							
							
							Having them there instead of as fields in the vm struct removes a bunch
of special handling. This commit just adds them and doesn't remove the
old ones to avoid potential chicken-and-egg bootstrap problems. 
							
						 
						
							2015-12-09 21:31:13 +01:00  
				
					
						
							
							
								 
						
							
							
								74cb1acd17 
								
							
								 
							
						 
						
							
							
								
								Docs: more docs for vocabs in core/  
							
							
							
						 
						
							2015-12-05 16:34:46 +01:00  
				
					
						
							
							
								 
						
							
							
								ffc441ad63 
								
							
								 
							
						 
						
							
							
								
								VM: looks like ERROR_C_STRING is never thrown, so it can be removed  
							
							
							
						 
						
							2015-09-29 23:12:56 +02:00  
				
					
						
							
							
								 
						
							
							
								e477f6996f 
								
							
								 
							
						 
						
							
							
								
								Fix comments to be ! not #!.  
							
							
							
						 
						
							2015-09-08 16:15:10 -07:00  
				
					
						
							
							
								 
						
							
							
								de4917e6a1 
								
							
								 
							
						 
						
							
							
								
								VM: give the exception handling special object a real name  
							
							
							
						 
						
							2015-09-02 21:54:33 +02:00  
				
					
						
							
							
								 
						
							
							
								cee0b19324 
								
							
								 
							
						 
						
							
							
								
								VM: the ffi-signal-handler and ffi-leaf-signal-handler primitives are unused  
							
							
							
						 
						
							2015-09-02 21:54:15 +02:00  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								883f65d0e4 
								
							
								 
							
						 
						
							
							
								
								VM: fix one callstack overflow problem by "unlocking" the callstacks  
							
							... 
							
							
							
							border pages
Also a new vocab compiler.tests.callstack-overflow which is supposed to
contain all tests for callstack overflow-related problems. 
							
						 
						
							2015-08-14 20:19:58 -07:00  
				
					
						
							
							
								 
						
							
							
								9413f711b9 
								
							
								 
							
						 
						
							
							
								
								VM: the JIT_PROFILING special object is never used, so rename it to  
							
							... 
							
							
							
							JIT_UNUSED (removing it breaks boot images) 
							
						 
						
							2015-08-14 20:19:53 -07:00  
				
					
						
							
							
								 
						
							
							
								81057c4108 
								
							
								 
							
						 
						
							
							
								
								VM: the context_object_count must be wrong, there are only 4 of them  
							
							
							
						 
						
							2015-08-14 20:19:50 -07:00  
				
					
						
							
							
								 
						
							
							
								ceb75057da 
								
							
								 
							
						 
						
							
							
								
								change ERROR: words from throw-foo back to foo.  
							
							
							
						 
						
							2015-08-13 16:13:05 -07:00  
				
					
						
							
							
								 
						
							
							
								c21a154056 
								
							
								 
							
						 
						
							
							
								
								core: callstack is a builtin type and a class name. rename the *stack words that grab the current stack get-foostack to avoid the callstack builtin conflict and for better symmetry with set-foostack.  
							
							
							
						 
						
							2015-08-13 10:11:59 -07:00  
				
					
						
							
							
								 
						
							
							
								02008979d9 
								
							
								 
							
						 
						
							
							
								
								factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon.  
							
							
							
						 
						
							2015-08-12 15:26:18 -05:00  
				
					
						
							
							
								 
						
							
							
								4b8b617ea4 
								
							
								 
							
						 
						
							
							
								
								kernel.tests: address of fault is now in the 3rd element, so these tests  
							
							... 
							
							
							
							need to be updated 
							
						 
						
							2015-08-04 16:02:10 +02:00  
				
					
						
							
							
								 
						
							
							
								5e29aac0a6 
								
							
								 
							
						 
						
							
							
								
								Docs: various more compiler-related docs  
							
							
							
						 
						
							2015-07-28 17:58:28 -07:00  
				
					
						
							
							
								 
						
							
							
								4c2c8f133f 
								
							
								 
							
						 
						
							
							
								
								vm: rename some primitives, and some cleanup.  
							
							... 
							
							
							
							* quot-compiled? => quotation-compiled?
* optimized? => word-optimized? 
							
						 
						
							2015-07-15 11:13:52 -07:00  
				
					
						
							
							
								 
						
							
							
								43d6f1d3e2 
								
							
								 
							
						 
						
							
							
								
								factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:.  
							
							
							
						 
						
							2015-07-02 17:28:17 -07:00  
				
					
						
							
							
								 
						
							
							
								59f3b1ea57 
								
							
								 
							
						 
						
							
							
								
								Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"  
							
							... 
							
							
							
							Needs a bit more work.
This reverts commit 7e54cc2824 
							
						 
						
							2015-07-02 13:47:06 -07:00  
				
					
						
							
							
								 
						
							
							
								7e54cc2824 
								
							
								 
							
						 
						
							
							
								
								factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!  
							
							
							
						 
						
							2015-07-02 11:36:08 -07:00  
				
					
						
							
							
								 
						
							
							
								d47f9447c3 
								
							
								 
							
						 
						
							
							
								
								kernel-docs: Fix link from class to class-of.  
							
							
							
						 
						
							2015-06-30 21:43:56 -07:00  
				
					
						
							
							
								 
						
							
							
								44e8e7b344 
								
							
								 
							
						 
						
							
							
								
								primitives: Change PRIMITIVE: to check that the word is in that vocabulary and the stack effect is correct.  
							
							... 
							
							
							
							Use PRIMITIVE: in core/ and basis/ 
							
						 
						
							2015-06-25 18:02:03 -07:00  
				
					
						
							
							
								 
						
							
							
								11e906139b 
								
							
								 
							
						 
						
							
							
								
								VM: code_block::scan, make it so the method always returns -1 if scan can't be determined, part of the fix for  #1265  
							
							
							
						 
						
							2015-01-15 09:29:13 +00:00  
				
					
						
							
							
								 
						
							
							
								990af22dc6 
								
							
								 
							
						 
						
							
							
								
								VM: renamed version and git-label to vm-version and vm-git-label.  
							
							
							
						 
						
							2014-11-10 23:02:13 -08:00  
				
					
						
							
							
								 
						
							
							
								090f4fddd5 
								
							
								 
							
						 
						
							
							
								
								VM: Three new special objects added to keep track of the builds version number, git label and compilation time respectively. The info is exposed in the system:version-info word and also shown in the banner during startup.  
							
							... 
							
							
							
							Conflicts:
	Nmakefile
	basis/ui/tools/listener/listener.factor
	core/alien/strings/strings.factor 
							
						 
						
							2014-11-10 23:01:52 -08:00  
				
					
						
							
							
								 
						
							
							
								4a96e6163b 
								
							
								 
							
						 
						
							
							
								
								VM: new primitive (callback-room) for querying the VM about memory usage  
							
							... 
							
							
							
							The word works exactly like (code-room) except it looks at the memory
usage in the callback heap instead of the code heap. 
							
						 
						
							2014-09-29 07:30:21 -07:00  
				
					
						
							
							
								 
						
							
							
								4867e7bc96 
								
							
								 
							
						 
						
							
							
								
								VM: try and recover with a kernel error from the callback heap running out  
							
							
							
						 
						
							2014-09-29 07:30:20 -07:00  
				
					
						
							
							
								 
						
							
							
								917ce9f773 
								
							
								 
							
						 
						
							
							
								
								kernel: fix help-lint warning for 2with.  
							
							
							
						 
						
							2014-07-22 07:47:28 -07:00  
				
					
						
							
							
								 
						
							
							
								60ffe0680e 
								
							
								 
							
						 
						
							
							
								
								kernel: new combinator 2with = with with  
							
							
							
						 
						
							2014-07-22 07:40:13 -07:00  
				
					
						
							
							
								 
						
							
							
								0c3580844d 
								
							
								 
							
						 
						
							
							
								
								kernel: remove ?execute, not used much, and a little bit confusing.  
							
							
							
						 
						
							2014-06-07 09:56:47 -07:00  
				
					
						
							
							
								 
						
							
							
								906f796094 
								
							
								 
							
						 
						
							
							
								
								kernel.private: add ERROR-OUT-OF-FIXNUM-RANGE on the Factor side  
							
							
							
						 
						
							2014-06-07 14:36:53 +02:00  
				
					
						
							
							
								 
						
							
							
								05c35ebda3 
								
							
								 
							
						 
						
							
							
								
								kernel: change errors to be in kernel.private.  
							
							
							
						 
						
							2014-06-04 14:33:02 -07:00  
				
					
						
							
							
								 
						
							
							
								6627a3327b 
								
							
								 
							
						 
						
							
							
								
								kernel: symbolic constants for the various kernel errors  
							
							
							
						 
						
							2014-06-04 23:16:40 +02:00  
				
					
						
							
							
								 
						
							
							
								57f9d78892 
								
							
								 
							
						 
						
							
							
								
								improve help by linking to types directly.  
							
							
							
						 
						
							2014-05-23 20:20:15 -07:00  
				
					
						
							
							
								 
						
							
							
								98935b7f15 
								
							
								 
							
						 
						
							
							
								
								docs: change ``{ $quotation "( x -- y )" }`` to ``{ $quotation ( x -- y ) }``.  
							
							
							
						 
						
							2014-05-18 20:09:10 -07:00  
				
					
						
							
							
								 
						
							
							
								5a9e7cd374 
								
							
								 
							
						 
						
							
							
								
								classes.builtin: Add the BUILTIN: keyword which lets builtin classes show up in source files. Probably could use save-location to allow editing, but it seemed to break things.  
							
							
							
						 
						
							2013-03-10 12:05:38 -07:00  
				
					
						
							
							
								 
						
							
							
								3582a6c624 
								
							
								 
							
						 
						
							
							
								
								kernel: Add 4dup, 4drop, and 4cleave.  
							
							
							
						 
						
							2012-10-22 09:47:34 -07:00  
				
					
						
							
							
								 
						
							
							
								76882d2c25 
								
							
								 
							
						 
						
							
							
								
								kernel: adding docs for "same?"  
							
							
							
						 
						
							2012-07-21 19:43:16 -07:00  
				
					
						
							
							
								 
						
							
							
								71cd7c5f81 
								
							
								 
							
						 
						
							
							
								
								kernel: adding "same?" which is "bi@ =".  
							
							
							
						 
						
							2012-07-21 10:22:29 -07:00  
				
					
						
							
							
								 
						
							
							
								ee721d1811 
								
							
								 
							
						 
						
							
							
								
								kernel: Change the example for with to be more clear. Division example credit goes to chezmax.  
							
							
							
						 
						
							2012-02-16 09:49:08 -08:00  
				
					
						
							
							
								 
						
							
							
								e24400679f 
								
							
								 
							
						 
						
							
							
								
								vm: more defense against multi-faulting  
							
							... 
							
							
							
							* Clear faulting_p from a safepoint rather than inside general_error, because jumping into unwind-native-frames could blow up.
* Handle multiple faults from fatal_error by breakpointing. Is there anything else we can safely do at that point?
* Verify memory protection faults in the top half of the signal handlers because signal dispatch could fault. Treat memory faults during gc or fep as fatal errors.
* Add a function factor_vm::abort() that restores the default SIGABRT handler and ::abort()s. Use it from fatal_error() so we get useful context from gdb and so the user gets feedback from the system crash reporter that Factor blew up and didn't just disappear.
* In factorbug(), don't proceed with .s .r .c if it would be unsafe to do so.
* Don't pile on signals if we've already called fatal_error(). 
							
						 
						
							2011-11-12 13:02:57 -08:00  
				
					
						
							
							
								 
						
							
							
								ed24890dce 
								
							
								 
							
						 
						
							
							
								
								io.backend.unix: init-signal-pipe function  
							
							... 
							
							
							
							Currently just reads off signal numbers and drops them. 
							
						 
						
							2011-11-08 08:42:48 -08:00