Chromium Code Reviews| Index: src/code-stubs.cc |
| =================================================================== |
| --- src/code-stubs.cc (revision 12312) |
| +++ src/code-stubs.cc (working copy) |
| @@ -172,7 +172,9 @@ |
| Isolate* isolate = new_object->GetIsolate(); |
| Factory* factory = isolate->factory(); |
| return Map::UpdateCodeCache(known_map_, |
| - factory->compare_ic_symbol(), |
| + strict() ? |
| + factory->strict_compare_ic_symbol() : |
| + factory->compare_ic_symbol(), |
| new_object); |
| } |
| @@ -184,7 +186,11 @@ |
| static_cast<Code::Kind>(GetCodeKind()), |
| UNINITIALIZED); |
| Handle<Object> probe( |
| - known_map_->FindInCodeCache(*factory->compare_ic_symbol(), flags)); |
| + known_map_->FindInCodeCache( |
| + strict() ? |
| + *factory->strict_compare_ic_symbol() : |
| + *factory->compare_ic_symbol(), |
| + flags)); |
| if (probe->IsCode()) { |
| *code_out = Code::cast(*probe); |
|
Vyacheslav Egorov (Google)
2012/08/15 14:24:30
I wonder if we can fetch some information from the
|
| return true; |