mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-24 12:11:50 +00:00
Add compiler hints
This commit is contained in:
4
tests/compiler/asc-constants.optimized.wat
Normal file
4
tests/compiler/asc-constants.optimized.wat
Normal file
@ -0,0 +1,4 @@
|
||||
(module
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
)
|
8
tests/compiler/asc-constants.ts
Normal file
8
tests/compiler/asc-constants.ts
Normal file
@ -0,0 +1,8 @@
|
||||
ASC_TARGET;
|
||||
ASC_NO_TREESHAKING;
|
||||
ASC_NO_ASSERT;
|
||||
ASC_MEMORY_BASE;
|
||||
ASC_OPTIMIZE_LEVEL;
|
||||
ASC_SHRINK_LEVEL;
|
||||
ASC_FEATURE_MUTABLE_GLOBAL;
|
||||
ASC_FEATURE_SIGN_EXTENSION;
|
33
tests/compiler/asc-constants.untouched.wat
Normal file
33
tests/compiler/asc-constants.untouched.wat
Normal file
@ -0,0 +1,33 @@
|
||||
(module
|
||||
(type $v (func))
|
||||
(global $HEAP_BASE i32 (i32.const 8))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $start (; 0 ;) (type $v)
|
||||
(drop
|
||||
(i32.const 1)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
(drop
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user