Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index 6bda5da709e8de9e1c4b0edfea73ebc63a83fe59..dc07e5d67d8775e14a37e2381015c55e2e5ff884 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -442,12 +442,17 @@ class InstanceofStub: public CodeStub { |
class MathPowStub: public CodeStub { |
public: |
- MathPowStub() {} |
+ enum ExponentType { INTEGER, DOUBLE, TAGGED, ON_STACK}; |
+ |
+ explicit MathPowStub(ExponentType exponent_type) |
+ : exponent_type_(exponent_type) { } |
virtual void Generate(MacroAssembler* masm); |
private: |
virtual CodeStub::Major MajorKey() { return MathPow; } |
- virtual int MinorKey() { return 0; } |
+ virtual int MinorKey() { return exponent_type_; } |
+ |
+ ExponentType exponent_type_; |
}; |