Index: test/unittests/compiler/js-operator-unittest.cc |
diff --git a/test/unittests/compiler/js-operator-unittest.cc b/test/unittests/compiler/js-operator-unittest.cc |
index f2239e96eb814bf19731c74b542b883260a32b31..4560794a8374a2b4a7a67c095da17cbd4f1c529b 100644 |
--- a/test/unittests/compiler/js-operator-unittest.cc |
+++ b/test/unittests/compiler/js-operator-unittest.cc |
@@ -36,7 +36,6 @@ struct SharedOperator { |
}; |
-const SharedOperator<no_params_t> kSharedOperators[] = { |
#define SHARED(Name, properties, value_input_count, frame_state_input_count, \ |
effect_input_count, control_input_count, value_output_count, \ |
effect_output_count, control_output_count) \ |
@@ -46,6 +45,9 @@ const SharedOperator<no_params_t> kSharedOperators[] = { |
control_input_count, value_output_count, effect_output_count, \ |
control_output_count \ |
} |
+ |
+ |
+const SharedOperator<no_params_t> kSharedOperators[] = { |
SHARED(Equal, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
SHARED(NotEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
SHARED(StrictEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0), |
@@ -66,21 +68,11 @@ const SharedOperator<no_params_t> kSharedOperators[] = { |
SHARED(CreateBlockContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
SHARED(CreateScriptContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2) |
-#undef SHARED |
}; |
const SharedOperator<with_language_mode_t> |
kSharedOperatorsWithlanguageMode[] = { |
-#define SHARED(Name, properties, value_input_count, frame_state_input_count, \ |
- effect_input_count, control_input_count, value_output_count, \ |
- effect_output_count, control_output_count) \ |
- { \ |
- &JSOperatorBuilder::Name, IrOpcode::kJS##Name, properties, \ |
- value_input_count, frame_state_input_count, effect_input_count, \ |
- control_input_count, value_output_count, effect_output_count, \ |
- control_output_count \ |
- } |
SHARED(LessThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
SHARED(GreaterThan, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
@@ -96,8 +88,8 @@ const SharedOperator<with_language_mode_t> |
SHARED(Multiply, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
SHARED(Divide, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
SHARED(Modulus, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), |
-#undef SHARED |
}; |
+#undef SHARED |
template <typename T> |