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

Side by Side Diff: test/cctest/compiler/test-simplified-lowering.cc

Issue 1424943004: Move compiler cctests into v8::internal::compiler namespace. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « test/cctest/compiler/test-run-variables.cc ('k') | no next file » | 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 // TODO(jochen): Remove this after the setting is turned on globally. 5 // TODO(jochen): Remove this after the setting is turned on globally.
6 #define V8_IMMINENT_DEPRECATION_WARNINGS 6 #define V8_IMMINENT_DEPRECATION_WARNINGS
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 11 matching lines...) Expand all
22 #include "src/execution.h" 22 #include "src/execution.h"
23 #include "src/parser.h" 23 #include "src/parser.h"
24 #include "src/rewriter.h" 24 #include "src/rewriter.h"
25 #include "src/scopes.h" 25 #include "src/scopes.h"
26 #include "test/cctest/cctest.h" 26 #include "test/cctest/cctest.h"
27 #include "test/cctest/compiler/codegen-tester.h" 27 #include "test/cctest/compiler/codegen-tester.h"
28 #include "test/cctest/compiler/function-tester.h" 28 #include "test/cctest/compiler/function-tester.h"
29 #include "test/cctest/compiler/graph-builder-tester.h" 29 #include "test/cctest/compiler/graph-builder-tester.h"
30 #include "test/cctest/compiler/value-helper.h" 30 #include "test/cctest/compiler/value-helper.h"
31 31
32 using namespace v8::internal; 32 namespace v8 {
33 using namespace v8::internal::compiler; 33 namespace internal {
34 namespace compiler {
34 35
35 template <typename ReturnType> 36 template <typename ReturnType>
36 class SimplifiedLoweringTester : public GraphBuilderTester<ReturnType> { 37 class SimplifiedLoweringTester : public GraphBuilderTester<ReturnType> {
37 public: 38 public:
38 SimplifiedLoweringTester(MachineType p0 = kMachNone, 39 SimplifiedLoweringTester(MachineType p0 = kMachNone,
39 MachineType p1 = kMachNone) 40 MachineType p1 = kMachNone)
40 : GraphBuilderTester<ReturnType>(p0, p1), 41 : GraphBuilderTester<ReturnType>(p0, p1),
41 typer(this->isolate(), this->graph()), 42 typer(this->isolate(), this->graph()),
42 javascript(this->zone()), 43 javascript(this->zone()),
43 jsgraph(this->isolate(), this->graph(), this->common(), &javascript, 44 jsgraph(this->isolate(), this->graph(), this->common(), &javascript,
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 Type* phi_type = Type::Union(d.arg1, d.arg2, z); 2000 Type* phi_type = Type::Union(d.arg1, d.arg2, z);
2000 NodeProperties::SetType(phi, phi_type); 2001 NodeProperties::SetType(phi, phi_type);
2001 2002
2002 Node* use = t.Use(phi, d.use); 2003 Node* use = t.Use(phi, d.use);
2003 t.Return(use); 2004 t.Return(use);
2004 t.Lower(); 2005 t.Lower();
2005 2006
2006 CHECK_EQ(d.expected, OpParameter<MachineType>(phi)); 2007 CHECK_EQ(d.expected, OpParameter<MachineType>(phi));
2007 } 2008 }
2008 } 2009 }
2010
2011 } // namespace compiler
2012 } // namespace internal
2013 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-run-variables.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698