This document describes format produced by the pack-asmjs utility.
For sake of simplicity let's define WASM file as binary data packed using this format.
The following data types is used in a WASM file. All integer and float numbers are using
diff --git a/browser/components/nsBrowserGlue.js b/browser/components/nsBrowserGlue.js | |
--- a/browser/components/nsBrowserGlue.js | |
+++ b/browser/components/nsBrowserGlue.js | |
@@ -580,19 +580,16 @@ BrowserGlue.prototype = { | |
NewTabUtils.init(); | |
DirectoryLinksProvider.init(); | |
NewTabUtils.links.addProvider(DirectoryLinksProvider); | |
#ifdef NIGHTLY_BUILD | |
if (Services.prefs.getBoolPref("dom.identity.enabled")) { | |
SignInToWebsiteUX.init(); |
var APNGBuilder = (function () { | |
function convertImageToByteArray(canvas) { | |
var url = canvas.toDataURL('image/png'); | |
var i = url.indexOf('base64,'); | |
if (i < 0) { | |
throw new Error('invalid image url'); | |
} | |
var data = atob(url.substring(i + 7)); | |
var arr = new Uint8Array(data.length); | |
for (var i = 0; i < data.length; i++) { |
Index: jsc.cpp | |
=================================================================== | |
--- jsc.cpp (revision 177145) | |
+++ jsc.cpp (working copy) | |
@@ -34,6 +34,7 @@ | |
#include "Interpreter.h" | |
#include "JSArray.h" | |
#include "JSArrayBuffer.h" | |
+#include "JSArrayBufferConstructor.h" | |
#include "JSCInlines.h" |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
#container { | |
background-color: red; | |
position: relative; | |
width: 100%; |
diff --git a/extension/firefox/content/ShumwayStreamConverter.jsm b/extension/firefox/content/ShumwayStreamConverter.jsm | |
index d8fa8e8..84fbe1f 100644 | |
--- a/extension/firefox/content/ShumwayStreamConverter.jsm | |
+++ b/extension/firefox/content/ShumwayStreamConverter.jsm | |
@@ -112,6 +112,7 @@ function isShumwayEnabledFor(startupInfo) { | |
} | |
var ActivationQueue = { | |
+ enabled: false, | |
nonActive: [], |
diff --git a/src/shell/shell.ts b/src/shell/shell.ts | |
index bcffa07..2f19212 100644 | |
--- a/src/shell/shell.ts | |
+++ b/src/shell/shell.ts | |
@@ -657,6 +657,51 @@ module Shumway.Shell { | |
var parsingCounter = new Shumway.Metrics.Counter(true); | |
+ function parseAVM1Blocks(swfFile: SWF.SWFFile, symbol, id: string) { | |
+ var avm1Actions: { id: string; data: Uint8Array }[] = []; |
{ | |
"_id" : ObjectId("54f91027c85afdf74b4e52bd"), | |
"src" : "http://s10.histats.com/3023.swf", | |
"tagName" : "EMBED", | |
"level" : 0, | |
"url" : "http://www.blogcandra.com/", | |
"site" : "http://www.blogcandra.com/", | |
"height" : "80", | |
"body_rect" : { | |
"right" : 1548, |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<script> | |
var table = "ãь¢Ðε£ģНiʃқḻмпOÞȡг§ţȗṿẂӾӳƩ"; | |