diff options
Diffstat (limited to 'deps/v8/src/api-natives.cc')
-rw-r--r-- | deps/v8/src/api-natives.cc | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/deps/v8/src/api-natives.cc b/deps/v8/src/api-natives.cc index b8f03a89a8..488b99fd25 100644 --- a/deps/v8/src/api-natives.cc +++ b/deps/v8/src/api-natives.cc @@ -285,10 +285,10 @@ MaybeHandle<JSObject> ProbeInstantiationsCache(Isolate* isolate, } else if (caching_mode == CachingMode::kUnlimited || (serial_number <= TemplateInfo::kSlowTemplateInstantiationsCacheSize)) { - Handle<NumberDictionary> slow_cache = + Handle<SimpleNumberDictionary> slow_cache = isolate->slow_template_instantiations_cache(); int entry = slow_cache->FindEntry(serial_number); - if (entry == NumberDictionary::kNotFound) { + if (entry == SimpleNumberDictionary::kNotFound) { return MaybeHandle<JSObject>(); } return handle(JSObject::cast(slow_cache->ValueAt(entry)), isolate); @@ -313,9 +313,9 @@ void CacheTemplateInstantiation(Isolate* isolate, int serial_number, } else if (caching_mode == CachingMode::kUnlimited || (serial_number <= TemplateInfo::kSlowTemplateInstantiationsCacheSize)) { - Handle<NumberDictionary> cache = + Handle<SimpleNumberDictionary> cache = isolate->slow_template_instantiations_cache(); - auto new_cache = NumberDictionary::Set(cache, serial_number, object); + auto new_cache = SimpleNumberDictionary::Set(cache, serial_number, object); if (*new_cache != *cache) { isolate->native_context()->set_slow_template_instantiations_cache( *new_cache); @@ -334,11 +334,11 @@ void UncacheTemplateInstantiation(Isolate* isolate, int serial_number, } else if (caching_mode == CachingMode::kUnlimited || (serial_number <= TemplateInfo::kSlowTemplateInstantiationsCacheSize)) { - Handle<NumberDictionary> cache = + Handle<SimpleNumberDictionary> cache = isolate->slow_template_instantiations_cache(); int entry = cache->FindEntry(serial_number); - DCHECK_NE(NumberDictionary::kNotFound, entry); - cache = NumberDictionary::DeleteEntry(cache, entry); + DCHECK_NE(SimpleNumberDictionary::kNotFound, entry); + cache = SimpleNumberDictionary::DeleteEntry(cache, entry); isolate->native_context()->set_slow_template_instantiations_cache(*cache); } } @@ -726,7 +726,6 @@ Handle<JSFunction> ApiNatives::CreateApiFunction( // Mark instance as callable in the map. if (!obj->instance_call_handler()->IsUndefined(isolate)) { map->set_is_callable(true); - map->set_is_constructor(true); } if (immutable_proto) map->set_is_immutable_proto(true); |