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

Side by Side Diff: src/compiler/machine-operator-unittest.cc

Issue 526223002: Use Chrome compatible naming for compiler specifics. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: mips Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/machine-operator-reducer.h ('k') | src/compiler/node-matchers.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/compiler/compiler-unittests.h" 5 #include "src/compiler/compiler-unittests.h"
6 #include "src/compiler/machine-operator.h" 6 #include "src/compiler/machine-operator.h"
7 #include "src/compiler/operator-properties-inl.h" 7 #include "src/compiler/operator-properties-inl.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 using testing::IsNull; 10 using testing::IsNull;
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 namespace compiler { 14 namespace compiler {
15 15
16 class MachineOperatorCommonTest : public CompilerTestWithParam<MachineType> { 16 class MachineOperatorCommonTest : public CompilerTestWithParam<MachineType> {
17 public: 17 public:
18 MachineOperatorCommonTest() : machine_(NULL) {} 18 MachineOperatorCommonTest() : machine_(NULL) {}
19 virtual ~MachineOperatorCommonTest() { EXPECT_THAT(machine_, IsNull()); } 19 virtual ~MachineOperatorCommonTest() { EXPECT_THAT(machine_, IsNull()); }
20 20
21 virtual void SetUp() V8_OVERRIDE { 21 virtual void SetUp() OVERRIDE {
22 CompilerTestWithParam<MachineType>::SetUp(); 22 CompilerTestWithParam<MachineType>::SetUp();
23 machine_ = new MachineOperatorBuilder(zone(), GetParam()); 23 machine_ = new MachineOperatorBuilder(zone(), GetParam());
24 } 24 }
25 25
26 virtual void TearDown() V8_OVERRIDE { 26 virtual void TearDown() OVERRIDE {
27 delete machine_; 27 delete machine_;
28 machine_ = NULL; 28 machine_ = NULL;
29 CompilerTestWithParam<MachineType>::TearDown(); 29 CompilerTestWithParam<MachineType>::TearDown();
30 } 30 }
31 31
32 protected: 32 protected:
33 MachineOperatorBuilder* machine() const { return machine_; } 33 MachineOperatorBuilder* machine() const { return machine_; }
34 34
35 private: 35 private:
36 MachineOperatorBuilder* machine_; 36 MachineOperatorBuilder* machine_;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 EXPECT_EQ(1, OperatorProperties::GetValueOutputCount(op)); 76 EXPECT_EQ(1, OperatorProperties::GetValueOutputCount(op));
77 } 77 }
78 78
79 79
80 INSTANTIATE_TEST_CASE_P(MachineOperatorTest, MachineOperatorCommonTest, 80 INSTANTIATE_TEST_CASE_P(MachineOperatorTest, MachineOperatorCommonTest,
81 ::testing::Values(kRepWord32, kRepWord64)); 81 ::testing::Values(kRepWord32, kRepWord64));
82 82
83 } // namespace compiler 83 } // namespace compiler
84 } // namespace internal 84 } // namespace internal
85 } // namespace v8 85 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator-reducer.h ('k') | src/compiler/node-matchers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698