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

Side by Side Diff: src/compiler/pipeline.cc

Issue 663073002: [turbofan] pass zone to InstructionSequence (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/instruction.cc ('k') | test/cctest/compiler/test-codegen-deopt.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 "src/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/base/platform/elapsed-timer.h" 9 #include "src/base/platform/elapsed-timer.h"
10 #include "src/compiler/ast-graph-builder.h" 10 #include "src/compiler/ast-graph-builder.h"
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 DCHECK_NOT_NULL(graph); 446 DCHECK_NOT_NULL(graph);
447 DCHECK_NOT_NULL(linkage); 447 DCHECK_NOT_NULL(linkage);
448 DCHECK_NOT_NULL(schedule); 448 DCHECK_NOT_NULL(schedule);
449 CHECK(SupportedBackend()); 449 CHECK(SupportedBackend());
450 450
451 BasicBlockProfiler::Data* profiler_data = NULL; 451 BasicBlockProfiler::Data* profiler_data = NULL;
452 if (FLAG_turbo_profiling) { 452 if (FLAG_turbo_profiling) {
453 profiler_data = BasicBlockInstrumentor::Instrument(info_, graph, schedule); 453 profiler_data = BasicBlockInstrumentor::Instrument(info_, graph, schedule);
454 } 454 }
455 455
456 InstructionSequence sequence(linkage, graph, schedule); 456 Zone* instruction_zone = schedule->zone();
457 InstructionSequence sequence(instruction_zone, linkage, graph, schedule);
457 458
458 // Select and schedule instructions covering the scheduled graph. 459 // Select and schedule instructions covering the scheduled graph.
459 { 460 {
460 InstructionSelector selector(&sequence, schedule, source_positions); 461 InstructionSelector selector(&sequence, schedule, source_positions);
461 selector.SelectInstructions(); 462 selector.SelectInstructions();
462 } 463 }
463 464
464 if (FLAG_trace_turbo) { 465 if (FLAG_trace_turbo) {
465 OFStream os(stdout); 466 OFStream os(stdout);
466 os << "----- Instruction sequence before register allocation -----\n" 467 os << "----- Instruction sequence before register allocation -----\n"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 } 512 }
512 513
513 514
514 void Pipeline::TearDown() { 515 void Pipeline::TearDown() {
515 InstructionOperand::TearDownCaches(); 516 InstructionOperand::TearDownCaches();
516 } 517 }
517 518
518 } // namespace compiler 519 } // namespace compiler
519 } // namespace internal 520 } // namespace internal
520 } // namespace v8 521 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | test/cctest/compiler/test-codegen-deopt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698