Chromium Code Reviews| Index: src/ia32/lithium-ia32.h |
| =================================================================== |
| --- src/ia32/lithium-ia32.h (revision 5948) |
| +++ src/ia32/lithium-ia32.h (working copy) |
| @@ -67,6 +67,7 @@ |
| // LLoadKeyedGeneric |
| // LModI |
| // LMulI |
| +// LPower |
| // LShiftI |
| // LSubI |
| // LCallConstantFunction |
| @@ -140,7 +141,7 @@ |
| // LTypeofIsAndBranch |
| // LUnaryMathOperation |
| // LValueOf |
| -// LUnknownOSRValue |
| +// LUnknownOSRValue |
|
Florian Schneider
2010/12/08 14:09:27
Accidental edit? UnknownOSRValue is not a UnaryOpe
William Hesse
2010/12/08 14:53:16
Done.
|
| #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ |
| V(BinaryOperation) \ |
| @@ -229,6 +230,7 @@ |
| V(ObjectLiteral) \ |
| V(OsrEntry) \ |
| V(Parameter) \ |
| + V(Power) \ |
|
Florian Schneider
2010/12/08 14:09:27
Align \
William Hesse
2010/12/08 14:53:16
Done.
|
| V(PushArgument) \ |
| V(RegExpLiteral) \ |
| V(Return) \ |
| @@ -1154,6 +1156,19 @@ |
| }; |
| +class LPower: public LBinaryOperation { |
| + public: |
| + LPower(LOperand* left, LOperand* right, Representation exponent_type) |
| + : LBinaryOperation(left, right), exponent_type_(exponent_type) { } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(Power, "power") |
| + Representation exponent_type() { return exponent_type_; } |
|
Florian Schneider
2010/12/08 14:09:27
You can save the exponent_type_ member here and ge
William Hesse
2010/12/08 14:53:16
Done.
William Hesse
2010/12/08 14:53:16
Done.
|
| + |
| + private: |
| + Representation exponent_type_; |
| +}; |
| + |
| + |
| class LArithmeticD: public LBinaryOperation { |
| public: |
| LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |