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

Unified Diff: test/cctest/compiler/test-loop-assignment-analysis.cc

Issue 2557593004: [ignition] desugar GetIterator() via bytecode rather than via AST (Closed)
Patch Set: georg's comments Created 4 years 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
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-loop-assignment-analysis.cc
diff --git a/test/cctest/compiler/test-loop-assignment-analysis.cc b/test/cctest/compiler/test-loop-assignment-analysis.cc
index 4995a8f4b7caf787422db356c94f34027c603786..315e3d5bdbde77e6859e5b13fccc2c7f615e47b8 100644
--- a/test/cctest/compiler/test-loop-assignment-analysis.cc
+++ b/test/cctest/compiler/test-loop-assignment-analysis.cc
@@ -71,27 +71,8 @@ TEST(SimpleLoop1) {
f.CheckLoopAssignedCount(0, "x");
}
-
-TEST(SimpleLoop2) {
- const char* loops[] = {
- "while (x) { var x = 0; }", "for(;;) { var x = 0; }",
- "for(;x;) { var x = 0; }", "for(;x;x) { var x = 0; }",
- "for(var i = x; x; x) { var x = 0; }", "for(y in 0) { var x = 0; }",
- "for(y of 0) { var x = 0; }", "for(var x = 0; x; x++) { }",
- "for(var x = 0; x++;) { }", "var x; for(;x;x++) { }",
- "var x; do { x = 1; } while (0);", "do { var x = 1; } while (0);"};
-
- for (size_t i = 0; i < arraysize(loops); i++) {
- TestHelper f(loops[i]);
- f.CheckLoopAssignedCount(1, "x");
- }
-}
-
-
-TEST(ForInOf1) {
- const char* loops[] = {
- "for(x in 0) { }", "for(x of 0) { }",
- };
+TEST(ForIn1) {
+ const char* loops[] = {"for(x in 0) { }"};
for (size_t i = 0; i < arraysize(loops); i++) {
TestHelper f(loops[i]);
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | test/cctest/interpreter/bytecode_expectations/ForOf.golden » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698