Skip to content

Commit 759ea13

Browse files
authored
chore(compiler): Properly handle disable_stamps state (#2272)
1 parent 95d03cb commit 759ea13

File tree

244 files changed

+1248
-1084
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+1248
-1084
lines changed

compiler/test/__snapshots__/arrays.0f9e7d37.0.snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ arrays › array_access
2525
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
2626
(stack_size_f32 0) (stack_size_f64 0)))
2727
(globals
28-
(((id ((name x))) (mutable_ true) (allocation_type Managed)
28+
(((id ((stamp 1113) (name x))) (mutable_ true) (allocation_type Managed)
2929
(initial_value ()))))
3030
(function_table_elements ())
31-
(global_function_table_offset ((name function_table_global)))
31+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
3232
(compilation_mode Normal) (type_metadata <opaque>)))
3333
(signature <opaque>))

compiler/test/__snapshots__/arrays.1deb7b51.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ arrays › array_access5
2929
((stack_size_ptr 1) (stack_size_i32 0) (stack_size_i64 0)
3030
(stack_size_f32 0) (stack_size_f64 0)))
3131
(globals ()) (function_table_elements ())
32-
(global_function_table_offset ((name function_table_global)))
32+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
3333
(compilation_mode Normal) (type_metadata <opaque>)))
3434
(signature <opaque>))

compiler/test/__snapshots__/arrays.24453e6e.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ arrays › array1_trailing
1515
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
1616
(stack_size_f32 0) (stack_size_f64 0)))
1717
(globals ()) (function_table_elements ())
18-
(global_function_table_offset ((name function_table_global)))
18+
(global_function_table_offset ((stamp 1116) (name function_table_global)))
1919
(compilation_mode Normal) (type_metadata <opaque>)))
2020
(signature <opaque>))

compiler/test/__snapshots__/arrays.28fcc534.0.snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ arrays › array_access4
2525
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
2626
(stack_size_f32 0) (stack_size_f64 0)))
2727
(globals
28-
(((id ((name x))) (mutable_ true) (allocation_type Managed)
28+
(((id ((stamp 1113) (name x))) (mutable_ true) (allocation_type Managed)
2929
(initial_value ()))))
3030
(function_table_elements ())
31-
(global_function_table_offset ((name function_table_global)))
31+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
3232
(compilation_mode Normal) (type_metadata <opaque>)))
3333
(signature <opaque>))

compiler/test/__snapshots__/arrays.4c8c9f91.0.snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ arrays › array_access2
2525
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
2626
(stack_size_f32 0) (stack_size_f64 0)))
2727
(globals
28-
(((id ((name x))) (mutable_ true) (allocation_type Managed)
28+
(((id ((stamp 1113) (name x))) (mutable_ true) (allocation_type Managed)
2929
(initial_value ()))))
3030
(function_table_elements ())
31-
(global_function_table_offset ((name function_table_global)))
31+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
3232
(compilation_mode Normal) (type_metadata <opaque>)))
3333
(signature <opaque>))

compiler/test/__snapshots__/arrays.6eac4e1f.0.snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ arrays › array_access3
2525
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
2626
(stack_size_f32 0) (stack_size_f64 0)))
2727
(globals
28-
(((id ((name x))) (mutable_ true) (allocation_type Managed)
28+
(((id ((stamp 1113) (name x))) (mutable_ true) (allocation_type Managed)
2929
(initial_value ()))))
3030
(function_table_elements ())
31-
(global_function_table_offset ((name function_table_global)))
31+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
3232
(compilation_mode Normal) (type_metadata <opaque>)))
3333
(signature <opaque>))

compiler/test/__snapshots__/arrays.74d79181.0.snapshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ arrays › array_access5
2525
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
2626
(stack_size_f32 0) (stack_size_f64 0)))
2727
(globals
28-
(((id ((name x))) (mutable_ true) (allocation_type Managed)
28+
(((id ((stamp 1113) (name x))) (mutable_ true) (allocation_type Managed)
2929
(initial_value ()))))
3030
(function_table_elements ())
31-
(global_function_table_offset ((name function_table_global)))
31+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
3232
(compilation_mode Normal) (type_metadata <opaque>)))
3333
(signature <opaque>))

compiler/test/__snapshots__/arrays.9e17b4d1.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ arrays › array3
1515
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
1616
(stack_size_f32 0) (stack_size_f64 0)))
1717
(globals ()) (function_table_elements ())
18-
(global_function_table_offset ((name function_table_global)))
18+
(global_function_table_offset ((stamp 1116) (name function_table_global)))
1919
(compilation_mode Normal) (type_metadata <opaque>)))
2020
(signature <opaque>))

compiler/test/__snapshots__/arrays.b85cb7fc.0.snapshot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ arrays › array1_trailing_space
1515
((stack_size_ptr 0) (stack_size_i32 0) (stack_size_i64 0)
1616
(stack_size_f32 0) (stack_size_f64 0)))
1717
(globals ()) (function_table_elements ())
18-
(global_function_table_offset ((name function_table_global)))
18+
(global_function_table_offset ((stamp 1116) (name function_table_global)))
1919
(compilation_mode Normal) (type_metadata <opaque>)))
2020
(signature <opaque>))

compiler/test/__snapshots__/basic_functionality.00bcbc39.0.snapshot

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ basic functionality › assignment1
22
((mash_code
33
((functions ())
44
(imports
5-
(((mimp_id ((name *))) (mimp_mod pervasives.gr) (mimp_name *)
5+
(((mimp_id ((stamp 1117) (name *))) (mimp_mod pervasives.gr)
6+
(mimp_name *)
67
(mimp_type
78
(MFuncImport (Managed (Unmanaged WasmI32) (Unmanaged WasmI32))
89
((Unmanaged WasmI32))))
910
(mimp_kind MImportGrain) (mimp_setup MSetupNone) (mimp_used true))
10-
((mimp_id ((name *))) (mimp_mod pervasives.gr) (mimp_name *)
11-
(mimp_type (MGlobalImport Managed true)) (mimp_kind MImportGrain)
12-
(mimp_setup MCallGetter) (mimp_used true))))
11+
((mimp_id ((stamp 1117) (name *))) (mimp_mod pervasives.gr)
12+
(mimp_name *) (mimp_type (MGlobalImport Managed true))
13+
(mimp_kind MImportGrain) (mimp_setup MCallGetter) (mimp_used true))))
1314
(exports ())
1415
(main_body
1516
(((instr_desc
@@ -50,9 +51,9 @@ basic functionality › assignment1
5051
((stack_size_ptr 1) (stack_size_i32 0) (stack_size_i64 0)
5152
(stack_size_f32 0) (stack_size_f64 0)))
5253
(globals
53-
(((id ((name t))) (mutable_ true) (allocation_type Managed)
54+
(((id ((stamp 1113) (name t))) (mutable_ true) (allocation_type Managed)
5455
(initial_value ()))))
5556
(function_table_elements ())
56-
(global_function_table_offset ((name function_table_global)))
57+
(global_function_table_offset ((stamp 1119) (name function_table_global)))
5758
(compilation_mode Normal) (type_metadata <opaque>)))
5859
(signature <opaque>))

0 commit comments

Comments
 (0)