1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-12 05:23:02 +00:00

Source mapping v3 (performance improvements, better decoupling from parser).

This commit is contained in:
Calvin Rose
2018-06-29 10:37:50 -04:00
parent cac39aba67
commit f93c84c21f
9 changed files with 62 additions and 157 deletions

View File

@@ -33,7 +33,8 @@ Dst *dst_tuple_begin(int32_t length) {
char *data = dst_gcalloc(DST_MEMORY_TUPLE, 4 * sizeof(int32_t) + length * sizeof(Dst));
Dst *tuple = (Dst *)(data + (4 * sizeof(int32_t)));
dst_tuple_length(tuple) = length;
dst_tuple_id(tuple) = -1;
dst_tuple_sm_start(tuple) = -1;
dst_tuple_sm_end(tuple) = -1;
return tuple;
}