Handle<HeapObject> stub_holder(GetCodeCacheHolder(
isolate(), *object, cache_holder));
- StrictModeFlag strict_mode = kNonStrictMode;
- if (kind() == Code::STORE_IC || kind() == Code::KEYED_STORE_IC) {
- strict_mode = StoreIC::GetStrictMode(extra_ic_state());
- }
Handle<Code> code = isolate()->stub_cache()->FindHandler(
- name, handle(stub_holder->map()), kind(), cache_holder, strict_mode);
+ name, handle(stub_holder->map()), kind(), cache_holder);
if (!code.is_null()) return code;
code = CompileHandler(lookup, object, name, value, cache_holder);
Handle<Code> StubCache::FindHandler(Handle<Name> name,
Handle<Map> stub_holder,
Code::Kind kind,
- InlineCacheHolderFlag cache_holder,
- StrictModeFlag strict_mode) {
- ExtraICState extra_ic_state = kNoExtraICState;
- if (kind == Code::STORE_IC) {
- extra_ic_state = StoreIC::ComputeExtraICState(strict_mode);
- } else if (kind == Code::KEYED_STORE_IC) {
- extra_ic_state = KeyedStoreIC::ComputeExtraICState(strict_mode,
- STANDARD_STORE);
- }
+ InlineCacheHolderFlag cache_holder) {
Code::Flags flags = Code::ComputeMonomorphicFlags(
- Code::HANDLER, extra_ic_state, cache_holder, Code::NORMAL, kind);
+ Code::HANDLER, kNoExtraICState, cache_holder, Code::NORMAL, kind);
Handle<Object> probe(stub_holder->FindInCodeCache(*name, flags), isolate_);
if (probe->IsCode()) return Handle<Code>::cast(probe);
Handle<Code> FindHandler(Handle<Name> name,
Handle<Map> map,
Code::Kind kind,
- InlineCacheHolderFlag cache_holder = OWN_MAP,
- StrictModeFlag strict_mode = kNonStrictMode);
+ InlineCacheHolderFlag cache_holder = OWN_MAP);
Handle<Code> ComputeMonomorphicIC(Handle<Name> name,
Handle<Type> type,