Keep ArrayLength, StringLength and FunctionPrototype MONOMORPHIC.

Review URL: https://chromiumcodereview.appspot.com/12181012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13590 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
verwaest@chromium.org 2013-02-04 15:40:50 +00:00
parent bd389e6e2d
commit 4bf6a992cf

View File

@ -549,12 +549,7 @@ class ICStub: public PlatformCodeStub {
public:
explicit ICStub(Code::Kind kind) : kind_(kind) { }
virtual int GetCodeKind() { return kind_; }
// Currently all IC stubs do not collect explicit type feedback but rather
// check the instance type.
// TODO(verwaest): These stubs should collect proper type feedback, and should
// not check the instance type explicitly (perhaps unless more than
// kMaxPolymorphism maps are recorded).
virtual InlineCacheState GetICState() { return MEGAMORPHIC; }
virtual InlineCacheState GetICState() { return MONOMORPHIC; }
bool Describes(Code* code) {
return GetMajorKey(code) == MajorKey() && code->stub_info() == MinorKey();