mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
GcFeatureOptIn for SpiderMonkey
This commit is contained in:
parent
f466fc5c09
commit
31f86ae931
@ -111,11 +111,13 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
|
|||||||
wasm.write( WASM_BINARY_MAGIC );
|
wasm.write( WASM_BINARY_MAGIC );
|
||||||
wasm.writeInt32( WASM_BINARY_VERSION );
|
wasm.writeInt32( WASM_BINARY_VERSION );
|
||||||
|
|
||||||
// // Section 42, enable GcFeatureOptIn for SpiderMonkey https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version1.md
|
if( Boolean.getBoolean( "SpiderMonkey" ) ) {
|
||||||
// wasm.writeVaruint32( 42 );
|
// Section 42, enable GcFeatureOptIn for SpiderMonkey https://github.com/lars-t-hansen/moz-gc-experiments/blob/master/version2.md
|
||||||
// wasm.writeVaruint32( 1 );
|
wasm.writeVaruint32( 42 );
|
||||||
// wasm.write( 2 ); // version of GcFeatureOptIn
|
wasm.writeVaruint32( 1 );
|
||||||
// // End Section 42
|
wasm.write( 3 ); // version of GcFeatureOptIn
|
||||||
|
// End Section 42
|
||||||
|
}
|
||||||
|
|
||||||
writeSection( SectionType.Type, functionTypes );
|
writeSection( SectionType.Type, functionTypes );
|
||||||
writeSection( SectionType.Import, imports.values() );
|
writeSection( SectionType.Import, imports.values() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user