Chromium Code Reviews| Index: src/type-info.cc |
| diff --git a/src/type-info.cc b/src/type-info.cc |
| index e722d1452769a346587bfef140a70ec8dd3dbb7d..32145fe35f1a7ec5c52bb1fd724a3a539bca84fa 100644 |
| --- a/src/type-info.cc |
| +++ b/src/type-info.cc |
| @@ -137,6 +137,12 @@ bool TypeFeedbackOracle::CallIsMonomorphic(Call* expr) { |
| } |
| +bool TypeFeedbackOracle::CallNewIsMonomorphic(CallNew* expr) { |
| + Handle<Object> value = GetInfo(expr->id()); |
| + return value->IsJSFunction(); |
| +} |
| + |
| + |
| Handle<Map> TypeFeedbackOracle::LoadMonomorphicReceiverType(Property* expr) { |
| ASSERT(LoadIsMonomorphicNormal(expr)); |
| Handle<Object> map_or_code = GetInfo(expr->id()); |
| @@ -562,9 +568,8 @@ void TypeFeedbackOracle::ProcessRelocInfos(ZoneList<RelocInfo>* infos) { |
| break; |
| case Code::STUB: |
| - if (target->major_key() == CodeStub::CallFunction && |
| - target->has_function_cache()) { |
| - Object* value = CallFunctionStub::GetCachedValue(reloc_entry.pc()); |
| + if (CallStub::HasCache(target)) { |
|
Vyacheslav Egorov (Chromium)
2012/01/23 10:39:52
It's a bit confusing that HasCache also verifies w
Michael Starzinger
2012/01/25 11:42:29
Done. No longer needed with new approach.
|
| + Object* value = CallStub::GetCachedValue(reloc_entry.pc()); |
| if (value->IsJSFunction()) { |
| SetInfo(ast_id, value); |
| } |