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

Side by Side Diff: src/compiler/simplified-operator-reducer.cc

Issue 1410003002: [turbofan] Remove locally constructed simplified builders. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 "src/compiler/simplified-operator-reducer.h" 5 #include "src/compiler/simplified-operator-reducer.h"
6 6
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/machine-operator.h" 8 #include "src/compiler/machine-operator.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/operator-properties.h" 10 #include "src/compiler/operator-properties.h"
11 #include "src/conversions-inl.h" 11 #include "src/conversions-inl.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 namespace compiler { 15 namespace compiler {
16 16
17 SimplifiedOperatorReducer::SimplifiedOperatorReducer(JSGraph* jsgraph) 17 SimplifiedOperatorReducer::SimplifiedOperatorReducer(JSGraph* jsgraph)
18 : jsgraph_(jsgraph), simplified_(jsgraph->zone()) {} 18 : jsgraph_(jsgraph) {}
19 19
20 20
21 SimplifiedOperatorReducer::~SimplifiedOperatorReducer() {} 21 SimplifiedOperatorReducer::~SimplifiedOperatorReducer() {}
22 22
23 23
24 Reduction SimplifiedOperatorReducer::Reduce(Node* node) { 24 Reduction SimplifiedOperatorReducer::Reduce(Node* node) {
25 switch (node->opcode()) { 25 switch (node->opcode()) {
26 case IrOpcode::kBooleanNot: { 26 case IrOpcode::kBooleanNot: {
27 HeapObjectMatcher m(node->InputAt(0)); 27 HeapObjectMatcher m(node->InputAt(0));
28 if (m.HasValue()) { 28 if (m.HasValue()) {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 Graph* SimplifiedOperatorReducer::graph() const { return jsgraph()->graph(); } 129 Graph* SimplifiedOperatorReducer::graph() const { return jsgraph()->graph(); }
130 130
131 131
132 MachineOperatorBuilder* SimplifiedOperatorReducer::machine() const { 132 MachineOperatorBuilder* SimplifiedOperatorReducer::machine() const {
133 return jsgraph()->machine(); 133 return jsgraph()->machine();
134 } 134 }
135 135
136 } // namespace compiler 136 } // namespace compiler
137 } // namespace internal 137 } // namespace internal
138 } // namespace v8 138 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator-reducer.h ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698