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

Side by Side Diff: test/compiler-unittests/change-lowering-unittest.cc

Issue 469743002: [turbofan] Refactor the InstructionSelector tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: ARM64 Created 6 years, 4 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
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/change-lowering.h" 5 #include "src/compiler/change-lowering.h"
6 #include "src/compiler/common-operator.h" 6 #include "src/compiler/common-operator.h"
7 #include "src/compiler/graph.h" 7 #include "src/compiler/graph.h"
8 #include "src/compiler/node-properties-inl.h" 8 #include "src/compiler/node-properties-inl.h"
9 #include "src/compiler/simplified-operator.h" 9 #include "src/compiler/simplified-operator.h"
10 #include "src/factory.h" 10 #include "src/factory.h"
11 #include "test/compiler-unittests/compiler-unittests.h" 11 #include "test/compiler-unittests/compiler-unittests.h"
12 #include "test/compiler-unittests/node-matchers.h" 12 #include "test/compiler-unittests/node-matchers.h"
13 #include "testing/gtest-type-names.h"
14 13
15 using testing::_; 14 using testing::_;
16 15
17 namespace v8 { 16 namespace v8 {
18 namespace internal { 17 namespace internal {
19 namespace compiler { 18 namespace compiler {
20 19
21 template <typename T> 20 template <typename T>
22 class ChangeLoweringTest : public CompilerTest { 21 class ChangeLoweringTest : public CompilerTest {
23 public: 22 public:
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 EXPECT_EQ(branch, NodeProperties::GetControlInput(if_false)); 247 EXPECT_EQ(branch, NodeProperties::GetControlInput(if_false));
249 STATIC_ASSERT(kSmiTag == 0); 248 STATIC_ASSERT(kSmiTag == 0);
250 STATIC_ASSERT(kSmiTagSize == 1); 249 STATIC_ASSERT(kSmiTagSize == 1);
251 EXPECT_THAT(branch, IsBranch(IsWord64And(val, IsInt32Constant(kSmiTagMask)), 250 EXPECT_THAT(branch, IsBranch(IsWord64And(val, IsInt32Constant(kSmiTagMask)),
252 graph()->start())); 251 graph()->start()));
253 } 252 }
254 253
255 } // namespace compiler 254 } // namespace compiler
256 } // namespace internal 255 } // namespace internal
257 } // namespace v8 256 } // namespace v8
OLDNEW
« no previous file with comments | « test/compiler-unittests/arm64/instruction-selector-arm64-unittest.cc ('k') | test/compiler-unittests/compiler-unittests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698