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

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

Issue 877753007: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: VS201x now happy? Created 5 years, 10 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/instruction.h ('k') | src/compiler/instruction-selector.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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 440
441 441
442 InstructionBlocks* InstructionSequence::InstructionBlocksFor( 442 InstructionBlocks* InstructionSequence::InstructionBlocksFor(
443 Zone* zone, const Schedule* schedule) { 443 Zone* zone, const Schedule* schedule) {
444 InstructionBlocks* blocks = zone->NewArray<InstructionBlocks>(1); 444 InstructionBlocks* blocks = zone->NewArray<InstructionBlocks>(1);
445 new (blocks) InstructionBlocks( 445 new (blocks) InstructionBlocks(
446 static_cast<int>(schedule->rpo_order()->size()), NULL, zone); 446 static_cast<int>(schedule->rpo_order()->size()), NULL, zone);
447 size_t rpo_number = 0; 447 size_t rpo_number = 0;
448 for (BasicBlockVector::const_iterator it = schedule->rpo_order()->begin(); 448 for (BasicBlockVector::const_iterator it = schedule->rpo_order()->begin();
449 it != schedule->rpo_order()->end(); ++it, ++rpo_number) { 449 it != schedule->rpo_order()->end(); ++it, ++rpo_number) {
450 DCHECK_EQ(NULL, (*blocks)[rpo_number]); 450 DCHECK(!(*blocks)[rpo_number]);
451 DCHECK((*it)->GetRpoNumber().ToSize() == rpo_number); 451 DCHECK((*it)->GetRpoNumber().ToSize() == rpo_number);
452 (*blocks)[rpo_number] = InstructionBlockFor(zone, *it); 452 (*blocks)[rpo_number] = InstructionBlockFor(zone, *it);
453 } 453 }
454 ComputeAssemblyOrder(blocks); 454 ComputeAssemblyOrder(blocks);
455 return blocks; 455 return blocks;
456 } 456 }
457 457
458 458
459 void InstructionSequence::ComputeAssemblyOrder(InstructionBlocks* blocks) { 459 void InstructionSequence::ComputeAssemblyOrder(InstructionBlocks* blocks) {
460 int ao = 0; 460 int ao = 0;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 os << " B" << succ_block->id(); 734 os << " B" << succ_block->id();
735 } 735 }
736 os << "\n"; 736 os << "\n";
737 } 737 }
738 return os; 738 return os;
739 } 739 }
740 740
741 } // namespace compiler 741 } // namespace compiler
742 } // namespace internal 742 } // namespace internal
743 } // namespace v8 743 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698