aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc')
-rw-r--r--deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc b/deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc
index 681669f334..775ffadfd4 100644
--- a/deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc
+++ b/deps/v8/test/cctest/compiler/test-run-bytecode-graph-builder.cc
@@ -2703,37 +2703,6 @@ void TestJumpWithConstantsAndWideConstants(size_t shard) {
SHARD_TEST_BY_4(JumpWithConstantsAndWideConstants)
-TEST(BytecodeGraphBuilderDoExpressions) {
- bool old_flag = FLAG_harmony_do_expressions;
- FLAG_harmony_do_expressions = true;
- HandleAndZoneScope scope;
- Isolate* isolate = scope.main_isolate();
- Factory* factory = isolate->factory();
- ExpectedSnippet<0> snippets[] = {
- {"var a = do {}; return a;", {factory->undefined_value()}},
- {"var a = do { var x = 100; }; return a;", {factory->undefined_value()}},
- {"var a = do { var x = 100; }; return a;", {factory->undefined_value()}},
- {"var a = do { var x = 100; x++; }; return a;",
- {handle(Smi::FromInt(100), isolate)}},
- {"var i = 0; for (; i < 5;) { i = do { if (i == 3) { break; }; i + 1; }};"
- "return i;",
- {handle(Smi::FromInt(3), isolate)}},
- };
-
- for (size_t i = 0; i < arraysize(snippets); i++) {
- ScopedVector<char> script(1024);
- SNPrintF(script, "function %s() { %s }\n%s();", kFunctionName,
- snippets[i].code_snippet, kFunctionName);
-
- BytecodeGraphTester tester(isolate, script.start());
- auto callable = tester.GetCallable<>();
- Handle<Object> return_value = callable().ToHandleChecked();
- CHECK(return_value->SameValue(*snippets[i].return_value()));
- }
-
- FLAG_harmony_do_expressions = old_flag;
-}
-
TEST(BytecodeGraphBuilderWithStatement) {
HandleAndZoneScope scope;
Isolate* isolate = scope.main_isolate();