[Bug 33625] javascript typed arrays needed for emscripten

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Mar 16 11:36:58 CDT 2014


https://bugs.winehq.org/show_bug.cgi?id=33625

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |source
                 CC|                            |focht at gmx.net

--- Comment #3 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

confirming, still present.

Trace log:

--- snip ---
$ WINEDEBUG=+tid,+seh,+loaddll,+process,+jscript,+ole,+variant,+msgbox wine
iexplore
http://vps2.etotheipiplusone.com:30176/redmine/emscripten-qt-examples/scribble.html
>>log.txt 2>&1

0023:trace:jscript:interp_ident L"Float64Array"
0023:trace:jscript:identifier_eval L"Float64Array"
0023:trace:jscript:jsdisp_get_id not found L"Float64Array"
0023:trace:jscript:JScript_GetScriptDispatch (0x1e8bb90)->(0x33f09c)
0023:trace:jscript:DispatchEx_QueryInterface (0x1e8e980)->(IID_IDispatchEx
0x33f0d8)
0023:trace:jscript:DispatchEx_GetDispID (0x1e8e980)->(L"Float64Array" 10000001
0x33f140)
0023:trace:jscript:jsdisp_get_id not found L"Float64Array"
0023:warn:jscript:throw_error L"'Float64Array' is undefined"
0023:trace:jscript:prop_get L"prototype" ret obj(0x1e8de20)
0023:trace:jscript:DispatchEx_QueryInterface (0x1e8de20)->(IID_IDispatchJS
0x33e9e8)
0023:trace:jscript:init_dispex 0x88aeff0 (0x1e8de20)
0023:trace:jscript:ensure_prop_name creating prop L"number" flags 0
0023:trace:jscript:prop_put L"number" = -2146823279.000000
0023:trace:jscript:ensure_prop_name creating prop L"message" flags 200
0023:trace:jscript:prop_put L"message" = str(L"'Float64Array' is undefined")
0023:trace:jscript:ensure_prop_name creating prop L"description" flags 0
0023:trace:jscript:prop_put L"description" = str(L"'Float64Array' is
undefined")
0023:trace:jscript:enter_bytecode EXCEPTION 800a1391 
...
--- snip ---

javascript code in question:

--- snip ---
...
try
{
        if (Float64Array == null)
        {
                throw "";
        }
}
catch (e)
{
        Module.setStatus("Aborted - Unsupported Browser :/");
        window.alert( "Javascript typed arrays apparently are not supported by
your browser: unfortunately, emscripten-qt apps cannot run it it.");
        throw e;
}
...
var HEAP;
var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;

var STACK_ROOT, STACKTOP, STACK_MAX;
var STATICTOP;

function enlargeMemory() {
  abort('Cannot enlarge memory arrays. Either (1) compile with -s
TOTAL_MEMORY=X with X higher than the current value ( ' + TOTAL_MEMORY + '),
(2) compile with ALLOW_MEMORY_GROWTH which adjusts the size at runtime but
prevents some optimizations, or (3) set Module.TOTAL_MEMORY before the program
runs.');
}

var TOTAL_STACK = Module['TOTAL_STACK'] || 5242880;
var TOTAL_MEMORY = Module['TOTAL_MEMORY'] || 40000000;
var FAST_MEMORY = Module['FAST_MEMORY'] || 2097152;

// Initialize the runtime's memory
// check for full engine support (use string 'subarray' to avoid closure
compiler confusion)
  assert(!!Int32Array && !!Float64Array && !!(new Int32Array(1)['subarray']) &&
!!(new Int32Array(1)['set']),
         'Cannot fallback to non-typed array case: Code is too specialized');

  var buffer = new ArrayBuffer(TOTAL_MEMORY);
  HEAP8 = new Int8Array(buffer);
  HEAP16 = new Int16Array(buffer);
  HEAP32 = new Int32Array(buffer);
  HEAPU8 = new Uint8Array(buffer);
  HEAPU16 = new Uint16Array(buffer);
  HEAPU32 = new Uint32Array(buffer);
  HEAPF32 = new Float32Array(buffer);
  HEAPF64 = new Float64Array(buffer); 
...
--- snip ---

MSDN: http://msdn.microsoft.com/en-us/library/ie/hh869304%28v=vs.85%29.aspx

$ wine --version
wine-1.7.14-126-g2bb1059

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list