OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |