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

Side by Side Diff: src/hydrogen.cc

Issue 1287383003: Re-reland: Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Updated to ToT Created 5 years, 3 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
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 13359 matching lines...) Expand 10 before | Expand all | Expand 10 after
13370 void HTracer::TraceLiveRange(LiveRange* range, const char* type, 13370 void HTracer::TraceLiveRange(LiveRange* range, const char* type,
13371 Zone* zone) { 13371 Zone* zone) {
13372 if (range != NULL && !range->IsEmpty()) { 13372 if (range != NULL && !range->IsEmpty()) {
13373 PrintIndent(); 13373 PrintIndent();
13374 trace_.Add("%d %s", range->id(), type); 13374 trace_.Add("%d %s", range->id(), type);
13375 if (range->HasRegisterAssigned()) { 13375 if (range->HasRegisterAssigned()) {
13376 LOperand* op = range->CreateAssignedOperand(zone); 13376 LOperand* op = range->CreateAssignedOperand(zone);
13377 int assigned_reg = op->index(); 13377 int assigned_reg = op->index();
13378 if (op->IsDoubleRegister()) { 13378 if (op->IsDoubleRegister()) {
13379 trace_.Add(" \"%s\"", 13379 trace_.Add(" \"%s\"",
13380 DoubleRegister::AllocationIndexToString(assigned_reg)); 13380 DoubleRegister::from_code(assigned_reg).ToString());
13381 } else { 13381 } else {
13382 DCHECK(op->IsRegister()); 13382 DCHECK(op->IsRegister());
13383 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg)); 13383 trace_.Add(" \"%s\"", Register::from_code(assigned_reg).ToString());
13384 } 13384 }
13385 } else if (range->IsSpilled()) { 13385 } else if (range->IsSpilled()) {
13386 LOperand* op = range->TopLevel()->GetSpillOperand(); 13386 LOperand* op = range->TopLevel()->GetSpillOperand();
13387 if (op->IsDoubleStackSlot()) { 13387 if (op->IsDoubleStackSlot()) {
13388 trace_.Add(" \"double_stack:%d\"", op->index()); 13388 trace_.Add(" \"double_stack:%d\"", op->index());
13389 } else { 13389 } else {
13390 DCHECK(op->IsStackSlot()); 13390 DCHECK(op->IsStackSlot());
13391 trace_.Add(" \"stack:%d\"", op->index()); 13391 trace_.Add(" \"stack:%d\"", op->index());
13392 } 13392 }
13393 } 13393 }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
13513 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13513 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13514 } 13514 }
13515 13515
13516 #ifdef DEBUG 13516 #ifdef DEBUG
13517 graph_->Verify(false); // No full verify. 13517 graph_->Verify(false); // No full verify.
13518 #endif 13518 #endif
13519 } 13519 }
13520 13520
13521 } // namespace internal 13521 } // namespace internal
13522 } // namespace v8 13522 } // namespace v8
OLDNEW
« src/arm/deoptimizer-arm.cc ('K') | « src/frames.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698