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

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

Issue 683133005: [turbofan] initial framework for unittesting of register allocator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 1 month 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') | src/compiler/register-allocator.h » ('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 <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 DCHECK_NOT_NULL(data->graph()); 531 DCHECK_NOT_NULL(data->graph());
532 DCHECK_NOT_NULL(data->schedule()); 532 DCHECK_NOT_NULL(data->schedule());
533 CHECK(SupportedBackend()); 533 CHECK(SupportedBackend());
534 534
535 BasicBlockProfiler::Data* profiler_data = NULL; 535 BasicBlockProfiler::Data* profiler_data = NULL;
536 if (FLAG_turbo_profiling) { 536 if (FLAG_turbo_profiling) {
537 profiler_data = BasicBlockInstrumentor::Instrument(info(), data->graph(), 537 profiler_data = BasicBlockInstrumentor::Instrument(info(), data->graph(),
538 data->schedule()); 538 data->schedule());
539 } 539 }
540 540
541 InstructionSequence sequence(data->instruction_zone(), data->schedule()); 541 InstructionBlocks* instruction_blocks =
542 InstructionSequence::InstructionBlocksFor(data->instruction_zone(),
543 data->schedule());
544 InstructionSequence sequence(data->instruction_zone(), instruction_blocks);
542 545
543 // Select and schedule instructions covering the scheduled graph. 546 // Select and schedule instructions covering the scheduled graph.
544 { 547 {
545 PhaseScope phase_scope(data->pipeline_statistics(), "select instructions"); 548 PhaseScope phase_scope(data->pipeline_statistics(), "select instructions");
546 ZonePool::Scope zone_scope(data->zone_pool()); 549 ZonePool::Scope zone_scope(data->zone_pool());
547 InstructionSelector selector(zone_scope.zone(), data->graph(), linkage, 550 InstructionSelector selector(zone_scope.zone(), data->graph(), linkage,
548 &sequence, data->schedule(), 551 &sequence, data->schedule(),
549 data->source_positions()); 552 data->source_positions());
550 selector.SelectInstructions(); 553 selector.SelectInstructions();
551 } 554 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 630 }
628 631
629 632
630 void Pipeline::TearDown() { 633 void Pipeline::TearDown() {
631 InstructionOperand::TearDownCaches(); 634 InstructionOperand::TearDownCaches();
632 } 635 }
633 636
634 } // namespace compiler 637 } // namespace compiler
635 } // namespace internal 638 } // namespace internal
636 } // namespace v8 639 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/register-allocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698