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

Side by Side Diff: test/cctest/compiler/graph-builder-tester.h

Issue 1282763002: [turbofan] Drop V8_TURBOFAN_BACKEND and V8_TURBOFAN_TARGET defines. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
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 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 5 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 #include "test/cctest/cctest.h" 9 #include "test/cctest/cctest.h"
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 effect_ = result; 261 effect_ = result;
262 } 262 }
263 // This graph builder does not support control flow. 263 // This graph builder does not support control flow.
264 CHECK_EQ(0, op->ControlOutputCount()); 264 CHECK_EQ(0, op->ControlOutputCount());
265 } 265 }
266 266
267 return result; 267 return result;
268 } 268 }
269 269
270 virtual byte* Generate() { 270 virtual byte* Generate() {
271 if (!Pipeline::SupportedBackend()) return NULL;
272 if (code_.is_null()) { 271 if (code_.is_null()) {
273 Zone* zone = graph()->zone(); 272 Zone* zone = graph()->zone();
274 CallDescriptor* desc = 273 CallDescriptor* desc =
275 Linkage::GetSimplifiedCDescriptor(zone, this->csig_); 274 Linkage::GetSimplifiedCDescriptor(zone, this->csig_);
276 code_ = Pipeline::GenerateCodeForTesting(main_isolate(), desc, graph()); 275 code_ = Pipeline::GenerateCodeForTesting(main_isolate(), desc, graph());
277 #ifdef ENABLE_DISASSEMBLER 276 #ifdef ENABLE_DISASSEMBLER
278 if (!code_.is_null() && FLAG_print_opt_code) { 277 if (!code_.is_null() && FLAG_print_opt_code) {
279 OFStream os(stdout); 278 OFStream os(stdout);
280 code_.ToHandleChecked()->Disassemble("test code", os); 279 code_.ToHandleChecked()->Disassemble("test code", os);
281 } 280 }
(...skipping 16 matching lines...) Expand all
298 Node* return_; 297 Node* return_;
299 Node** parameters_; 298 Node** parameters_;
300 MaybeHandle<Code> code_; 299 MaybeHandle<Code> code_;
301 }; 300 };
302 301
303 } // namespace compiler 302 } // namespace compiler
304 } // namespace internal 303 } // namespace internal
305 } // namespace v8 304 } // namespace v8
306 305
307 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ 306 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_
OLDNEW
« no previous file with comments | « test/cctest/compiler/function-tester.h ('k') | test/cctest/compiler/test-basic-block-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698