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

Side by Side Diff: src/compiler/node-matchers.h

Issue 1314473007: [turbofan] Remove usage of Unique<T> from graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 #ifndef V8_COMPILER_NODE_MATCHERS_H_ 5 #ifndef V8_COMPILER_NODE_MATCHERS_H_
6 #define V8_COMPILER_NODE_MATCHERS_H_ 6 #define V8_COMPILER_NODE_MATCHERS_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 9
10 // TODO(turbofan): Move ExternalReference out of assembler.h 10 // TODO(turbofan): Move ExternalReference out of assembler.h
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 bool IsZero() const { return this->Is(0.0) && !std::signbit(this->Value()); } 146 bool IsZero() const { return this->Is(0.0) && !std::signbit(this->Value()); }
147 }; 147 };
148 148
149 typedef FloatMatcher<float, IrOpcode::kFloat32Constant> Float32Matcher; 149 typedef FloatMatcher<float, IrOpcode::kFloat32Constant> Float32Matcher;
150 typedef FloatMatcher<double, IrOpcode::kFloat64Constant> Float64Matcher; 150 typedef FloatMatcher<double, IrOpcode::kFloat64Constant> Float64Matcher;
151 typedef FloatMatcher<double, IrOpcode::kNumberConstant> NumberMatcher; 151 typedef FloatMatcher<double, IrOpcode::kNumberConstant> NumberMatcher;
152 152
153 153
154 // A pattern matcher for heap object constants. 154 // A pattern matcher for heap object constants.
155 struct HeapObjectMatcher final 155 struct HeapObjectMatcher final
156 : public ValueMatcher<Unique<HeapObject>, IrOpcode::kHeapConstant> { 156 : public ValueMatcher<Handle<HeapObject>, IrOpcode::kHeapConstant> {
157 explicit HeapObjectMatcher(Node* node) 157 explicit HeapObjectMatcher(Node* node)
158 : ValueMatcher<Unique<HeapObject>, IrOpcode::kHeapConstant>(node) {} 158 : ValueMatcher<Handle<HeapObject>, IrOpcode::kHeapConstant>(node) {}
159 }; 159 };
160 160
161 161
162 // A pattern matcher for external reference constants. 162 // A pattern matcher for external reference constants.
163 struct ExternalReferenceMatcher final 163 struct ExternalReferenceMatcher final
164 : public ValueMatcher<ExternalReference, IrOpcode::kExternalConstant> { 164 : public ValueMatcher<ExternalReference, IrOpcode::kExternalConstant> {
165 explicit ExternalReferenceMatcher(Node* node) 165 explicit ExternalReferenceMatcher(Node* node)
166 : ValueMatcher<ExternalReference, IrOpcode::kExternalConstant>(node) {} 166 : ValueMatcher<ExternalReference, IrOpcode::kExternalConstant>(node) {}
167 }; 167 };
168 168
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 Node* branch_; 590 Node* branch_;
591 Node* if_true_; 591 Node* if_true_;
592 Node* if_false_; 592 Node* if_false_;
593 }; 593 };
594 594
595 } // namespace compiler 595 } // namespace compiler
596 } // namespace internal 596 } // namespace internal
597 } // namespace v8 597 } // namespace v8
598 598
599 #endif // V8_COMPILER_NODE_MATCHERS_H_ 599 #endif // V8_COMPILER_NODE_MATCHERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698