Handle MONOMORPIC loads where type feedback is code stub
R=jkummerow@chromium.org Review URL: https://codereview.chromium.org/17451019 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15254 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
0e54a418db
commit
fd08ac7c26
@ -486,7 +486,8 @@ void TypeFeedbackOracle::CollectReceiverTypes(TypeFeedbackId ast_id,
|
|||||||
ASSERT(Handle<Code>::cast(object)->ic_state() == GENERIC);
|
ASSERT(Handle<Code>::cast(object)->ic_state() == GENERIC);
|
||||||
} else if (object->IsMap()) {
|
} else if (object->IsMap()) {
|
||||||
types->AddMapIfMissing(Handle<Map>::cast(object), zone());
|
types->AddMapIfMissing(Handle<Map>::cast(object), zone());
|
||||||
} else if (Handle<Code>::cast(object)->ic_state() == POLYMORPHIC) {
|
} else if (Handle<Code>::cast(object)->ic_state() == POLYMORPHIC ||
|
||||||
|
Handle<Code>::cast(object)->ic_state() == MONOMORPHIC) {
|
||||||
CollectPolymorphicMaps(Handle<Code>::cast(object), types);
|
CollectPolymorphicMaps(Handle<Code>::cast(object), types);
|
||||||
} else if (FLAG_collect_megamorphic_maps_from_stub_cache &&
|
} else if (FLAG_collect_megamorphic_maps_from_stub_cache &&
|
||||||
Handle<Code>::cast(object)->ic_state() == MEGAMORPHIC) {
|
Handle<Code>::cast(object)->ic_state() == MEGAMORPHIC) {
|
||||||
|
Loading…
Reference in New Issue
Block a user