Daniel Däschle
0f9537ece5
all: remove ustring ( #10630 )
2021-07-03 20:14:09 +03:00
Uwe Krüger
a8437584aa
gc: extend optimized mode to channel buffers ( #10443 )
2021-06-14 18:12:47 +03:00
Uwe Krüger
5ee1ded3fb
gc: extend optimized mode to maps ( #10426 )
2021-06-13 06:26:43 +03:00
Uwe Krüger
0e2c86310a
GC-boehm: extend optimized mode to all `array` methods ( #10406 )
2021-06-10 21:26:17 +03:00
Uwe Krüger
811a3e1d38
builtin: optimize `array.repeat()` ( #10396 )
2021-06-09 12:52:30 +03:00
Uwe Krüger
a2243054a5
builtin: fix memory corruption in array `.clone()` and `.repeat()` ( #10394 )
2021-06-08 23:23:28 +03:00
Delyan Angelov
9924f6c54b
ci: fix build-vc job
2021-06-05 18:26:56 +03:00
Delyan Angelov
55ef849cd2
v.markused: trim unused map fns for programs that do not use them
2021-06-05 17:30:25 +03:00
Delyan Angelov
5cb2683e97
v.gen.c,v.markused: fix `println(ch)` when ch is a channel
2021-06-01 13:46:59 +03:00
penguindark
d8d05e0106
all: new string interpolation in pure V ( #10181 )
2021-05-24 05:20:45 +03:00
Delyan Angelov
bf3af40f13
v.markused: support `./v -skip-unused -freestanding run vlib/os/bare/bare_example_linux.v` too
2021-05-23 16:25:34 +03:00
Delyan Angelov
bc01de2181
ast: mark ast.File{} with `[heap]`, and use []&ast.File consistently
2021-05-22 19:06:55 +03:00
Delyan Angelov
2086e6f1c1
builtin, cgen: implement chunked allocation of 16MB blocks with -prealloc ( #10130 )
2021-05-19 10:35:56 +03:00
Delyan Angelov
3a1cae0c4f
v.markused: assume methods for operator overload are always used
2021-05-08 15:13:16 +03:00
Delyan Angelov
adffae4453
v.builder: refactor to make adding other post checker stages easier
2021-05-06 14:37:49 +03:00
Delyan Angelov
818983de43
v.markused: fix for `v -skip-unused ~/.vmodules/ui/examples/users.v`
2021-05-04 19:05:52 +03:00
Delyan Angelov
ae898e77c5
v.markused: handle interface implementation methods, and vweb programs
2021-05-03 18:40:39 +03:00
Delyan Angelov
53ae9dda4b
cgen: speed up auto generated Array_*_contains and Array_*_index methods
...
Uses a.data instead of array_get, since the auto generated methods
have the calls in a loop that guarantees that the bounds of the arrays
will not be exceeded, thus the inner bounds checking can be skipped.
Results in +5% improvement for V compiled with tcc, doing `v -o x.c cmd/v`,
more with -prod.
2021-05-02 20:35:04 +03:00
Uwe Krüger
10bf974cda
all: gc: provide optimized mode ( #9716 )
2021-04-14 00:40:26 +02:00
Delyan Angelov
6d2d956c80
tests: fix -skip-unused test on macos
2021-04-12 10:24:13 +03:00
Delyan Angelov
8193efb379
v.markused: mark all `pub` functions on `-shared -skip-unused`
2021-04-12 09:29:34 +03:00
ka-weihe
5273214ec2
map: rename methods ( #9657 )
2021-04-10 04:00:29 +02:00
Delyan Angelov
40d32c7eed
v.markused: fix -skip-unused regression for v itself and for tetris
2021-04-09 20:04:14 +03:00
Alexander Medvednikov
7385f8e56b
all: a massive merge of ast and table modules
2021-04-02 01:57:09 +03:00
Delyan Angelov
f8f74d8587
builtin: add panic_optional_not_set and use it in cgen for fncall()? in main
2021-03-24 14:13:58 +02:00
spaceface
9ed9e7aff0
builtin: cleanup option names (part 1) ( #9293 )
2021-03-14 01:54:46 +01:00
spaceface
e9797c618a
all: implement error interfaces ( #9291 )
2021-03-13 18:13:50 +01:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) ( #8924 )
2021-02-28 22:24:29 +03:00
Lukas Neubert
5aebd646bb
fmt: keep some line comments in multi line arrays ( #8969 )
2021-02-26 09:01:03 +02:00
Nick Treleaven
15daeaeafa
cgen: add fixed array bounds checking for non-literal index ( #8832 )
2021-02-22 14:54:24 +02:00
Nick Treleaven
01aa09d515
checker: do not allow copying any map lvalue ( #8662 )
2021-02-16 12:46:12 +01:00
Delyan Angelov
e809264f12
builder,checker: split the unused marking into a new `v.markused` module
2021-02-13 18:02:31 +02:00