Skip to content

Commit 113b748

Browse files
authored
Remove unused ASM_PRIMITIVE_VARS settings. NFC. (emscripten-core#12614)
1 parent 4608194 commit 113b748

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/settings.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,15 +1624,6 @@ var OFFSCREEN_FRAMEBUFFER_FORBID_VAO_PATH = 0;
16241624
// Internal (testing only): Forces memory growing to fail.
16251625
var TEST_MEMORY_GROWTH_FAILS = 0;
16261626

1627-
// Advanced: Customize this array to reduce the set of asm.js runtime variables
1628-
// that are generated. This allows minifying extra bit of asm.js code from unused
1629-
// runtime code, if you know some of these are not needed.
1630-
// (think of this as advanced manual DCE)
1631-
// TODO(sbc): Move to settings_internal (current blocked due to use in test
1632-
// code).
1633-
var ASM_PRIMITIVE_VARS = ['__THREW__', 'threwValue', 'setjmpId', 'tempInt', 'tempBigInt', 'tempBigIntS', 'tempValue', 'tempDouble', 'tempFloat', 'tempDoublePtr', 'STACKTOP', 'STACK_MAX']
1634-
1635-
// Legacy settings that have been removed or renamed.
16361627
// For renamed settings the format is:
16371628
// [OLD_NAME, NEW_NAME]
16381629
// For removed settings (which now effectively have a fixed value and can no
@@ -1697,4 +1688,5 @@ var LEGACY_SETTINGS = [
16971688
['EXPORT_FUNCTION_TABLES', [0], 'No longer needed'],
16981689
['BINARYEN_SCRIPTS', [""], 'No longer needed'],
16991690
['WARN_UNALIGNED', [0, 1], 'No longer needed'],
1691+
['ASM_PRIMITIVE_VARS', [[]], 'No longer needed'],
17001692
];

tests/test_other.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8121,12 +8121,10 @@ def test_minimal_runtime_code_size(self):
81218121

81228122
hello_world_sources = [path_from_root('tests', 'small_hello_world.c'),
81238123
'-s', 'RUNTIME_FUNCS_TO_IMPORT=[]',
8124-
'-s', 'USES_DYNAMIC_ALLOC=0',
8125-
'-s', 'ASM_PRIMITIVE_VARS=[STACKTOP]']
8124+
'-s', 'USES_DYNAMIC_ALLOC=0']
81268125
random_printf_sources = [path_from_root('tests', 'hello_random_printf.c'),
81278126
'-s', 'RUNTIME_FUNCS_TO_IMPORT=[]',
81288127
'-s', 'USES_DYNAMIC_ALLOC=0',
8129-
'-s', 'ASM_PRIMITIVE_VARS=[STACKTOP]',
81308128
'-s', 'SINGLE_FILE=1']
81318129
hello_webgl_sources = [path_from_root('tests', 'minimal_webgl', 'main.cpp'),
81328130
path_from_root('tests', 'minimal_webgl', 'webgl.c'),

0 commit comments

Comments
 (0)