diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-05-20 19:18:14 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-05-20 19:18:14 -0400 |
| commit | 897f23f20ff30e379e8d320cfd0013cb48dcc5b2 (patch) | |
| tree | f4dacd6935dd023014c41f45a4632ed95262374a /src | |
| parent | 7c2c0e36f8378d8efaf64d859bdffb91007db82a (diff) | |
| download | zig-897f23f20ff30e379e8d320cfd0013cb48dcc5b2.tar.gz zig-897f23f20ff30e379e8d320cfd0013cb48dcc5b2.zip | |
stage2 parser: split off some SuffixOp AST nodes into separate tags
These SuffixOp nodes have their own ast.Node tags now:
* ArrayInitializer
* ArrayInitializerDot
* StructInitializer
* StructInitializerDot
Their sub-expression lists are general-purpose-allocator allocated
and then copied into the arena after completion of parsing.
throughput: 72.9 MiB/s => 74.4 MiB/s
maxrss: 68 KB => 72 KB
The API is also nicer since the sub expression lists are now flat arrays
instead of singly linked lists.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions
