Skip to content

Commit 8d13b5a

Browse files
authored
Stop emitting "almost asm" in wasm2js output (#2221)
We don't ever emit "use asm" anymore, so this similar annotation is not really useful, it just increases size.
1 parent 29b6458 commit 8d13b5a

File tree

104 files changed

+0
-129
lines changed

Some content is hidden

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

104 files changed

+0
-129
lines changed

src/asmjs/shared-constants.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ cashew::IString SQRT("sqrt");
6363
cashew::IString POW("pow");
6464
cashew::IString I32_TEMP("asm2wasm_i32_temp");
6565
cashew::IString DEBUGGER("debugger");
66-
cashew::IString USE_ASM("use asm");
67-
cashew::IString ALMOST_ASM("almost asm");
6866
cashew::IString BUFFER("buffer");
6967
cashew::IString ENV("env");
7068
cashew::IString STACKTOP("STACKTOP");

src/asmjs/shared-constants.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ extern cashew::IString SQRT;
6666
extern cashew::IString POW;
6767
extern cashew::IString I32_TEMP;
6868
extern cashew::IString DEBUGGER;
69-
extern cashew::IString USE_ASM;
70-
extern cashew::IString ALMOST_ASM;
7169
extern cashew::IString BUFFER;
7270
extern cashew::IString ENV;
7371
extern cashew::IString STACKTOP;

src/wasm2js.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,6 @@ Ref Wasm2JSBuilder::processWasm(Module* wasm, Name funcName) {
353353
ValueBuilder::appendArgumentToFunction(asmFunc, GLOBAL);
354354
ValueBuilder::appendArgumentToFunction(asmFunc, ENV);
355355
ValueBuilder::appendArgumentToFunction(asmFunc, BUFFER);
356-
asmFunc[3]->push_back(
357-
ValueBuilder::makeStatement(ValueBuilder::makeString(ALMOST_ASM)));
358356
// add memory import
359357
if (wasm->memory.exists && wasm->memory.imported()) {
360358
Ref theVar = ValueBuilder::makeVar();

test/binaryen.js/emit_asmjs.js.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
function asmFunc(global, env, buffer) {
3-
"almost asm";
43
var HEAP8 = new global.Int8Array(buffer);
54
var HEAP16 = new global.Int16Array(buffer);
65
var HEAP32 = new global.Int32Array(buffer);

test/wasm2js.asserts.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
}
3232

3333
function asmFunc0(global, env, buffer) {
34-
"almost asm";
3534
var HEAP8 = new global.Int8Array(buffer);
3635
var HEAP16 = new global.Int16Array(buffer);
3736
var HEAP32 = new global.Int32Array(buffer);

test/wasm2js.traps.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
}
3232

3333
function asmFunc0(global, env, buffer) {
34-
"almost asm";
3534
var HEAP8 = new global.Int8Array(buffer);
3635
var HEAP16 = new global.Int16Array(buffer);
3736
var HEAP32 = new global.Int32Array(buffer);

test/wasm2js/address.2asm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { print } from 'spectest';
22

33
function asmFunc(global, env, buffer) {
4-
"almost asm";
54
var HEAP8 = new global.Int8Array(buffer);
65
var HEAP16 = new global.Int16Array(buffer);
76
var HEAP32 = new global.Int32Array(buffer);

test/wasm2js/base64.2asm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
function asmFunc(global, env, buffer) {
3-
"almost asm";
43
var HEAP8 = new global.Int8Array(buffer);
54
var HEAP16 = new global.Int16Array(buffer);
65
var HEAP32 = new global.Int32Array(buffer);

test/wasm2js/base64.2asm.js.opt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
function asmFunc(global, env, buffer) {
3-
"almost asm";
43
var HEAP8 = new global.Int8Array(buffer);
54
var HEAP16 = new global.Int16Array(buffer);
65
var HEAP32 = new global.Int32Array(buffer);

test/wasm2js/block.2asm.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11

22
function asmFunc(global, env, buffer) {
3-
"almost asm";
43
var HEAP8 = new global.Int8Array(buffer);
54
var HEAP16 = new global.Int16Array(buffer);
65
var HEAP32 = new global.Int32Array(buffer);

0 commit comments

Comments
 (0)