Commit 4bf6a992 authored by verwaest@chromium.org's avatar verwaest@chromium.org

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
parent bd389e6e
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment