Index: src/code-stubs.h |
=================================================================== |
--- src/code-stubs.h (revision 6513) |
+++ src/code-stubs.h (working copy) |
@@ -59,6 +59,7 @@ |
V(GenericUnaryOp) \ |
V(RevertToNumber) \ |
V(ToBoolean) \ |
+ V(ToNumber) \ |
V(CounterOp) \ |
V(ArgumentsAccess) \ |
V(RegExpExec) \ |
@@ -260,6 +261,19 @@ |
}; |
+class ToNumberStub: public CodeStub { |
+ public: |
+ ToNumberStub() { } |
+ |
+ void Generate(MacroAssembler* masm); |
+ |
+ private: |
+ Major MajorKey() { return ToNumber; } |
+ int MinorKey() { return 0; } |
+ const char* GetName() { return "ToNumberStub"; } |
+}; |
+ |
+ |
class FastNewClosureStub : public CodeStub { |
public: |
void Generate(MacroAssembler* masm); |