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/change-lowering.h" | 10 #include "src/compiler/change-lowering.h" |
11 #include "src/compiler/control-builders.h" | 11 #include "src/compiler/control-builders.h" |
12 #include "src/compiler/js-graph.h" | 12 #include "src/compiler/js-graph.h" |
13 #include "src/compiler/node-properties.h" | 13 #include "src/compiler/node-properties.h" |
14 #include "src/compiler/pipeline.h" | 14 #include "src/compiler/pipeline.h" |
15 #include "src/compiler/select-lowering.h" | 15 #include "src/compiler/select-lowering.h" |
16 #include "src/compiler/simplified-lowering.h" | 16 #include "src/compiler/simplified-lowering.h" |
17 #include "src/compiler/typer.h" | 17 #include "src/compiler/typer.h" |
18 #include "src/compiler/verifier.h" | 18 #include "src/compiler/verifier.h" |
19 #include "src/execution.h" | 19 #include "src/execution.h" |
20 #include "src/globals.h" | 20 #include "src/globals.h" |
21 #include "src/parser.h" | 21 #include "src/parser.h" |
22 #include "src/rewriter.h" | 22 #include "src/rewriter.h" |
23 #include "src/scopes.h" | 23 #include "src/scopes.h" |
24 #include "test/cctest/cctest.h" | 24 #include "test/cctest/cctest.h" |
25 #include "test/cctest/compiler/codegen-tester.h" | 25 #include "test/cctest/compiler/codegen-tester.h" |
26 #include "test/cctest/compiler/function-tester.h" | 26 #include "test/cctest/compiler/function-tester.h" |
27 #include "test/cctest/compiler/graph-builder-tester.h" | 27 #include "test/cctest/compiler/graph-builder-tester.h" |
28 #include "test/cctest/compiler/value-helper.h" | 28 #include "test/cctest/compiler/value-helper.h" |
29 | 29 |
30 using namespace v8::internal; | 30 namespace v8 { |
31 using namespace v8::internal::compiler; | 31 namespace internal { |
| 32 namespace compiler { |
32 | 33 |
33 template <typename ReturnType> | 34 template <typename ReturnType> |
34 class ChangesLoweringTester : public GraphBuilderTester<ReturnType> { | 35 class ChangesLoweringTester : public GraphBuilderTester<ReturnType> { |
35 public: | 36 public: |
36 explicit ChangesLoweringTester(MachineType p0 = kMachNone) | 37 explicit ChangesLoweringTester(MachineType p0 = kMachNone) |
37 : GraphBuilderTester<ReturnType>(p0), | 38 : GraphBuilderTester<ReturnType>(p0), |
38 javascript(this->zone()), | 39 javascript(this->zone()), |
39 jsgraph(this->isolate(), this->graph(), this->common(), &javascript, | 40 jsgraph(this->isolate(), this->graph(), this->common(), &javascript, |
40 nullptr, this->machine()), | 41 nullptr, this->machine()), |
41 function(Handle<JSFunction>::null()) {} | 42 function(Handle<JSFunction>::null()) {} |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 Object* true_obj = t.heap()->true_value(); | 280 Object* true_obj = t.heap()->true_value(); |
280 CHECK_EQ(true_obj, result); | 281 CHECK_EQ(true_obj, result); |
281 } | 282 } |
282 | 283 |
283 { | 284 { |
284 Object* result = t.Call(0); | 285 Object* result = t.Call(0); |
285 Object* false_obj = t.heap()->false_value(); | 286 Object* false_obj = t.heap()->false_value(); |
286 CHECK_EQ(false_obj, result); | 287 CHECK_EQ(false_obj, result); |
287 } | 288 } |
288 } | 289 } |
| 290 |
| 291 } // namespace compiler |
| 292 } // namespace internal |
| 293 } // namespace v8 |
OLD | NEW |