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

Side by Side Diff: test/cctest/compiler/test-simplified-lowering.cc

Issue 1157023002: [turbofan] Change End to take a variable number of inputs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <limits> 5 #include <limits>
6 6
7 #include "src/compiler/access-builder.h" 7 #include "src/compiler/access-builder.h"
8 #include "src/compiler/change-lowering.h" 8 #include "src/compiler/change-lowering.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 explicit TestingGraph(Type* p0_type, Type* p1_type = Type::None(), 703 explicit TestingGraph(Type* p0_type, Type* p1_type = Type::None(),
704 Type* p2_type = Type::None()) 704 Type* p2_type = Type::None())
705 : GraphAndBuilders(main_zone()), 705 : GraphAndBuilders(main_zone()),
706 typer(main_isolate(), graph(), MaybeHandle<Context>()), 706 typer(main_isolate(), graph(), MaybeHandle<Context>()),
707 javascript(main_zone()), 707 javascript(main_zone()),
708 jsgraph(main_isolate(), graph(), common(), &javascript, machine()) { 708 jsgraph(main_isolate(), graph(), common(), &javascript, machine()) {
709 start = graph()->NewNode(common()->Start(2)); 709 start = graph()->NewNode(common()->Start(2));
710 graph()->SetStart(start); 710 graph()->SetStart(start);
711 ret = 711 ret =
712 graph()->NewNode(common()->Return(), jsgraph.Constant(0), start, start); 712 graph()->NewNode(common()->Return(), jsgraph.Constant(0), start, start);
713 end = graph()->NewNode(common()->End(), ret); 713 end = graph()->NewNode(common()->End(1), ret);
714 graph()->SetEnd(end); 714 graph()->SetEnd(end);
715 p0 = graph()->NewNode(common()->Parameter(0), start); 715 p0 = graph()->NewNode(common()->Parameter(0), start);
716 p1 = graph()->NewNode(common()->Parameter(1), start); 716 p1 = graph()->NewNode(common()->Parameter(1), start);
717 p2 = graph()->NewNode(common()->Parameter(2), start); 717 p2 = graph()->NewNode(common()->Parameter(2), start);
718 typer.Run(); 718 typer.Run();
719 NodeProperties::SetBounds(p0, Bounds(p0_type)); 719 NodeProperties::SetBounds(p0, Bounds(p0_type));
720 NodeProperties::SetBounds(p1, Bounds(p1_type)); 720 NodeProperties::SetBounds(p1, Bounds(p1_type));
721 NodeProperties::SetBounds(p2, Bounds(p2_type)); 721 NodeProperties::SetBounds(p2, Bounds(p2_type));
722 } 722 }
723 723
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after
2090 Bounds phi_bounds = Bounds::Either(Bounds(d.arg1), Bounds(d.arg2), z); 2090 Bounds phi_bounds = Bounds::Either(Bounds(d.arg1), Bounds(d.arg2), z);
2091 NodeProperties::SetBounds(phi, phi_bounds); 2091 NodeProperties::SetBounds(phi, phi_bounds);
2092 2092
2093 Node* use = t.Use(phi, d.use); 2093 Node* use = t.Use(phi, d.use);
2094 t.Return(use); 2094 t.Return(use);
2095 t.Lower(); 2095 t.Lower();
2096 2096
2097 CHECK_EQ(d.expected, OpParameter<MachineType>(phi)); 2097 CHECK_EQ(d.expected, OpParameter<MachineType>(phi));
2098 } 2098 }
2099 } 2099 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698