| ... | ... | @@ -578,12 +578,12 @@ pub const TestContext = struct { |
| 578 | 578 | update_node.activate(); |
| 579 | 579 | defer update_node.end(); |
| 580 | 580 | |
| 581 | | var sync_node = update_node.start("write", null); |
| 581 | var sync_node = update_node.start("write", 0); |
| 582 | 582 | sync_node.activate(); |
| 583 | 583 | try tmp.dir.writeFile(tmp_src_path, update.src); |
| 584 | 584 | sync_node.end(); |
| 585 | 585 | |
| 586 | | var module_node = update_node.start("parse/analysis/codegen", null); |
| 586 | var module_node = update_node.start("parse/analysis/codegen", 0); |
| 587 | 587 | module_node.activate(); |
| 588 | 588 | try comp.makeBinFileWritable(); |
| 589 | 589 | try comp.update(); |
| ... | ... | @@ -635,21 +635,21 @@ pub const TestContext = struct { |
| 635 | 635 | } |
| 636 | 636 | } |
| 637 | 637 | } else { |
| 638 | | update_node.estimated_total_items = 5; |
| 639 | | var emit_node = update_node.start("emit", null); |
| 638 | update_node.setEstimatedTotalItems(5); |
| 639 | var emit_node = update_node.start("emit", 0); |
| 640 | 640 | emit_node.activate(); |
| 641 | 641 | var new_zir_module = try zir.emit(allocator, comp.bin_file.options.module.?); |
| 642 | 642 | defer new_zir_module.deinit(allocator); |
| 643 | 643 | emit_node.end(); |
| 644 | 644 | |
| 645 | | var write_node = update_node.start("write", null); |
| 645 | var write_node = update_node.start("write", 0); |
| 646 | 646 | write_node.activate(); |
| 647 | 647 | var out_zir = std.ArrayList(u8).init(allocator); |
| 648 | 648 | defer out_zir.deinit(); |
| 649 | 649 | try new_zir_module.writeToStream(allocator, out_zir.outStream()); |
| 650 | 650 | write_node.end(); |
| 651 | 651 | |
| 652 | | var test_node = update_node.start("assert", null); |
| 652 | var test_node = update_node.start("assert", 0); |
| 653 | 653 | test_node.activate(); |
| 654 | 654 | defer test_node.end(); |
| 655 | 655 | |
| ... | ... | @@ -666,7 +666,7 @@ pub const TestContext = struct { |
| 666 | 666 | } |
| 667 | 667 | }, |
| 668 | 668 | .Error => |e| { |
| 669 | | var test_node = update_node.start("assert", null); |
| 669 | var test_node = update_node.start("assert", 0); |
| 670 | 670 | test_node.activate(); |
| 671 | 671 | defer test_node.end(); |
| 672 | 672 | var handled_errors = try arena.alloc(bool, e.len); |
| ... | ... | @@ -723,9 +723,9 @@ pub const TestContext = struct { |
| 723 | 723 | .Execution => |expected_stdout| { |
| 724 | 724 | std.debug.assert(!case.cbe); |
| 725 | 725 | |
| 726 | | update_node.estimated_total_items = 4; |
| 726 | update_node.setEstimatedTotalItems(4); |
| 727 | 727 | var exec_result = x: { |
| 728 | | var exec_node = update_node.start("execute", null); |
| 728 | var exec_node = update_node.start("execute", 0); |
| 729 | 729 | exec_node.activate(); |
| 730 | 730 | defer exec_node.end(); |
| 731 | 731 | |
| ... | ... | @@ -788,7 +788,7 @@ pub const TestContext = struct { |
| 788 | 788 | .cwd_dir = tmp.dir, |
| 789 | 789 | }); |
| 790 | 790 | }; |
| 791 | | var test_node = update_node.start("test", null); |
| 791 | var test_node = update_node.start("test", 0); |
| 792 | 792 | test_node.activate(); |
| 793 | 793 | defer test_node.end(); |
| 794 | 794 | defer allocator.free(exec_result.stdout); |
| ... | ... | @@ -867,7 +867,7 @@ pub const TestContext = struct { |
| 867 | 867 | }; |
| 868 | 868 | |
| 869 | 869 | { |
| 870 | | var load_node = update_node.start("load", null); |
| 870 | var load_node = update_node.start("load", 0); |
| 871 | 871 | load_node.activate(); |
| 872 | 872 | defer load_node.end(); |
| 873 | 873 | |
| ... | ... | @@ -905,7 +905,7 @@ pub const TestContext = struct { |
| 905 | 905 | } |
| 906 | 906 | } |
| 907 | 907 | |
| 908 | | var exec_node = update_node.start("execute", null); |
| 908 | var exec_node = update_node.start("execute", 0); |
| 909 | 909 | exec_node.activate(); |
| 910 | 910 | defer exec_node.end(); |
| 911 | 911 | |