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 #include <limits> | 5 #include <limits> |
6 | 6 |
7 #include "src/compiler/change-lowering.h" | 7 #include "src/compiler/change-lowering.h" |
8 #include "src/compiler/control-builders.h" | 8 #include "src/compiler/control-builders.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 using namespace v8::internal; | 27 using namespace v8::internal; |
28 using namespace v8::internal::compiler; | 28 using namespace v8::internal::compiler; |
29 | 29 |
30 template <typename ReturnType> | 30 template <typename ReturnType> |
31 class ChangesLoweringTester : public GraphBuilderTester<ReturnType> { | 31 class ChangesLoweringTester : public GraphBuilderTester<ReturnType> { |
32 public: | 32 public: |
33 explicit ChangesLoweringTester(MachineType p0 = kMachNone) | 33 explicit ChangesLoweringTester(MachineType p0 = kMachNone) |
34 : GraphBuilderTester<ReturnType>(p0), | 34 : GraphBuilderTester<ReturnType>(p0), |
35 javascript(this->zone()), | 35 javascript(this->zone()), |
36 jsgraph(this->isolate(), this->graph(), this->common(), &javascript, | 36 jsgraph(this->isolate(), this->graph(), this->common(), &javascript, |
37 this->machine()), | 37 nullptr, this->machine()), |
38 function(Handle<JSFunction>::null()) {} | 38 function(Handle<JSFunction>::null()) {} |
39 | 39 |
40 JSOperatorBuilder javascript; | 40 JSOperatorBuilder javascript; |
41 JSGraph jsgraph; | 41 JSGraph jsgraph; |
42 Handle<JSFunction> function; | 42 Handle<JSFunction> function; |
43 | 43 |
44 Node* start() { return this->graph()->start(); } | 44 Node* start() { return this->graph()->start(); } |
45 | 45 |
46 template <typename T> | 46 template <typename T> |
47 T* CallWithPotentialGC() { | 47 T* CallWithPotentialGC() { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 Object* true_obj = t.heap()->true_value(); | 276 Object* true_obj = t.heap()->true_value(); |
277 CHECK_EQ(true_obj, result); | 277 CHECK_EQ(true_obj, result); |
278 } | 278 } |
279 | 279 |
280 { | 280 { |
281 Object* result = t.Call(0); | 281 Object* result = t.Call(0); |
282 Object* false_obj = t.heap()->false_value(); | 282 Object* false_obj = t.heap()->false_value(); |
283 CHECK_EQ(false_obj, result); | 283 CHECK_EQ(false_obj, result); |
284 } | 284 } |
285 } | 285 } |
OLD | NEW |