Index: src/ia32/lithium-codegen-ia32.cc |
=================================================================== |
--- src/ia32/lithium-codegen-ia32.cc (revision 6334) |
+++ src/ia32/lithium-codegen-ia32.cc (working copy) |
@@ -412,8 +412,8 @@ |
Operand LCodeGen::ToOperand(LOperand* op) const { |
- ASSERT(!op->IsRegister()); |
- ASSERT(!op->IsDoubleRegister()); |
+ if (op->IsRegister()) return Operand(ToRegister(op)); |
+ if (op->IsDoubleRegister()) return Operand(ToDoubleRegister(op)); |
ASSERT(op->IsStackSlot() || op->IsDoubleStackSlot()); |
int index = op->index(); |
if (index >= 0) { |