Keep ArrayLength, StringLength and FunctionPrototype MONOMORPHIC.
authorverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 4 Feb 2013 15:40:50 +0000 (15:40 +0000)
committerverwaest@chromium.org <verwaest@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 4 Feb 2013 15:40:50 +0000 (15:40 +0000)
Review URL: https://chromiumcodereview.appspot.com/12181012

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13590 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/code-stubs.h

index dde0cc2..1b160c4 100644 (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();