Daniel Däschle
cf97a8dbbf
builtin,cgen: rename `Option` to `_option` ( #14317 )
2022-05-08 14:03:55 +02:00
Delyan Angelov
f8bf3db568
markused: always include slice_ni & substr_ni too (support s#[] and a#[] in -skip-unused)
2022-02-14 19:05:30 +02:00
Delyan Angelov
4597c74d1a
markused: fix `v -gc boehm -skip-unused cmd/vls`
2022-01-17 16:32:40 +02:00
Alexander Medvednikov
59ed4be49a
all: update copyright year
2022-01-04 12:21:12 +03:00
Delyan Angelov
41e763f79c
checker: add error for `type StructAlias = Struct struct Struct { field StructAlias }`
2022-01-02 15:54:40 +02:00
yuyi
cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls ( #12898 )
2021-12-19 18:25:18 +02:00
Delyan Angelov
6ff953d936
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap ( #12523 )
2021-12-16 15:59:46 +02:00
Delyan Angelov
df7f2aa8a3
all: support `[markused]` tags for fns/consts/globals
2021-12-15 14:34:49 +02:00
Delyan Angelov
1a6899e85e
cgen: fix building with `-no-preludes -no-builtin -skip-unused` (part 2)
2021-12-15 13:30:21 +02:00
Delyan Angelov
159a9c3070
markused: fix `-skip-unused` on programs with generic methods ( fix #12306 )
2021-10-27 17:22:26 +03:00
Delyan Angelov
5dd3864617
markused: fix `v -skip-unused cmd/tools/vpm.v` regression after 98b2bdb
2021-10-18 08:43:56 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init ( fix #11448 ) ( #11562 )
2021-09-21 16:20:09 +03:00
Delyan Angelov
bd65ceb463
v.markused: remove __print_assert_failure from all_fn_root_names
2021-09-17 21:47:22 +03:00
Enzo
cc8ee5fb84
all: introduce `isize` and `usize` ( #11437 )
2021-09-08 05:53:39 +03:00
Delyan Angelov
f33f216698
v.markused: fix compilation with `-prod -skip-unused` of programs that embed files
2021-08-30 17:57:33 +03:00
Delyan Angelov
34d39ccb64
builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests ( #11091 )
2021-08-13 18:37:34 +03:00
Miccah
cc9463401e
http: change server handler from function to interface ( #10994 )
2021-08-01 15:50:11 +03:00
Uwe Krüger
45ad48d76a
cgen: properly handle initialization expression for globals ( #10981 )
2021-07-28 08:11:55 +03:00
Delyan Angelov
ef0161c233
v.markused: handle compiling vweb, `-live` and orm example programs
2021-07-27 15:50:42 +03:00
Delyan Angelov
6e0c9f637d
v.markused: support `import json` programs too
2021-07-27 13:00:07 +03:00
Uwe Krüger
55c5b9ce7b
cgen: panic with error message when `go` command fails ( #10943 )
2021-07-25 01:13:34 +03:00
Delyan Angelov
45a15755b8
v.builder: implement -show-callgraph
2021-07-24 13:32:56 +03:00
Delyan Angelov
9d241f75eb
v.markused: add string_at_with_check to the roots
2021-07-11 12:03:37 +03:00
Delyan Angelov
d307ab2c7c
v.markused: fix `-skip-unused -gc boehm` after removing of ustring
2021-07-05 16:48:03 +03:00
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