Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index f906a3acf63a45254b9e21be9659c74617e1131b..7ec43c6ac507c66c2cc98698eaf85aef2bfe3f2f 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -49,6 +49,7 @@ namespace internal { |
V(MathPow) \ |
V(ArrayLength) \ |
V(StringLength) \ |
+ V(FunctionPrototype) \ |
V(RecordWrite) \ |
V(StoreBufferOverflow) \ |
V(RegExpExec) \ |
@@ -577,6 +578,16 @@ class ArrayLengthStub: public ICStub { |
}; |
+class FunctionPrototypeStub: public ICStub { |
+ public: |
+ explicit FunctionPrototypeStub(Code::Kind kind) : ICStub(kind) { } |
+ virtual void Generate(MacroAssembler* masm); |
+ |
+ private: |
+ virtual CodeStub::Major MajorKey() { return FunctionPrototype; } |
+}; |
+ |
+ |
class StringLengthStub: public ICStub { |
public: |
StringLengthStub(Code::Kind kind, bool support_wrapper) |