Commit Graph

662 Commits (a55c8ee6717a9443f974204dd1dcecfa147ef0bb)

Author SHA1 Message Date
Slava Pestov 5279845ee0 tools.deploy.shaker: also include tools.errors if user requests debugger to be part of image. This ensures useful printouts of parse errors 2010-01-20 07:01:29 -06:00
Slava Pestov 5606825e8b vm: remove primitive table, non-optimizing compiler now looks up primitives with dlsym() 2010-01-19 20:00:33 +13:00
Slava Pestov 637a77c018 Stop wearing monocle and use the term "entry point" instead of "XT" throughout VM and compiler; also remove two unused relocation types 2010-01-18 20:54:00 +13:00
Slava Pestov 1c10196c43 Rename kernel.private:getenv/setenv to special-object/set-special-object to mirror recent renaming on the VM side 2010-01-13 18:08:18 +13:00
Slava Pestov 9e1c5adca7 tools.deploy.shaker: "specializations" word-prop no longer used 2009-12-05 18:21:46 -05:00
Slava Pestov 2f024f8b5c tools.deploy.test.5: revert accidental screwup 2009-12-02 17:56:49 -05:00
Slava Pestov cf8e03ad39 tools.deploy: hello-ui had reflection level of 2, not 1 unnecessarily; tools.deploy.backend now passes -pic=0 to avoid saving PICs in the deployed image 2009-12-02 05:33:22 -06:00
Slava Pestov 0612bc6177 Factor source files should not be executable 2009-11-21 17:50:43 -06:00
Slava Pestov 39a2d4303e tools.time: update docs 2009-11-21 17:46:27 -06:00
Slava Pestov bbb95db5e6 tools.threads: report correct sleep time 2009-11-21 17:45:47 -06:00
Slava Pestov c2e9cc8ee7 tools.deploy.test.17: fix typo 2009-11-20 15:35:12 -06:00
Slava Pestov 10800a009a tools.deploy.test.17: database deployment test 2009-11-20 03:23:24 -06:00
Slava Pestov ffd7de02d6 Update a few places that used string C type names to use words; fixes some deploy tests 2009-11-20 03:21:48 -06:00
Slava Pestov 24c3ddbbde Clean up startup/shutdown hook code 2009-11-20 00:57:49 -06:00
Slava Pestov f47b72d98b Fix potential assertion failure if GC was invoked while enabling profiling 2009-11-19 01:49:26 -06:00
Doug Coleman f4450653a9 remove system-millis and update vocabs to use system-micros or nano-count 2009-11-18 20:56:09 -06:00
Doug Coleman 6f7ec206a1 rename millis to system-millis, micros to system-micros, add nano-count 2009-11-18 15:58:48 -06:00
Doug Coleman cc194416f9 Merge branch 'master' into startup
Conflicts:
	core/bootstrap/primitives.factor
	vm/run.hpp
