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

Unified Diff: src/ia32/lithium-ia32.h

Issue 5640004: Allow the optimizing code generator to call Math.pow with untagged doubles. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698