| OLD | NEW |
| 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/machine-operator.h" | 5 #include "src/compiler/machine-operator.h" |
| 6 #include "src/compiler/operator-properties-inl.h" | 6 #include "src/compiler/operator-properties-inl.h" |
| 7 #include "testing/gtest-support.h" | 7 #include "testing/gtest-support.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 kFullWriteBarrier)))); | 162 kFullWriteBarrier)))); |
| 163 | 163 |
| 164 | 164 |
| 165 // ----------------------------------------------------------------------------- | 165 // ----------------------------------------------------------------------------- |
| 166 // Pure operators. | 166 // Pure operators. |
| 167 | 167 |
| 168 | 168 |
| 169 namespace { | 169 namespace { |
| 170 | 170 |
| 171 struct PureOperator { | 171 struct PureOperator { |
| 172 const Operator* (MachineOperatorBuilder::*constructor)() const; | 172 const Operator* (MachineOperatorBuilder::*constructor)(); |
| 173 IrOpcode::Value opcode; | 173 IrOpcode::Value opcode; |
| 174 int value_input_count; | 174 int value_input_count; |
| 175 int value_output_count; | 175 int value_output_count; |
| 176 }; | 176 }; |
| 177 | 177 |
| 178 | 178 |
| 179 std::ostream& operator<<(std::ostream& os, const PureOperator& pop) { | 179 std::ostream& operator<<(std::ostream& os, const PureOperator& pop) { |
| 180 return os << IrOpcode::Mnemonic(pop.opcode); | 180 return os << IrOpcode::Mnemonic(pop.opcode); |
| 181 } | 181 } |
| 182 | 182 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 EXPECT_EQ(machine.Int64UDiv(), machine.IntUDiv()); | 315 EXPECT_EQ(machine.Int64UDiv(), machine.IntUDiv()); |
| 316 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); | 316 EXPECT_EQ(machine.Int64Mod(), machine.IntMod()); |
| 317 EXPECT_EQ(machine.Int64UMod(), machine.IntUMod()); | 317 EXPECT_EQ(machine.Int64UMod(), machine.IntUMod()); |
| 318 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); | 318 EXPECT_EQ(machine.Int64LessThan(), machine.IntLessThan()); |
| 319 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); | 319 EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual()); |
| 320 } | 320 } |
| 321 | 321 |
| 322 } // namespace compiler | 322 } // namespace compiler |
| 323 } // namespace internal | 323 } // namespace internal |
| 324 } // namespace v8 | 324 } // namespace v8 |
| OLD | NEW |