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

Side by Side Diff: src/hydrogen.cc

Issue 1365073002: Revert of 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 13443 matching lines...) Expand 10 before | Expand all | Expand 10 after
13454 void HTracer::TraceLiveRange(LiveRange* range, const char* type, 13454 void HTracer::TraceLiveRange(LiveRange* range, const char* type,
13455 Zone* zone) { 13455 Zone* zone) {
13456 if (range != NULL && !range->IsEmpty()) { 13456 if (range != NULL && !range->IsEmpty()) {
13457 PrintIndent(); 13457 PrintIndent();
13458 trace_.Add("%d %s", range->id(), type); 13458 trace_.Add("%d %s", range->id(), type);
13459 if (range->HasRegisterAssigned()) { 13459 if (range->HasRegisterAssigned()) {
13460 LOperand* op = range->CreateAssignedOperand(zone); 13460 LOperand* op = range->CreateAssignedOperand(zone);
13461 int assigned_reg = op->index(); 13461 int assigned_reg = op->index();
13462 if (op->IsDoubleRegister()) { 13462 if (op->IsDoubleRegister()) {
13463 trace_.Add(" \"%s\"", 13463 trace_.Add(" \"%s\"",
13464 DoubleRegister::from_code(assigned_reg).ToString()); 13464 DoubleRegister::AllocationIndexToString(assigned_reg));
13465 } else { 13465 } else {
13466 DCHECK(op->IsRegister()); 13466 DCHECK(op->IsRegister());
13467 trace_.Add(" \"%s\"", Register::from_code(assigned_reg).ToString()); 13467 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg));
13468 } 13468 }
13469 } else if (range->IsSpilled()) { 13469 } else if (range->IsSpilled()) {
13470 LOperand* op = range->TopLevel()->GetSpillOperand(); 13470 LOperand* op = range->TopLevel()->GetSpillOperand();
13471 if (op->IsDoubleStackSlot()) { 13471 if (op->IsDoubleStackSlot()) {
13472 trace_.Add(" \"double_stack:%d\"", op->index()); 13472 trace_.Add(" \"double_stack:%d\"", op->index());
13473 } else { 13473 } else {
13474 DCHECK(op->IsStackSlot()); 13474 DCHECK(op->IsStackSlot());
13475 trace_.Add(" \"stack:%d\"", op->index()); 13475 trace_.Add(" \"stack:%d\"", op->index());
13476 } 13476 }
13477 } 13477 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
13597 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13597 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13598 } 13598 }
13599 13599
13600 #ifdef DEBUG 13600 #ifdef DEBUG
13601 graph_->Verify(false); // No full verify. 13601 graph_->Verify(false); // No full verify.
13602 #endif 13602 #endif
13603 } 13603 }
13604 13604
13605 } // namespace internal 13605 } // namespace internal
13606 } // namespace v8 13606 } // 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