Commit Graph
442 Commits
Author SHA1 Message Date
Nigel Tao a6bf59006f Add max and min methods 2018-05-12 20:08:52 +10:00
Nigel Tao 131732e7eb Fix some built-in methods' effects 2018-05-12 17:55:57 +10:00
Nigel Tao 2919e51575 Add comment about ref/deref being unused 2018-05-12 17:45:41 +10:00
Nigel Tao eb377b9684 Delete obsolete set_literal_width special case 2018-05-12 15:55:53 +10:00
Nigel Tao bd12c54ab5 Rename mark to set_mark, part 1 of N 2018-05-12 14:17:26 +10:00
Nigel Tao 4afd7de09f Remove built-in limit method signatures 2018-05-12 14:05:04 +10:00
Nigel Tao 7a9554194c Allow built-in args' types to be refined 2018-05-11 14:49:15 +10:00
Nigel Tao 81decad445 Fix lang/check test for the implicit reset method 2018-05-11 10:32:59 +10:00
Nigel Tao 3ea85e770b Reorder ast.NewIf arguments 2018-05-11 10:25:39 +10:00
Nigel Tao 9a186b24fb Drop the redundant ast.Node.list3 field 2018-05-11 10:24:34 +10:00
Nigel Tao b65fdee306 Make the else-length-1 iterate tail explicit 2018-05-11 10:22:24 +10:00
Nigel Tao 8586cf8e3d Reset the GIF's LZW decoder if necessary 2018-05-10 14:42:10 +10:00
Nigel Tao 282b9c4b20 Place iterate params after vars, not before 2018-05-10 09:38:14 +10:00
Nigel Tao 79aded4797 Introduce a =: operator 2018-05-10 09:31:58 +10:00
Nigel Tao c762d50fb1 Reassign built-in idents' token ID values 2018-05-05 09:43:03 +10:00
Nigel Tao d371cc097a Tweak ioMethodAdvance implementation 2018-05-05 09:27:36 +10:00
Nigel Tao e8eeee371a Raise built-in ident capacity from 96 to 768 2018-05-05 09:23:10 +10:00
Nigel Tao 1702c1e303 Rename iterate's step to length 2018-05-05 08:25:23 +10:00
Nigel Tao 877b4f648f Remove p[i] for ptr-typed p 2018-05-04 13:29:51 +10:00
Nigel Tao 1435f1d43c Remove ptr base.u8 methods 2018-05-04 13:24:58 +10:00
Nigel Tao 96a549814d Change iterate variable types from ptr to slice 2018-05-04 13:20:34 +10:00
Nigel Tao d85a94360e Add length fact inside iterate blocks 2018-05-04 13:00:10 +10:00
Nigel Tao c9ec81f0d6 Remove (ptr base.u8).read_u32le method 2018-05-04 12:11:42 +10:00
Nigel Tao f64bf4af61 Allow p[i] for ptr-typed p; speed up std/crc32
name                          old speed      new speed      delta
wuffs_crc32_ieee_10k/clang     483MB/s ± 1%  2263MB/s ± 3%  +368.94%  (p=0.000 n=48+5)
wuffs_crc32_ieee_100k/clang    482MB/s ± 1%  2257MB/s ± 3%  +367.96%  (p=0.000 n=48+5)
wuffs_crc32_ieee_10k/gcc       419MB/s ± 1%  2473MB/s ± 1%  +489.93%  (p=0.000 n=48+5)
wuffs_crc32_ieee_100k/gcc      419MB/s ± 1%  2465MB/s ± 1%  +488.02%  (p=0.000 n=47+5)
wuffs_gzip_decode_10k/clang    153MB/s ± 1%   208MB/s ± 0%   +35.30%  (p=0.000 n=48+5)
wuffs_gzip_decode_100k/clang   168MB/s ± 1%   236MB/s ± 0%   +40.67%  (p=0.000 n=50+4)
wuffs_gzip_decode_10k/gcc      156MB/s ± 1%   231MB/s ± 3%   +47.91%  (p=0.000 n=50+5)
wuffs_gzip_decode_100k/gcc     172MB/s ± 1%   267MB/s ± 0%   +55.64%  (p=0.000 n=48+5)
2018-05-04 11:59:48 +10:00
Nigel Tao e72f957eca Add (ptr base.u8).read_u32le method 2018-05-04 10:42:05 +10:00
Nigel Tao a9d5adc3fc Prepare for more generic funcs, not just slices 2018-05-04 09:31:52 +10:00
Nigel Tao c511c53b1f Clarify iterate step and unroll syntax 2018-05-04 09:14:10 +10:00
Nigel Tao a511e927a1 Factor out a parser.parseIterateNode method 2018-05-04 09:05:33 +10:00
Nigel Tao a73e56712d Add an iterate step argument 2018-05-03 22:34:24 +10:00
Nigel Tao 92682e6ccc Add token IDs for small powers of 2 2018-05-03 21:54:16 +10:00
Nigel Tao 9a67d3b701 Reorganize some switch cases 2018-05-03 20:59:44 +10:00
Nigel Tao 2aa232576e Set up multiple std/crc32 tables 2018-05-03 13:13:26 +10:00
Nigel Tao bc9e91b9e9 Remove a dummy parameter hack 2018-05-02 20:45:36 +10:00
Nigel Tao c71a13e20e Remove the obsolete limit method 2018-05-02 20:33:25 +10:00
Nigel Tao 04776e9dcf Add a set_limit method 2018-04-28 13:56:37 +10:00
Nigel Tao 395890c287 Add an io_bind keyword 2018-04-28 11:45:33 +10:00
Nigel Tao 124a329e73 Remove the obsolete is_marked method 2018-04-28 10:13:32 +10:00
Nigel Tao d3342e7b4a Remove wuffs_base__io_{reader,writer} mark field 2018-04-28 09:58:45 +10:00
Nigel Tao 977f1fe64d Remove an &^ AmpHat test 2018-04-26 13:44:18 +10:00
Nigel Tao 7f0923a9cf Remove the unused &^ AmpHat operator 2018-04-26 11:24:27 +10:00
Nigel Tao 95815036ba Remove an obsolete TODO 2018-04-26 11:14:31 +10:00
Nigel Tao 6d167b7424 Add ~sat+ and ~sat- 2018-04-26 11:13:19 +10:00
Nigel Tao 6fb1abc739 Fix missing check.builtInTypeMap entry 2018-04-26 10:06:36 +10:00
Nigel Tao a698b47cb6 Rename ~+ to ~mod+; add ~mod-. 2018-04-26 10:05:19 +10:00
Nigel Tao fd2d6e5b8a Tighten up low_bits / high_bits bounds checking 2018-04-21 15:44:12 +10:00
Nigel Tao 8d05db48a4 Remove some hard coded bcheckExprOther checks 2018-04-21 08:45:59 +10:00
Nigel Tao c479907bff Remove typeExprPlaceholder 2018-04-20 17:16:23 +10:00
Nigel Tao ba0db5b4d1 Remove some hard coded bcheckExprOther checks 2018-04-20 17:03:29 +10:00
Nigel Tao 4ddc2f0055 Make an ast.TypeExpr's ID0 field more consistent 2018-04-20 16:21:16 +10:00
Nigel Tao 90a794c0b8 Remove some hard coded bcheckExprOther checks 2018-04-20 14:19:41 +10:00