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

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

Issue 1409993002: [turbofan] Move SimplifiedOperatorBuilder into JSGraph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | test/cctest/compiler/test-js-constant-cache.cc » ('j') | 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 #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
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
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 }
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.h ('k') | test/cctest/compiler/test-js-constant-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698