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

Unified Diff: test/cctest/compiler/test-control-reducer.cc

Issue 1080023002: [turbofan] Clean up cached nodes in JSGraph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « src/compiler/js-graph.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-control-reducer.cc
diff --git a/test/cctest/compiler/test-control-reducer.cc b/test/cctest/compiler/test-control-reducer.cc
index c2b225ab009703a87fca31a8e9b24f671424070f..fb877e323c92443ba0d289ffdd5782e14ea3a399 100644
--- a/test/cctest/compiler/test-control-reducer.cc
+++ b/test/cctest/compiler/test-control-reducer.cc
@@ -400,6 +400,24 @@ TEST(Trim_constants) {
}
+TEST(Trim_EmptyFrameState1) {
+ ControlReducerTester T;
+
+ Node* node = T.jsgraph.EmptyFrameState();
+ T.Trim();
+
+ for (Node* input : node->inputs()) {
+ CHECK_NOT_NULL(input);
+ }
+}
+
+
+TEST(Trim_EmptyFrameState2) {
+ ControlReducerTester T;
+ CheckTrimConstant(&T, T.jsgraph.EmptyFrameState());
+}
+
+
TEST(CReducePhi1) {
ControlReducerTester R;
« no previous file with comments | « src/compiler/js-graph.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698