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

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

Issue 679793003: [turbofan] reduce allocations outside of pipeline (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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/generic-node-inl.h" 10 #include "src/compiler/generic-node-inl.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 } 54 }
55 55
56 void LowerAllNodesAndLowerChanges() { 56 void LowerAllNodesAndLowerChanges() {
57 this->End(); 57 this->End();
58 typer.Run(); 58 typer.Run();
59 lowering.LowerAllNodes(); 59 lowering.LowerAllNodes();
60 60
61 Zone* zone = this->zone(); 61 Zone* zone = this->zone();
62 CompilationInfo info(zone->isolate(), zone); 62 CompilationInfo info(zone->isolate(), zone);
63 Linkage linkage( 63 Linkage linkage(
64 &info, Linkage::GetSimplifiedCDescriptor(zone, this->machine_sig_)); 64 zone, Linkage::GetSimplifiedCDescriptor(zone, this->machine_sig_));
65 ChangeLowering lowering(&jsgraph, &linkage); 65 ChangeLowering lowering(&jsgraph, &linkage);
66 GraphReducer reducer(this->graph()); 66 GraphReducer reducer(this->graph());
67 reducer.AddReducer(&lowering); 67 reducer.AddReducer(&lowering);
68 reducer.ReduceGraph(); 68 reducer.ReduceGraph();
69 Verifier::Run(this->graph()); 69 Verifier::Run(this->graph());
70 } 70 }
71 71
72 void CheckNumberCall(double expected, double input) { 72 void CheckNumberCall(double expected, double input) {
73 // TODO(titzer): make calls to NewNumber work in cctests. 73 // TODO(titzer): make calls to NewNumber work in cctests.
74 if (expected <= Smi::kMinValue) return; 74 if (expected <= Smi::kMinValue) return;
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1951 TestingGraph t(Type::Unsigned32()); 1951 TestingGraph t(Type::Unsigned32());
1952 Node* k = t.jsgraph.Constant(0); 1952 Node* k = t.jsgraph.Constant(0);
1953 Node* mod = t.graph()->NewNode(t.simplified()->NumberModulus(), t.p0, k); 1953 Node* mod = t.graph()->NewNode(t.simplified()->NumberModulus(), t.p0, k);
1954 Node* trunc = t.graph()->NewNode(t.simplified()->NumberToUint32(), mod); 1954 Node* trunc = t.graph()->NewNode(t.simplified()->NumberToUint32(), mod);
1955 t.Return(trunc); 1955 t.Return(trunc);
1956 t.Lower(); 1956 t.Lower();
1957 1957
1958 CHECK_EQ(IrOpcode::kFloat64Mod, mod->opcode()); 1958 CHECK_EQ(IrOpcode::kFloat64Mod, mod->opcode());
1959 } 1959 }
1960 } 1960 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-linkage.cc ('k') | test/unittests/compiler/change-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698