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

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

Issue 1044793002: [turbofan] Add backend support for float32 operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MachineOperator unit tests. 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 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 Left left_; 223 Left left_;
224 Right right_; 224 Right right_;
225 }; 225 };
226 226
227 typedef BinopMatcher<Int32Matcher, Int32Matcher> Int32BinopMatcher; 227 typedef BinopMatcher<Int32Matcher, Int32Matcher> Int32BinopMatcher;
228 typedef BinopMatcher<Uint32Matcher, Uint32Matcher> Uint32BinopMatcher; 228 typedef BinopMatcher<Uint32Matcher, Uint32Matcher> Uint32BinopMatcher;
229 typedef BinopMatcher<Int64Matcher, Int64Matcher> Int64BinopMatcher; 229 typedef BinopMatcher<Int64Matcher, Int64Matcher> Int64BinopMatcher;
230 typedef BinopMatcher<Uint64Matcher, Uint64Matcher> Uint64BinopMatcher; 230 typedef BinopMatcher<Uint64Matcher, Uint64Matcher> Uint64BinopMatcher;
231 typedef BinopMatcher<IntPtrMatcher, IntPtrMatcher> IntPtrBinopMatcher; 231 typedef BinopMatcher<IntPtrMatcher, IntPtrMatcher> IntPtrBinopMatcher;
232 typedef BinopMatcher<UintPtrMatcher, UintPtrMatcher> UintPtrBinopMatcher; 232 typedef BinopMatcher<UintPtrMatcher, UintPtrMatcher> UintPtrBinopMatcher;
233 typedef BinopMatcher<Float32Matcher, Float32Matcher> Float32BinopMatcher;
233 typedef BinopMatcher<Float64Matcher, Float64Matcher> Float64BinopMatcher; 234 typedef BinopMatcher<Float64Matcher, Float64Matcher> Float64BinopMatcher;
234 typedef BinopMatcher<NumberMatcher, NumberMatcher> NumberBinopMatcher; 235 typedef BinopMatcher<NumberMatcher, NumberMatcher> NumberBinopMatcher;
235 236
236 237
237 template <class BinopMatcher, IrOpcode::Value kMulOpcode, 238 template <class BinopMatcher, IrOpcode::Value kMulOpcode,
238 IrOpcode::Value kShiftOpcode> 239 IrOpcode::Value kShiftOpcode>
239 struct ScaleMatcher { 240 struct ScaleMatcher {
240 explicit ScaleMatcher(Node* node, bool allow_power_of_two_plus_one = false) 241 explicit ScaleMatcher(Node* node, bool allow_power_of_two_plus_one = false)
241 : scale_(-1), power_of_two_plus_one_(false) { 242 : scale_(-1), power_of_two_plus_one_(false) {
242 if (node->InputCount() < 2) return; 243 if (node->InputCount() < 2) return;
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 typedef BaseWithIndexAndDisplacementMatcher<Int32AddMatcher> 540 typedef BaseWithIndexAndDisplacementMatcher<Int32AddMatcher>
540 BaseWithIndexAndDisplacement32Matcher; 541 BaseWithIndexAndDisplacement32Matcher;
541 typedef BaseWithIndexAndDisplacementMatcher<Int64AddMatcher> 542 typedef BaseWithIndexAndDisplacementMatcher<Int64AddMatcher>
542 BaseWithIndexAndDisplacement64Matcher; 543 BaseWithIndexAndDisplacement64Matcher;
543 544
544 } // namespace compiler 545 } // namespace compiler
545 } // namespace internal 546 } // namespace internal
546 } // namespace v8 547 } // namespace v8
547 548
548 #endif // V8_COMPILER_NODE_MATCHERS_H_ 549 #endif // V8_COMPILER_NODE_MATCHERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698