John Benediktsson
29a2a25954
peg.javascript: add some other escapes since we're doing this. :-)
2016-06-11 15:22:20 -07:00
catb0t
385cf35e7f
peg.javascript.tokenizer: allow escaped quotes in strings
...
Previously, the tokenizer didn't understand
escaped quotes in string literals. Also added was
a test to ensure the escaping works.
2016-06-11 15:17:50 -07:00
Björn Lindqvist
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
Björn Lindqvist
6b95813dbc
VM: refactor the immediate_p check out of visit_pointer()
...
This avoids reassigning to slots that are never changed. It makes the minor-gc pass 2% faster.
2016-06-07 14:42:06 +02:00
Björn Lindqvist
33d5ecefd5
VM: refactor a struct into a c++11 lambda
2016-06-07 14:04:28 +02:00
Jon Harper
8a34de9626
rosetta-code.image-noise, use status bar for FPS
2016-06-04 07:23:43 -07:00
Jon Harper
b3155d980e
rosetta-code.image-noise, bring back fps after c7ca226
2016-06-04 15:43:32 +02:00
Doug Coleman
c7041fe96e
io.sockets.secure.windows: Windows sockets are a bit confused. Make a word
...
to get the handle out of two different paths. Probably needs more
refactoring but this makes it work.
2016-06-02 11:07:19 -07:00
Doug Coleman
05083ba503
io.sockets.secure.windows: No need to call file>> because we have a
...
win32-socket on the stack already.
2016-06-02 10:56:50 -07:00
Doug Coleman
b63aaff1c5
io.sockets.secure: (server) needs a method on secure for Windows too. Move the method to a vocab that both platforms load.
2016-06-02 10:25:11 -07:00
Doug Coleman
0f217b9cf0
http.server.static: sort files for static html directory listing. seems to be sorted on mac already, but not on linux. consider allowing a sort order parameter in the future.
2016-06-01 11:59:57 -07:00
Björn Lindqvist
9da7863917
tools.profiler.sampling.tests: attempt to fix the unit test that fails on x86.32 sometimes
2016-05-31 22:15:08 +02:00
Björn Lindqvist
a80aeea7f9
io.files.windows: make CreateFile-flags a normal word (fixes the recent test failures)
2016-05-31 17:04:34 +02:00
Björn Lindqvist
a58f8c76f4
VM: rename compile_inline_cache and refactor the loop body into emit_check_and_jump
2016-05-31 03:37:24 +02:00
Björn Lindqvist
dae2229957
VM: omit the type check if checking for fixnum and it's the first check
...
Previously: and ecx, 0xf ; cmp ecx, 0 ; jz <address> was generated. Now
instead: and ecx, 0xf ; jz <address> because the cmp, ecx, 0 instruction
is redundant.
2016-05-31 03:37:24 +02:00
Björn Lindqvist
59443dca01
VM: new method quotation_jit:nth
...
It's less tedious than writing array_nth(elements.untagged(), i + N) everywhere
2016-05-31 03:37:24 +02:00
Björn Lindqvist
91f335b424
style thing: indenting tuple slots
2016-05-31 03:37:23 +02:00
Alexander Iljin
8e2a65e5a2
io.files.info.windows: add a comment to open-read-handle
2016-05-30 12:35:26 -07:00
Alexander Iljin
aa7a285390
io.files.info.windows: fix flags in open-read-handle
...
Add FILE_SHARE_WRITE and FILE_SHARE_DELETE flags and calls CreateFile-flags
hook. This fixes file-readable? so that it uses the same flags as open-read
(issue #1470 ).
2016-05-30 12:35:25 -07:00
Alexander Iljin
ff26c3d39c
io.files.windows: add FILE_FLAG_BACKUP_SEMANTICS to CreateFile-flags
...
This provides additional access rights if the process has SE_BACKUP_NAME
or SE_RESTORE_NAME privileges. Does nothing otherwise.
2016-05-30 12:35:25 -07:00
Alexander Iljin
043c6984b9
io.files.info.windows: fix file-readable?
...
This fixes issue #1470 . Now the method tries to open the file handle for
reading and returns t on success. This approach makes Windows check the
current user's permissions.
2016-05-30 12:35:24 -07:00
Alexander Iljin
2264638a61
io.files.info.windows: add open-read-handle to reuse later
2016-05-30 12:35:23 -07:00
Alexander Iljin
2b68636207
io.files.info.windows: fix parameter name for get-file-information-stat
2016-05-30 12:35:23 -07:00
Doug Coleman
3494576ad8
io.files.windows: Add a unit test to make sure shared flags stay on.
2016-05-30 12:24:17 -07:00
Alexander Iljin
e302928510
vm: fix a typo in a comment
2016-05-30 12:11:56 -07:00
Alexander Iljin
3ea7fe616e
vm: fix warning C4800: forcing value to bool
...
The warning is issued by the Visual Studio 2015, treated as error.
2016-05-30 12:11:56 -07:00
Alexander Iljin
db9007a713
vm: give windows_stat fewer reasons to fail
...
More sharing flags mean that the file opening attempts will succeed even
if the file is already open by another process for writing or deleting.
2016-05-30 12:11:56 -07:00
Björn Lindqvist
4a471ba07c
VM: make it so compiling mega cache lookups doesn't generate stack frames ( #651 )
2016-05-30 08:23:18 +02:00
Björn Lindqvist
3b016bc254
VM: a bunch of more methods on the factor_vm class that can be made into funtions
2016-05-30 07:44:26 +02:00
Björn Lindqvist
00a64c9271
VM: name change no_non_safepoint_words_p -> stack_frame_p
...
It returns true if the quotation should be wrapped in a stack frame.
2016-05-30 07:44:20 +02:00
Björn Lindqvist
1fddf79724
VM: moving a few methods arounds
...
word_call, word_jump and emit_mega_cache_lookup are only used in quotations.cpp so they should be defined there too.
2016-05-30 03:03:10 +02:00
Björn Lindqvist
8f2738cd82
bootstrap.x86: using 32 bit regs as operands when it's safe to do so
...
It shaves off a few bytes as e.g and eax, 0xf is one byte shorter than and rax, 0xf
2016-05-30 02:39:06 +02:00
Björn Lindqvist
4509371f7c
VM: shorter definition of emit_check
2016-05-29 04:55:11 +02:00
Björn Lindqvist
b027285b48
VM: makes some factor_vm methods to free functions
2016-05-29 03:03:07 +02:00
Björn Lindqvist
941c9fabd4
alien.parser,gobject-introspection.ffi: fixing the manifest test errors (see #1463 )
2016-05-28 19:01:54 +02:00
Björn Lindqvist
b96077beb7
alien.parser: better fix for #1535
...
These changes ensure that reset-generic is called when parsing alien
words. Otherwise problems occur when you redefine generics as callbacks
or typedefs.
2016-05-28 17:22:45 +02:00
Björn Lindqvist
69f667edc8
alien.parser: make make-callback-type have the same signature as make-function
2016-05-28 17:21:45 +02:00
Björn Lindqvist
6f705c4944
gobject-introspection.ffi: new tests
2016-05-28 16:46:24 +02:00
Björn Lindqvist
350e890a03
alien.parser: fix for #1535
...
(CREATE-C-TYPE) needs to be called on the word naming the
callback. Otherwise the old definition remains in old-definition and you
can get a no word found error.
2016-05-27 20:54:52 +02:00
John Benediktsson
d902616d12
help: sigh sigh $predicate is used by help.lint.checks.
2016-05-26 17:43:29 -07:00
John Benediktsson
f2a5a8b4ea
help: sigh, let's just use the old word-help* name.
2016-05-26 17:40:34 -07:00
John Benediktsson
773edb680a
help: move predicate default word help.
2016-05-26 17:35:37 -07:00
John Benediktsson
fba27d66e4
help: minor change to use a default-word-help generic.
2016-05-26 16:54:33 -07:00
John Benediktsson
e38caddb30
help: change how default word help is done.
2016-05-26 16:52:29 -07:00
Doug Coleman
21461a1b75
core: selector-for and collector-for are the wrong naming convention--they should be selector-as and collector-as because they take exemplars.
...
The exemplar is the starting length of the output sequence in collector-as, so add another collector-for-as that takes a seq that we are making a collector for.
2016-05-26 14:36:11 -07:00
Doug Coleman
3307876cc2
io.files.unique: clean up the files that are created if not all files can be created.
2016-05-26 14:05:58 -07:00
Doug Coleman
a399439a5f
io.files.unique: Make sure the files are the same except for the suffix. Add unit test. Fix paths typo.
2016-05-25 17:49:59 -07:00
Doug Coleman
e364f1ebf1
unix.ffi: Add SHUT_* flags for shutdown() call.
2016-05-25 17:49:59 -07:00
Björn Lindqvist
0107595639
Build: drops debugging symbols, fixes #1634
2016-05-26 00:28:10 +02:00
Björn Lindqvist
179b565b2b
FUEL: set context to (factor-current-vocab), in case it's a word defined
...
in the current buffer
2016-05-25 23:00:45 +02:00