2009-11-15 02:52:50 -06:00
Slava Pestov 78aa73b29e tools.deploy.test: failing tests now have the actual and minimum size 2009-11-14 02:01:23 -06:00
Slava Pestov bb8eabba36 Unit test fixes 2009-11-13 23:00:50 -06:00
Doug Coleman 6c75287bef fix using 2009-11-12 18:46:21 -06:00
Doug Coleman b71d86a1dc update more 8bit encoding usages 2009-11-12 18:36:47 -06:00
Slava Pestov 2c8f67851e vm: fix GC safety issue in callers of unbox_array_size(), and change how disable-gc-events works so that it doesn't make a byte array that's too large 2009-11-11 05:21:03 -06:00
Slava Pestov 473cc7db4a stack-checker: tighten some screws in error reporting 2009-11-09 00:17:24 -06:00
Slava Pestov 5d79450d9d Use a more compact representation for "compiled-uses" and "compiled-generic-uses" word-props; reduces image size 2009-11-08 06:08:04 -06:00
Slava Pestov 1d4ec1959d stack-checker.known-words: fix declared output type for dispatch-stats primitive 2009-11-06 04:36:46 -06:00
Joe Groff 4b0edb34d3 Merge branch 'master' of git://factorcode.org/git/factor 2009-11-05 22:23:21 -06:00
Slava Pestov 4061951d1c vm: simpler object space implementation. begin-scan/next-object/end-scan primitives replaced by a single all-instances primitive 2009-11-05 21:49:03 -06:00
Joe Groff 61d579360d remove non-primitive-related uses of tuck from basis 2009-11-05 17:03:24 -06:00
Slava Pestov 9ca1ab7ccc tools.dispatch: split off method dispatch statistics from tools.time 2009-11-05 01:36:26 -06:00
Slava Pestov 47df580081 tools.time: overhaul 2009-11-05 01:07:59 -06:00
Slava Pestov 0913758805 tools.memory: tweak 2009-11-03 23:52:02 -06:00
Slava Pestov e4ad642134 vm: 4 bit tags, new representation of alien objects makes unbox-any-c-ptr more efficient (work in progress) 2009-11-02 04:25:54 -06:00
Slava Pestov f21199005d Merge branch 'master' into new_gc 2009-11-01 22:17:27 -06:00
Slava Pestov e28580dd0f vm: faster sweep algorithm 2009-11-01 20:24:25 -06:00
Joe Groff f858f8e03b tools.deprecation is always loaded now; no need to waffle in the docs 2009-10-31 16:53:18 -05:00
Slava Pestov f102d1073e tools.memory: update for language changes 2009-10-30 03:15:07 -05:00
Slava Pestov 6f9336c29e Merge branch 'master' into new_gc 2009-10-30 03:03:05 -05:00
Slava Pestov a3522554f3 tools.memory: add gc-stats. for viewing event statistics 2009-10-30 02:45:16 -05:00
Doug Coleman 1d12a6707d sigma -> map-sum 2009-10-29 14:34:04 -05:00
Joe Groff 3fbe722561 Merge branch 'master' of http://factorcode.org/git/factor
Conflicts:
	basis/locals/locals.factor
	basis/peg/peg.factor
	extra/infix/infix.factor
