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 <limits> | 5 #include <limits> |
6 | 6 |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
10 #include "src/compiler/operator-properties.h" | 10 #include "src/compiler/operator-properties.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 value_input_count, effect_input_count, control_input_count, \ | 48 value_input_count, effect_input_count, control_input_count, \ |
49 value_output_count, effect_output_count, control_output_count \ | 49 value_output_count, effect_output_count, control_output_count \ |
50 } | 50 } |
51 SHARED(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1), | 51 SHARED(Dead, Operator::kFoldable, 0, 0, 0, 0, 0, 1), |
52 SHARED(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1), | 52 SHARED(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1), |
53 SHARED(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1), | 53 SHARED(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1), |
54 SHARED(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1), | 54 SHARED(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1), |
55 SHARED(IfException, Operator::kKontrol, 0, 0, 1, 1, 0, 1), | 55 SHARED(IfException, Operator::kKontrol, 0, 0, 1, 1, 0, 1), |
56 SHARED(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1), | 56 SHARED(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1), |
57 SHARED(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1), | 57 SHARED(Return, Operator::kNoThrow, 1, 1, 1, 0, 0, 1), |
58 SHARED(Terminate, Operator::kNoThrow, 0, 1, 1, 0, 0, 1) | 58 SHARED(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) |
59 #undef SHARED | 59 #undef SHARED |
60 }; | 60 }; |
61 | 61 |
62 | 62 |
63 class CommonSharedOperatorTest | 63 class CommonSharedOperatorTest |
64 : public TestWithZone, | 64 : public TestWithZone, |
65 public ::testing::WithParamInterface<SharedOperator> {}; | 65 public ::testing::WithParamInterface<SharedOperator> {}; |
66 | 66 |
67 } // namespace | 67 } // namespace |
68 | 68 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); | 357 EXPECT_EQ(arguments + 1, OperatorProperties::GetTotalInputCount(op)); |
358 EXPECT_EQ(0, op->ControlOutputCount()); | 358 EXPECT_EQ(0, op->ControlOutputCount()); |
359 EXPECT_EQ(0, op->EffectOutputCount()); | 359 EXPECT_EQ(0, op->EffectOutputCount()); |
360 EXPECT_EQ(1, op->ValueOutputCount()); | 360 EXPECT_EQ(1, op->ValueOutputCount()); |
361 } | 361 } |
362 } | 362 } |
363 | 363 |
364 } // namespace compiler | 364 } // namespace compiler |
365 } // namespace internal | 365 } // namespace internal |
366 } // namespace v8 | 366 } // namespace v8 |
OLD | NEW |