Chromium Code Reviews| Index: src/code-stubs.h |
| diff --git a/src/code-stubs.h b/src/code-stubs.h |
| index bd572c2f26b93e6ab5cb2d9e247529c32ff2b18f..6a763a43648b9c3519446961ac56921c6a3135d3 100644 |
| --- a/src/code-stubs.h |
| +++ b/src/code-stubs.h |
| @@ -548,7 +548,12 @@ class ICStub: public PlatformCodeStub { |
| public: |
| explicit ICStub(Code::Kind kind) : kind_(kind) { } |
| virtual int GetCodeKind() { return kind_; } |
| - virtual InlineCacheState GetICState() { return MONOMORPHIC; } |
| + // Currently all IC stubs do not collect explicit type feedback but rather |
| + // check the instance type. |
| + // TODO(verwaest): These stubs should collect proper typefeedback, and should |
|
Jakob Kummerow
2013/02/04 13:04:06
nit: "type feedback"
|
| + // not check the instance type explictly (perhaps unless more than |
|
Jakob Kummerow
2013/02/04 13:04:06
nit: "explicitly"
|
| + // kMaxPolymorphism maps are recorded). |
| + virtual InlineCacheState GetICState() { return MEGAMORPHIC; } |
| bool Describes(Code* code) { |
| return GetMajorKey(code) == MajorKey() && code->stub_info() == MinorKey(); |