2009-10-28 16:17:24 -05:00
Doug Coleman bd13e018dd memq? -> member-eq?, sorted-memq? -> sorted-member-eq? 2009-10-28 15:02:00 -05:00
Doug Coleman 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Slava Pestov 08e7d25dc5 change-each -> map!, deep-change-each -> deep-map! 2009-10-27 22:32:56 -05:00
Joe Groff 935c0797c3 update existing code for [let change 2009-10-27 22:05:37 -05:00
Slava Pestov a1aac42786 vm: clean up gc events, remove -verbosegc switch, fix compaction bug 2009-10-27 21:31:28 -05:00
Slava Pestov 028a7be4d6 tools.memory: experimenting with some GC event data mining 2009-10-27 16:31:45 -05:00
Slava Pestov 21f1fe7aaf tools.time: remove crappy old GC stats 2009-10-27 03:37:05 -05:00
Slava Pestov d95a98eb9c vm: add primitives for getting at GC events, data-room and code-room primitives now return structs instead of arrays 2009-10-27 03:32:28 -05:00
Slava Pestov e793a72060 vm: remove crummy old GC stats, split off free list code, clean up various other things 2009-10-26 22:08:35 -05:00
Slava Pestov cf247c23a2 vm: room. now prints mark stack size, and total/contiguous free space 2009-10-25 13:18:06 -05:00
Slava Pestov 2b142dabae Re-organize a few things to reduce '-include=' image size 2009-10-23 04:32:17 -05:00
Doug Coleman 649323ebe0 Merge branch 'master' of git://factorcode.org/git/factor 2009-10-22 13:20:17 -05:00
Slava Pestov 0c40eb51ae tools.profiler: fix tests 2009-10-22 05:40:31 -05:00
Joe Groff b89047b3d3 fix tools.deploy test 2009-10-21 22:12:28 -05:00
Joe Groff c3b8847936 update a bunch of alien-callbacks and alien-indirects to use c-type words 2009-10-21 21:10:11 -05:00
Joe Groff cc5f9ff98a update cocoa bridge to use c-type words 2009-10-21 18:17:29 -05:00
Doug Coleman 0d4b9132d7 fix a bunch of typos in docs 2009-10-21 17:40:43 -05:00
Doug Coleman 6b6e56a179 change add-init-hook to add-startup-hook, new add-shutdown-hook word 2009-10-19 22:17:02 -04:00
Slava Pestov b427eb3f9a tools.deploy: increase terrain size tolerance, decrease windows size tolerance 2009-10-19 06:11:00 -05:00
Slava Pestov b5455bd9df tools.deploy.test: cheat on windows until we have class stripping 2009-10-18 15:24:09 -05:00
Slava Pestov 63ca8ee5cc tools.deploy.shaker: strip out typed word props 2009-10-16 23:59:45 -05:00
Slava Pestov 5afce2cc9e alien.c-types: c-type no longer calls parser at runtime, tools.deploy.shaker now strips out runtime specialized array code generation 2009-10-16 23:50:17 -05:00
Slava Pestov fb79aec97e typed: fix deployment 2009-10-16 21:22:01 -05:00
Slava Pestov 8da50bdce9 Merge branch 'disassemble-quot' of git://github.com/phildawes/factor 2009-10-09 04:17:27 -05:00
Slava Pestov 978647dc39 Merge branch 'master' of git://factorcode.org/git/factor 2009-10-09 03:21:31 -05:00
Doug Coleman 9a09c3ced8 fix using 2009-10-08 12:30:43 -05:00
Phil Dawes 18bd437e3f disassemble can handle anonymous quotations 2009-10-07 17:07:00 +01:00
Slava Pestov 697e2342d0 vm: put code block owner directly in the header, instead of as the first entry in the literal table. Reduces x86-64 image size by ~700kb, also eliminates separate 'strip' set of staging images from deploy tool 2009-10-06 06:25:07 -05:00
Slava Pestov bcd5c5c635 Fix deploy tests and update command-line docs a bit 2009-10-03 06:53:23 -05:00
Slava Pestov 21eea4d88c Allow access to command line arguments in deployed apps 2009-10-02 21:00:12 -05:00
Doug Coleman cfdaaec068 move verbose-tests? out of private, change decode-test word to set the verbose mode itself, use images.pam in images test vocabs 2009-10-02 16:20:33 -05:00
Doug Coleman 67167cf9ea Merge branch 'docs' of git://github.com/klazuka/factor into klazuka
Conflicts:
	basis/math/vectors/vectors-docs.factor
2009-10-02 15:58:45 -05:00
Keith Lazuka 7ddb8d8525 tools.crossref: Added $subsection to 'M: link uses' markup list 2009-10-02 12:18:33 -04:00
Keith Lazuka 405e5d015b docs: change $subsection to $subsections 2009-10-02 12:15:48 -04:00
Keith Lazuka 6e12c254ef tools.test: added a verbose-tests? flag to control test experiment pprint verbosity
I needed this for my image decode unit tests because I don't want the test results to prettyprint big bitmap byte-arrays.
2009-09-30 16:58:07 -04:00
Joe Groff 5054c954be add USING:s and rearrange definitions so macosx can compile without parsing c-type strings 2009-09-26 23:14:57 -05:00
Slava Pestov beab46517e tools.deploy: fix test 11 2009-09-24 13:00:26 -05:00
Slava Pestov 7ea8832556 Tweaks to reduce deployed image size 2009-09-24 06:24:43 -05:00
Slava Pestov 576e725662 vm: Fix potential crash in <word> primitive if profiling is enabled 2009-09-24 04:31:11 -05:00
Slava Pestov 7012212708 tools.crossref: print message if there are no usages 2009-09-23 22:50:26 -05:00
Doug Coleman 51ddc963b8 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	core/generic/generic-tests.factor
2009-09-22 10:25:42 -05:00
Slava Pestov fe948f0b26 Move breakpoint word from tools.annotations to tools.walker to reduce amount of dependencies tools.annotations pulls into a minimal image 2009-09-22 03:16:31 -05:00
Doug Coleman 5cb34724b7 Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/classes/struct/struct-tests.factor
	basis/functors/functors-tests.factor
	basis/specialized-arrays/specialized-arrays-tests.factor
2009-09-20 23:02:49 -05:00
Doug Coleman eceed177d6 replace usages of <" with """ 2009-09-20 22:42:40 -05:00
Joe Groff 36fc70160d update tools.disassembler.udis structs 2009-09-18 17:57:50 -05:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Slava Pestov 7ae147c3bf tools.deploy.test: cut Windows some slack 2009-09-12 13:24:45 -05:00
Slava Pestov 7f2e2b1777 Specialized array overhaul
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov 7473983383 tools.annotations: document the fact that certain words should not be annotated 2009-09-08 20:49:12 -05:00
Slava Pestov e2fa28a727 tools.deploy.shaker: strip out math.vectors specializations 2009-09-08 15:20:46 -05:00
Slava Pestov 2d46cfdf9e Improved line number handling for unit test failure errors 2009-09-08 13:13:30 -05:00
Slava Pestov 0ad4557d62 tools.deploy: fix facepalm 2009-09-07 22:48:57 -05:00
Slava Pestov ed60c89e94 tools.deploy: add unit test to ensure Cocoa binding works in deployed apps 2009-09-07 17:59:34 -05:00
Slava Pestov 1bdaebdf5e tools.deploy.shaker: strip out struct slot info 2009-09-04 21:59:49 -05:00
Slava Pestov b307c6dac3 Fix tree shaker again, gah 2009-09-02 07:28:40 -05:00
Slava Pestov e3f5452502 tools.deploy.shaker: fix snafu 2009-09-02 04:30:29 -05:00
Slava Pestov 94c89e55e6 tools.deploy.shaker: strip out call( and execute( runtime checking in a way that still allows the inlining optimization to work 2009-08-31 16:48:10 -05:00
Slava Pestov 23f34febbb Fix image size regression with struct array tree shaking 2009-08-31 16:34:58 -05:00
Slava Pestov d23688ea1a tools.deploy.shaker: strip out functor-words global, fixing size regression from Joe's FUNCTOR-SYNTAX: patch 2009-08-30 05:36:16 -05:00
Slava Pestov 11b2a409c3 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 22:11:20 -05:00
Joe Groff 51405868d1 ignore deprecations in words that are themselves deprecated 2009-08-29 17:41:21 -05:00
Samuel Tardieu b7c50e6159 Merge branch 'master' of git://factorcode.org/git/factor 2009-08-29 16:23:13 +02:00
Slava Pestov 790e7ec0bc tools.deprecation: suppress 'computing usage index...' message 2009-08-28 05:32:34 -05:00
Slava Pestov a96743d375 tools.deprecation: don't bail out if a word's usages are not all words 2009-08-28 05:31:27 -05:00
Slava Pestov 3f493bce1a Merge branch 'master' of git://factorcode.org/git/factor 2009-08-27 20:30:08 -05:00
Slava Pestov f1b4d94f2f tools.deploy: remove malloc debugging better, and don't set next-method word prop for methods that don't call-next-method 2009-08-27 20:29:16 -05:00
Slava Pestov 0d70d07cf1 tools.deploy.test: give PowerPC an extra 100kb 2009-08-27 20:27:35 -05:00
Slava Pestov c925724d7b Improve destructors docs, fix bug where debug-leaks? wasn't being switched off 2009-08-24 21:44:48 -05:00
Slava Pestov e44a0158e6 tools.destructors: leaks now tracks leaks globally 2009-08-24 20:45:06 -05:00
Slava Pestov b12bbaf7ec tools.destructors: destructors. and leaks words now output a 'show instances' link which lists all relevant disposables 2009-08-24 20:21:38 -05:00
Slava Pestov 3be328056d libc: use central disposables mechanism to track mallocs 2009-08-24 20:21:03 -05:00
Slava Pestov 46045c882e Disposables are now registered in a global disposables set. To take advantage of this, subclass disposable instead of providing a disposed slot and call new-disposable instead of new. tools.disposables defines two words, 'disposable.' and 'leaks', to help track down resource lifetime problems 2009-08-24 02:26:13 -05:00
Slava Pestov e42216a569 tools.deploy.shaker: more compact next-method shaking 2009-08-23 19:18:12 -05:00
Slava Pestov 387007abfe tools.deploy.shaker: fix regression; strip-compiler-classes wasn't working 2009-08-23 17:54:37 -05:00
Slava Pestov 3979608b09 tools.deploy: faster default method stripping 2009-08-22 19:26:56 -05:00
Slava Pestov d85b66536f Add docs for break and B words 2009-08-22 17:45:18 -05:00
Joe Groff 94c50cfaeb install deprecation definition-observer as an init-hook 2009-08-20 16:18:06 -05:00
Joe Groff 6089251574 move deprecation to tools.deprecation; load with bootstrap.tools 2009-08-20 16:17:36 -05:00
Doug Coleman 3f3d57032b Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring 2009-08-13 19:21:44 -05:00
Slava Pestov d0fe741746 tools.deploy.shaker: strip out specialized vector words 2009-08-09 04:48:44 -05:00
Slava Pestov 83e0c60573 tools.test: flush the output stream 2009-08-08 23:03:53 -05:00
Slava Pestov 3b2fd98e7c Refactor source-file-errors a little bit to remove some code duplication, and so that clicking 'Edit' in error list tool works for parse errors in unit tests 2009-08-04 21:01:21 -05:00
Samuel Tardieu 761ebf0437 Merge branch 'master' of git://factorcode.org/git/factor 2009-07-30 12:09:31 +02:00
Slava Pestov 4175585fd4 Merge branch 'master' into dcn 2009-07-28 11:20:43 -05:00
Slava Pestov 7c5e2f2933 tools.annotations: doc addition 2009-07-28 06:49:03 -05:00
Joe Groff 7493e07c68 disassemble method for byte-arrays. HEX{ abcd } syntax for byte-arrays 2009-07-27 22:14:26 -05:00
Doug Coleman c762d2b422 scaffold tools now uses the boolean type instead of "a boolean" 2009-07-24 18:09:14 -05:00
Joe Groff 4b8132d777 factor compilation unit from tools.annotations:reset 2009-07-14 11:43:32 -05:00
Joe Groff c0e99e738e fix inaccuracy in tools.annotations docs 2009-07-14 11:43:11 -05:00
Slava Pestov afdd537681 tools.annotations: add (annotate) word which doesn't create a compilation unit for use in loops 2009-07-13 23:35:21 -05:00
Samuel Tardieu 28aa685a82 Merge branch 'symbolic-xt' 2009-07-10 11:21:10 +02:00
Slava Pestov daed003f33 vocabs.hierarchy: more refactoring, update existing code for new API 2009-07-06 04:55:23 -05:00
Slava Pestov f53efa88c6 tools.annotations: redo 'watch' so that it doesn't call 'datastack' anymore, instead use macros to capture stack values. This works better with compiler optimizations 2009-07-03 22:32:30 -05:00
Samuel Tardieu 6a65850608 WIP: crude xt>name disassembler help 2009-06-24 13:15:13 +02:00
Doug Coleman 166afc5784 add scaffold words for default vocab roots 2009-06-21 00:59:06 -05:00
Doug Coleman 3cabf3aeca Merge branch 'master' of git://factorcode.org/git/factor 2009-06-11 11:10:20 -05:00
Slava Pestov aaeeaa1e6f Fix load errors 2009-06-08 04:18:57 -05:00
Doug Coleman ce37c8e082 add a hexdump-file word 2009-06-05 22:49:07 -05:00
Slava Pestov d442167354 tools.annotations: work better on generic words 2009-05-27 19:36:52 -05:00
Doug Coleman 407377fc98 rename peek -> last and update all usages 2009-05-25 16:38:33 -05:00
Doug Coleman 95837d53bc use iota 2009-05-25 15:18:20 -05:00
Slava Pestov 909082e212 tools.disassembler.gdb: remove redundant using 2009-05-17 23:39:05 -05:00
Slava Pestov 7b76d64510 tools.deploy.shaker: update for parser.notes 2009-05-16 16:40:40 -05:00
Slava Pestov a0eb60906d Fix even more usings 2009-05-16 10:45:17 -05:00
Slava Pestov 132249660d Fix conflict 2009-05-16 09:48:42 -05:00
Doug Coleman 241e6a64bf call link-info instead of file-info, fix wonky spacing, name a constant 2009-05-15 22:31:50 -05:00
Slava Pestov b62630b5ac Updating code in basis and extra for stricter vocab search path semantics 2009-05-14 23:23:06 -05:00
Slava Pestov 0c1e519dcb Rename use+ to add-use, move search to vocabs.parser, EXCLUDE: bombs out if word doesn't exist 2009-05-13 22:15:48 -05:00
Slava Pestov ca6cbbb2f9 tools.annotations: now prints a table of values 2009-05-13 17:03:41 -05:00