Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index dcf8178e9133fd7865c6a85b1f6452fa09964944..1a6f863c5feaf9e40b657db26380f9ecb481a32c 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -68,6 +68,8 @@ |
namespace v8 { |
namespace internal { |
+const auto GetRegConfig = RegisterConfiguration::Crankshaft; |
+ |
class HOptimizedGraphBuilderWithPositions : public HOptimizedGraphBuilder { |
public: |
explicit HOptimizedGraphBuilderWithPositions(CompilationInfo* info) |
@@ -13552,10 +13554,11 @@ void HTracer::TraceLiveRange(LiveRange* range, const char* type, |
int assigned_reg = op->index(); |
if (op->IsDoubleRegister()) { |
trace_.Add(" \"%s\"", |
- DoubleRegister::from_code(assigned_reg).ToString()); |
+ GetRegConfig()->GetDoubleRegisterName(assigned_reg)); |
} else { |
DCHECK(op->IsRegister()); |
- trace_.Add(" \"%s\"", Register::from_code(assigned_reg).ToString()); |
+ trace_.Add(" \"%s\"", |
+ GetRegConfig()->GetGeneralRegisterName(assigned_reg)); |
} |
} else if (range->IsSpilled()) { |
LOperand* op = range->TopLevel()->GetSpillOperand(); |