Commit 15bed194 authored by mvstanton's avatar mvstanton Committed by Commit bot

Adjust some tests to prepare enabling Ignition+TurboFan

BUG=v8:5267, chromium:692409

Review-Url: https://codereview.chromium.org/2720713003
Cr-Commit-Position: refs/heads/master@{#43638}
parent e82b7ccd
...@@ -140,6 +140,7 @@ ...@@ -140,6 +140,7 @@
# Pass but take too long with the simulator. # Pass but take too long with the simulator.
'test-api/ExternalArrays': [PASS, TIMEOUT], 'test-api/ExternalArrays': [PASS, TIMEOUT],
'test-api/Threading*': [PASS, SKIP],
}], # 'arch == arm64 and simulator_run == True' }], # 'arch == arm64 and simulator_run == True'
['arch == arm64 and mode == debug and simulator_run == True', { ['arch == arm64 and mode == debug and simulator_run == True', {
......
...@@ -24,7 +24,7 @@ function returnTrue() { ...@@ -24,7 +24,7 @@ function returnTrue() {
function testIf() { function testIf() {
var a; var a;
|_|if (true) |_|a = true; if (true) |_|a = true;
|_|if (!a) { |_|if (!a) {
|_|a = true; |_|a = true;
} else { } else {
...@@ -110,7 +110,7 @@ function testForInLoop() { ...@@ -110,7 +110,7 @@ function testForInLoop() {
|R|} |R|}
function testSimpleExpressions() { function testSimpleExpressions() {
|_|1 + 2 + 3; 1 + 2 + 3;
var a = |_|1; var a = |_|1;
|_|++a; |_|++a;
|_|a--; |_|a--;
...@@ -172,7 +172,7 @@ function testGenerator() { ...@@ -172,7 +172,7 @@ function testGenerator() {
function throwException() { function throwException() {
|_|throw |C|new Error(); |_|throw |C|new Error();
|R|} }
function testCaughtException() { function testCaughtException() {
try { try {
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --turbo
InspectorTest.log('Checks Debugger.getPossibleBreakpoints'); InspectorTest.log('Checks Debugger.getPossibleBreakpoints');
var source = utils.read('test/inspector/debugger/resources/break-locations.js'); var source = utils.read('test/inspector/debugger/resources/break-locations.js');
......
...@@ -52,11 +52,6 @@ break at: ...@@ -52,11 +52,6 @@ break at:
Running test: testIf Running test: testIf
break at:
var a;
#if (true) a = true;
if (!a) {
break at: break at:
var a; var a;
if (true) #a = true; if (true) #a = true;
...@@ -398,11 +393,21 @@ break at: ...@@ -398,11 +393,21 @@ break at:
for (var k in #o) {} for (var k in #o) {}
for (var k in o) k; for (var k in o) k;
break at:
var o = {};
for (var #k in o) {}
for (var k in o) k;
break at: break at:
for (var k in o) {} for (var k in o) {}
for (var k in #o) k; for (var k in #o) k;
for (var k in { a:1 }) {} for (var k in { a:1 }) {}
break at:
for (var k in o) {}
for (var #k in o) k;
for (var k in { a:1 }) {}
break at: break at:
for (var k in o) k; for (var k in o) k;
for (var k in #{ a:1 }) {} for (var k in #{ a:1 }) {}
...@@ -440,11 +445,6 @@ break at: ...@@ -440,11 +445,6 @@ break at:
Running test: testSimpleExpressions Running test: testSimpleExpressions
break at:
function testSimpleExpressions() {
#1 + 2 + 3;
var a = 1;
break at: break at:
1 + 2 + 3; 1 + 2 + 3;
var a = #1; var a = #1;
......
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// Flags: --turbo
InspectorTest.log('Checks possible break locations.'); InspectorTest.log('Checks possible break locations.');
InspectorTest.setupScriptMap(); InspectorTest.setupScriptMap();
......
...@@ -176,6 +176,11 @@ ...@@ -176,6 +176,11 @@
# BUG(v8:5807): Flaky data race. # BUG(v8:5807): Flaky data race.
'wasm/embenchen/fannkuch': [PASS, ['tsan', SKIP]], 'wasm/embenchen/fannkuch': [PASS, ['tsan', SKIP]],
# BUG(v8:5778): These fail with --future, which we are about to turn on.
# Investigate.
'regress/regress-105': [SKIP],
}], # ALWAYS }], # ALWAYS
['novfp3 == True', { ['novfp3 == True', {
......
...@@ -25,10 +25,16 @@ ...@@ -25,10 +25,16 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --expose-externalize-string --expose-gc // Flags: --expose-externalize-string --expose-gc --allow-natives-syntax
var size = 1024; var size = 1024;
function dont_inline() { return "A"; }
%NeverOptimizeFunction(dont_inline);
function dont_inline2() { return "\u1234"; }
%NeverOptimizeFunction(dont_inline2);
function test() { function test() {
var str = ""; var str = "";
...@@ -39,12 +45,12 @@ function test() { ...@@ -39,12 +45,12 @@ function test() {
assertTrue(isOneByteString(str)); assertTrue(isOneByteString(str));
var twoByteExternalWithOneByteData = var twoByteExternalWithOneByteData =
"AA" + (function() { return "A"; })(); "AA" + dont_inline();
externalizeString(twoByteExternalWithOneByteData, true /* force two-byte */); externalizeString(twoByteExternalWithOneByteData, true /* force two-byte */);
assertFalse(isOneByteString(twoByteExternalWithOneByteData)); assertFalse(isOneByteString(twoByteExternalWithOneByteData));
var realTwoByteExternalString = var realTwoByteExternalString =
"\u1234\u1234\u1234\u1234" + (function() { return "\u1234"; })(); "\u1234\u1234\u1234\u1234" + dont_inline2();
externalizeString(realTwoByteExternalString); externalizeString(realTwoByteExternalString);
assertFalse(isOneByteString(realTwoByteExternalString)); assertFalse(isOneByteString(realTwoByteExternalString));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment