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

Side by Side Diff: src/hydrogen.cc

Issue 1380863004: Revert of Reland: Remove register index/code indirection (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/frames.cc ('k') | src/ia32/assembler-ia32.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 13508 matching lines...) Expand 10 before | Expand all | Expand 10 after
13519 void HTracer::TraceLiveRange(LiveRange* range, const char* type, 13519 void HTracer::TraceLiveRange(LiveRange* range, const char* type,
13520 Zone* zone) { 13520 Zone* zone) {
13521 if (range != NULL && !range->IsEmpty()) { 13521 if (range != NULL && !range->IsEmpty()) {
13522 PrintIndent(); 13522 PrintIndent();
13523 trace_.Add("%d %s", range->id(), type); 13523 trace_.Add("%d %s", range->id(), type);
13524 if (range->HasRegisterAssigned()) { 13524 if (range->HasRegisterAssigned()) {
13525 LOperand* op = range->CreateAssignedOperand(zone); 13525 LOperand* op = range->CreateAssignedOperand(zone);
13526 int assigned_reg = op->index(); 13526 int assigned_reg = op->index();
13527 if (op->IsDoubleRegister()) { 13527 if (op->IsDoubleRegister()) {
13528 trace_.Add(" \"%s\"", 13528 trace_.Add(" \"%s\"",
13529 DoubleRegister::from_code(assigned_reg).ToString()); 13529 DoubleRegister::AllocationIndexToString(assigned_reg));
13530 } else { 13530 } else {
13531 DCHECK(op->IsRegister()); 13531 DCHECK(op->IsRegister());
13532 trace_.Add(" \"%s\"", Register::from_code(assigned_reg).ToString()); 13532 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg));
13533 } 13533 }
13534 } else if (range->IsSpilled()) { 13534 } else if (range->IsSpilled()) {
13535 LOperand* op = range->TopLevel()->GetSpillOperand(); 13535 LOperand* op = range->TopLevel()->GetSpillOperand();
13536 if (op->IsDoubleStackSlot()) { 13536 if (op->IsDoubleStackSlot()) {
13537 trace_.Add(" \"double_stack:%d\"", op->index()); 13537 trace_.Add(" \"double_stack:%d\"", op->index());
13538 } else { 13538 } else {
13539 DCHECK(op->IsStackSlot()); 13539 DCHECK(op->IsStackSlot());
13540 trace_.Add(" \"stack:%d\"", op->index()); 13540 trace_.Add(" \"stack:%d\"", op->index());
13541 } 13541 }
13542 } 13542 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
13662 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13662 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13663 } 13663 }
13664 13664
13665 #ifdef DEBUG 13665 #ifdef DEBUG
13666 graph_->Verify(false); // No full verify. 13666 graph_->Verify(false); // No full verify.
13667 #endif 13667 #endif
13668 } 13668 }
13669 13669
13670 } // namespace internal 13670 } // namespace internal
13671 } // namespace v8 13671 } // namespace v8
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698