Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1603)

Unified Diff: test/mjsunit/wasm/grow-memory.js

Issue 2371833007: [wasm] Initial signal handler (Closed)
Patch Set: Restore signal mask at the right place Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/wasm/grow-memory.js
diff --git a/test/mjsunit/wasm/grow-memory.js b/test/mjsunit/wasm/grow-memory.js
index 71eb4fec95a7971ab0b824480b66304ea565ef59..7c4ea7fa6267d011d3985db53dd91dd9334f0f8f 100644
--- a/test/mjsunit/wasm/grow-memory.js
+++ b/test/mjsunit/wasm/grow-memory.js
@@ -42,6 +42,7 @@ function genGrowMemoryBuilder() {
// TODO(gdeepti): Generate tests programatically for all the sizes instead of
// current implementation.
function testGrowMemoryReadWrite32() {
+ print('testGrowMemoryReadWrite32');
Mark Seaborn 2017/02/17 21:41:12 Is this debugging that should be removed?
Eric Holk 2017/02/23 02:16:57 We're inconsistent about this; some tests print th
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -89,6 +90,7 @@ function testGrowMemoryReadWrite32() {
testGrowMemoryReadWrite32();
function testGrowMemoryReadWrite16() {
+ print('testGrowMemoryReadWrite16');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -136,6 +138,7 @@ function testGrowMemoryReadWrite16() {
testGrowMemoryReadWrite16();
function testGrowMemoryReadWrite8() {
+ print('testGrowMemoryReadWrite8');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -183,6 +186,7 @@ function testGrowMemoryReadWrite8() {
testGrowMemoryReadWrite8();
function testGrowMemoryZeroInitialSize() {
+ print('testGrowMemoryZeroInitialSize');
var builder = genGrowMemoryBuilder();
builder.addMemory(0, kV8MaxPages, false);
var module = builder.instantiate();
@@ -217,6 +221,7 @@ function testGrowMemoryZeroInitialSize() {
testGrowMemoryZeroInitialSize();
function testGrowMemoryZeroInitialSize32() {
+ print('testGrowMemoryZeroInitialSize32');
var builder = genGrowMemoryBuilder();
builder.addMemory(0, kV8MaxPages, false);
var module = builder.instantiate();
@@ -243,6 +248,7 @@ function testGrowMemoryZeroInitialSize32() {
testGrowMemoryZeroInitialSize32();
function testGrowMemoryZeroInitialSize16() {
+ print('testGrowMemoryZeroInitialSize16');
var builder = genGrowMemoryBuilder();
builder.addMemory(0, kV8MaxPages, false);
var module = builder.instantiate();
@@ -269,6 +275,7 @@ function testGrowMemoryZeroInitialSize16() {
testGrowMemoryZeroInitialSize16();
function testGrowMemoryZeroInitialSize8() {
+ print('testGrowMemoryZeroInitialSize8');
var builder = genGrowMemoryBuilder();
builder.addMemory(0, kV8MaxPages, false);
var module = builder.instantiate();
@@ -295,6 +302,7 @@ function testGrowMemoryZeroInitialSize8() {
testGrowMemoryZeroInitialSize8();
function testGrowMemoryTrapMaxPagesZeroInitialMemory() {
+ print('testGrowMemoryTrapMaxPagesZeroInitialMemory');
var builder = genGrowMemoryBuilder();
builder.addMemory(0, kV8MaxPages, false);
var module = builder.instantiate();
@@ -306,6 +314,7 @@ function testGrowMemoryTrapMaxPagesZeroInitialMemory() {
testGrowMemoryTrapMaxPagesZeroInitialMemory();
function testGrowMemoryTrapMaxPages() {
+ print('testGrowMemoryTrapMaxPages');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, 1, false);
var module = builder.instantiate();
@@ -317,6 +326,7 @@ function testGrowMemoryTrapMaxPages() {
testGrowMemoryTrapMaxPages();
function testGrowMemoryTrapsWithNonSmiInput() {
+ print('testGrowMemoryTrapsWithNonSmiInput');
var builder = genGrowMemoryBuilder();
builder.addMemory(0, kV8MaxPages, false);
var module = builder.instantiate();
@@ -329,6 +339,7 @@ function testGrowMemoryTrapsWithNonSmiInput() {
testGrowMemoryTrapsWithNonSmiInput();
function testGrowMemoryCurrentMemory() {
+ print('testGrowMemoryCurrentMemory');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
builder.addFunction("memory_size", kSig_i_v)
@@ -345,6 +356,7 @@ function testGrowMemoryCurrentMemory() {
testGrowMemoryCurrentMemory();
function testGrowMemoryPreservesDataMemOp32() {
+ print('testGrowMemoryPreservesDataMemOp32');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -368,6 +380,7 @@ function testGrowMemoryPreservesDataMemOp32() {
testGrowMemoryPreservesDataMemOp32();
function testGrowMemoryPreservesDataMemOp16() {
+ print('testGrowMemoryPreservesDataMemOp16');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -391,6 +404,7 @@ function testGrowMemoryPreservesDataMemOp16() {
testGrowMemoryPreservesDataMemOp16();
function testGrowMemoryPreservesDataMemOp8() {
+ print('testGrowMemoryPreservesDataMemOp8');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -418,6 +432,7 @@ function testGrowMemoryPreservesDataMemOp8() {
testGrowMemoryPreservesDataMemOp8();
function testGrowMemoryOutOfBoundsOffset() {
+ print('testGrowMemoryOutOfBoundsOffset');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, kV8MaxPages, false);
var module = builder.instantiate();
@@ -450,6 +465,7 @@ function testGrowMemoryOutOfBoundsOffset() {
testGrowMemoryOutOfBoundsOffset();
function testGrowMemoryOutOfBoundsOffset2() {
+ print('testGrowMemoryOutOfBoundsOffset2');
var builder = new WasmModuleBuilder();
builder.addMemory(16, 128, false);
builder.addFunction("main", kSig_v_v)
@@ -467,6 +483,7 @@ function testGrowMemoryOutOfBoundsOffset2() {
testGrowMemoryOutOfBoundsOffset2();
function testGrowMemoryDeclaredMaxTraps() {
+ print('testGrowMemoryDeclaredMaxTraps');
var builder = genGrowMemoryBuilder();
builder.addMemory(1, 16, false);
var module = builder.instantiate();
@@ -479,6 +496,7 @@ function testGrowMemoryDeclaredMaxTraps() {
testGrowMemoryDeclaredMaxTraps();
function testGrowMemoryDeclaredSpecMaxTraps() {
+ print('testGrowMemoryDeclaredSpecMaxTraps');
// The spec maximum is higher than the internal V8 maximum. This test only
// checks that grow_memory does not grow past the internally defined maximum
// to reflect the currentl implementation.

Powered by Google App Engine
This is Rietveld 408576698