Chromium Code Reviews| Index: src/ia32/lithium-codegen-ia32.h |
| diff --git a/src/ia32/lithium-codegen-ia32.h b/src/ia32/lithium-codegen-ia32.h |
| index dd335a4e59e31c2b89f0cef01cb5c0a287a32564..375f137d7bbe3d1b345bac402b873cf898feb94f 100644 |
| --- a/src/ia32/lithium-codegen-ia32.h |
| +++ b/src/ia32/lithium-codegen-ia32.h |
| @@ -78,7 +78,13 @@ class LCodeGen BASE_EMBEDDED { |
| Operand ToOperand(LOperand* op) const; |
| Register ToRegister(LOperand* op) const; |
| XMMRegister ToDoubleRegister(LOperand* op) const; |
| - Immediate ToImmediate(LOperand* op); |
| + |
| + bool IsInteger32(LConstantOperand* op) const; |
| + Immediate ToInteger32Immediate(LOperand* op) const { |
| + return Immediate(ToInteger32(LConstantOperand::cast(op))); |
|
danno
2011/12/23 09:09:23
::cast is redundant?
Vyacheslav Egorov (Chromium)
2011/12/23 10:36:37
I don't think so,
ToInteger takes LConstantOpera
|
| + } |
| + |
| + Handle<Object> ToHandle(LConstantOperand* op) const; |
| // The operand denoting the second word (the one with a higher address) of |
| // a double stack slot. |
| @@ -225,7 +231,7 @@ class LCodeGen BASE_EMBEDDED { |
| Register ToRegister(int index) const; |
| XMMRegister ToDoubleRegister(int index) const; |
| int ToInteger32(LConstantOperand* op) const; |
| - Handle<Object> ToHandle(LConstantOperand* op) const; |
| + |
| double ToDouble(LConstantOperand* op) const; |
| Operand BuildFastArrayOperand(LOperand* elements_pointer, |
| LOperand* key, |