зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1277562 - Part 15: Pass tier parameter to wasmExtractCode - update test cases. r=luke, r=janv
--HG-- extra : rebase_source : a5b1d168ffb63ea61cb8a6246cd75522f256e076 extra : source : ab4ed091c1938747af5de9cff86275908a712446
This commit is contained in:
Родитель
9dca888455
Коммит
9572bd246d
|
@ -209,8 +209,8 @@ function verifyWasmModule(module1, module2)
|
|||
let getGlobalForObject = SpecialPowers.Cu.getGlobalForObject;
|
||||
let testingFunctions = SpecialPowers.Cu.getJSTestingFunctions();
|
||||
let wasmExtractCode = SpecialPowers.unwrap(testingFunctions.wasmExtractCode);
|
||||
let exp1 = wasmExtractCode(module1);
|
||||
let exp2 = wasmExtractCode(module2);
|
||||
let exp1 = wasmExtractCode(module1, "ion");
|
||||
let exp2 = wasmExtractCode(module2, "ion");
|
||||
let code1 = exp1.code;
|
||||
let code2 = exp2.code;
|
||||
ok(code1 instanceof getGlobalForObject(code1).Uint8Array, "Instance of Uint8Array");
|
||||
|
|
|
@ -507,8 +507,8 @@ function verifyView(view1, view2)
|
|||
function verifyWasmModule(module1, module2)
|
||||
{
|
||||
let testingFunctions = Cu.getJSTestingFunctions();
|
||||
let exp1 = testingFunctions.wasmExtractCode(module1);
|
||||
let exp2 = testingFunctions.wasmExtractCode(module2);
|
||||
let exp1 = testingFunctions.wasmExtractCode(module1, "ion");
|
||||
let exp2 = testingFunctions.wasmExtractCode(module2, "ion");
|
||||
let code1 = exp1.code;
|
||||
let code2 = exp2.code;
|
||||
ok(code1 instanceof Uint8Array, "Instance of Uint8Array");
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
var module = new WebAssembly.Module(wasmTextToBinary(`(module (func (nop)))`));
|
||||
var exp = wasmExtractCode(module);
|
||||
var exp = wasmExtractCode(module, "stable");
|
||||
assertEq(exp.code instanceof Uint8Array, true);
|
||||
assertEq(Array.isArray(exp.segments), true);
|
||||
var funcs = exp.segments.filter(s => s.kind === 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче