summaryrefslogtreecommitdiff
path: root/deps/v8/test/unittests/compiler/machine-operator-unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/unittests/compiler/machine-operator-unittest.cc')
-rw-r--r--deps/v8/test/unittests/compiler/machine-operator-unittest.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/deps/v8/test/unittests/compiler/machine-operator-unittest.cc b/deps/v8/test/unittests/compiler/machine-operator-unittest.cc
index 400b05828a..75e8468244 100644
--- a/deps/v8/test/unittests/compiler/machine-operator-unittest.cc
+++ b/deps/v8/test/unittests/compiler/machine-operator-unittest.cc
@@ -11,6 +11,7 @@
namespace v8 {
namespace internal {
namespace compiler {
+namespace machine_operator_unittest {
#if GTEST_HAS_COMBINE
@@ -31,8 +32,6 @@ class MachineOperatorTestWithParam
};
-namespace {
-
const MachineRepresentation kMachineReps[] = {MachineRepresentation::kWord32,
MachineRepresentation::kWord64};
@@ -50,8 +49,6 @@ const MachineRepresentation kRepresentationsForStore[] = {
MachineRepresentation::kWord32, MachineRepresentation::kWord64,
MachineRepresentation::kTagged};
-} // namespace
-
// -----------------------------------------------------------------------------
// Load operator.
@@ -169,8 +166,6 @@ INSTANTIATE_TEST_CASE_P(
// -----------------------------------------------------------------------------
// Pure operators.
-namespace {
-
struct PureOperator {
const Operator* (MachineOperatorBuilder::*constructor)();
char const* const constructor_name;
@@ -269,7 +264,6 @@ const PureOperator kPureOperators[] = {
#undef PURE
};
-} // namespace
class MachinePureOperatorTest : public TestWithZone {
protected:
@@ -299,8 +293,6 @@ TEST_F(MachinePureOperatorTest, PureOperators) {
// Optional operators.
-namespace {
-
struct OptionalOperatorEntry {
const OptionalOperator (MachineOperatorBuilder::*constructor)();
MachineOperatorBuilder::Flag enabling_flag;
@@ -327,7 +319,6 @@ const OptionalOperatorEntry kOptionalOperators[] = {
OPTIONAL_ENTRY(Float64RoundTiesAway, 1, 0, 1), // --
#undef OPTIONAL_ENTRY
};
-} // namespace
class MachineOptionalOperatorTest : public TestWithZone {
@@ -365,12 +356,8 @@ TEST_F(MachineOptionalOperatorTest, OptionalOperators) {
// Pseudo operators.
-namespace {
-
typedef TestWithZone MachineOperatorTest;
-} // namespace
-
TEST_F(MachineOperatorTest, PseudoOperatorsWhenWordSizeIs32Bit) {
MachineOperatorBuilder machine(zone(), MachineRepresentation::kWord32);
@@ -415,6 +402,7 @@ TEST_F(MachineOperatorTest, PseudoOperatorsWhenWordSizeIs64Bit) {
EXPECT_EQ(machine.Int64LessThanOrEqual(), machine.IntLessThanOrEqual());
}
+} // namespace machine_operator_unittest
} // namespace compiler
} // namespace internal
} // namespace v8