diff options
author | Alon Zakai <azakai@mozilla.com> | 2010-12-23 16:44:30 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2010-12-23 16:44:30 -0800 |
commit | 7985433ea6d2beb324f8ae7cd653407376955555 (patch) | |
tree | 9c2a1c9b8cc0afa708c58c86421d9ac8c2b36ef8 /src/jsifier.js | |
parent | 694281c58089db051c25f2b5dc94ed7c779a166f (diff) |
error message when encountering asm calls
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 1404e63f..90f4ae86 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -913,6 +913,9 @@ function JSify(data, functionsOnly, givenTypes, givenFunctions) { }); function makeFunctionCall(ident, params, funcData) { + // We cannot compile assembly. See comment in intertyper.js:'Call' + assert(ident != 'asm', 'Inline assembly cannot be compiled to JavaScript!'); + // Special cases if (ident == '_llvm_va_start') { // varargs - we received a pointer to the varargs as a final 'extra' parameter |