Lines Matching refs:Handle
90 void IC::TraceIC(const char* type, Handle<Object> name) { in TraceIC()
99 void IC::TraceIC(const char* type, Handle<Object> name, State old_state, in TraceIC()
203 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate()); in GetCode()
211 Handle<SharedFunctionInfo> shared(GetSharedFunctionInfo(), isolate()); in GetOriginalCode()
229 Handle<JSObject> holder = it->GetHolder<JSObject>(); in LookupForRead()
251 bool IC::TryRemoveInvalidPrototypeDependentStub(Handle<Object> receiver, in TryRemoveInvalidPrototypeDependentStub()
252 Handle<String> name) { in TryRemoveInvalidPrototypeDependentStub()
254 Handle<Map> receiver_map = TypeToMap(*receiver_type(), isolate()); in TryRemoveInvalidPrototypeDependentStub()
266 Handle<Map> old_map(first_map); in TryRemoveInvalidPrototypeDependentStub()
276 Handle<Map> ic_holder_map( in TryRemoveInvalidPrototypeDependentStub()
291 Handle<GlobalObject> global = Handle<GlobalObject>::cast(receiver); in TryRemoveInvalidPrototypeDependentStub()
295 Handle<PropertyCell> cell = it.GetPropertyCell(); in TryRemoveInvalidPrototypeDependentStub()
303 bool IC::IsNameCompatibleWithPrototypeFailure(Handle<Object> name) { in IsNameCompatibleWithPrototypeFailure()
315 void IC::UpdateState(Handle<Object> receiver, Handle<Object> name) { in UpdateState()
325 Handle<String>::cast(name))) { in UpdateState()
340 MaybeHandle<Object> IC::TypeError(const char* type, Handle<Object> object, in TypeError()
341 Handle<Object> key) { in TypeError()
343 Handle<Object> args[2] = {key, object}; in TypeError()
348 MaybeHandle<Object> IC::ReferenceError(const char* type, Handle<Name> name) { in ReferenceError()
442 void IC::RegisterWeakMapDependency(Handle<Code> stub) { in RegisterWeakMapDependency()
568 Handle<Code> KeyedLoadIC::generic_stub(Isolate* isolate) { in generic_stub()
577 static bool MigrateDeprecated(Handle<Object> object) { in MigrateDeprecated()
579 Handle<JSObject> receiver = Handle<JSObject>::cast(object); in MigrateDeprecated()
581 JSObject::MigrateInstance(Handle<JSObject>::cast(object)); in MigrateDeprecated()
586 MaybeHandle<Object> LoadIC::Load(Handle<Object> object, Handle<Name> name) { in Load()
603 Handle<Object> result; in Load()
621 Handle<Object> result; in Load()
636 Handle<Map> new_receiver_map) { in AddOneReceiverMapIfMissing()
649 bool IC::UpdatePolymorphicIC(Handle<Name> name, Handle<Code> code) { in UpdatePolymorphicIC()
652 Handle<HeapType> type = receiver_type(); in UpdatePolymorphicIC()
662 Handle<HeapType> current_type = types.at(i); in UpdatePolymorphicIC()
689 Handle<Code> ic; in UpdatePolymorphicIC()
712 Handle<HeapType> IC::CurrentTypeOf(Handle<Object> object, Isolate* isolate) { in CurrentTypeOf()
714 ? HeapType::Constant(Handle<JSGlobalObject>::cast(object), isolate) in CurrentTypeOf()
719 Handle<Map> IC::TypeToMap(HeapType* type, Isolate* isolate) { in TypeToMap()
725 Handle<JSGlobalObject>::cast(type->AsConstant()->Value())->map()); in TypeToMap()
733 typename T::TypeHandle IC::MapToType(Handle<Map> map, in MapToType()
746 template Type* IC::MapToType<Type>(Handle<Map> map, Zone* zone);
749 template Handle<HeapType> IC::MapToType<HeapType>(Handle<Map> map,
753 void IC::UpdateMonomorphicIC(Handle<Code> handler, Handle<Name> name) { in UpdateMonomorphicIC()
755 Handle<Code> ic = PropertyICCompiler::ComputeMonomorphic( in UpdateMonomorphicIC()
761 void IC::CopyICToMegamorphicCache(Handle<Name> name) { in CopyICToMegamorphicCache()
787 void IC::PatchCache(Handle<Name> name, Handle<Code> code) { in PatchCache()
815 Handle<Code> LoadIC::initialize_stub(Isolate* isolate, in initialize_stub()
821 Handle<Code> LoadIC::megamorphic_stub() { in megamorphic_stub()
832 Handle<Code> LoadIC::pre_monomorphic_stub(Isolate* isolate, in pre_monomorphic_stub()
838 Handle<Code> KeyedLoadIC::pre_monomorphic_stub(Isolate* isolate) { in pre_monomorphic_stub()
843 Handle<Code> LoadIC::pre_monomorphic_stub() const { in pre_monomorphic_stub()
853 Handle<Code> LoadIC::SimpleFieldLoad(FieldIndex index) { in SimpleFieldLoad()
868 Handle<Code> code; in UpdateCaches()
897 Handle<Code> IC::ComputeHandler(LookupIterator* lookup, Handle<Object> value) { in ComputeHandler()
901 Handle<Map> stub_holder_map = IC::GetHandlerCacheHolder( in ComputeHandler()
904 Handle<Code> code = PropertyHandlerCompiler::Find( in ComputeHandler()
919 Map* map = Handle<HeapObject>::cast(lookup->GetReceiver())->map(); in ComputeHandler()
947 Handle<Code> LoadIC::CompileHandler(LookupIterator* lookup, in CompileHandler()
948 Handle<Object> unused, in CompileHandler()
950 Handle<Object> receiver = lookup->GetReceiver(); in CompileHandler()
966 Handle<JSFunction>::cast(receiver)->should_have_prototype() && in CompileHandler()
967 !Handle<JSFunction>::cast(receiver) in CompileHandler()
970 Handle<Code> stub; in CompileHandler()
975 Handle<HeapType> type = receiver_type(); in CompileHandler()
976 Handle<JSObject> holder = lookup->GetHolder<JSObject>(); in CompileHandler()
995 Handle<JSObject> js_receiver = Handle<JSObject>::cast(receiver); in CompileHandler()
1005 Handle<Object> accessors = lookup->GetAccessors(); in CompileHandler()
1007 Handle<ExecutableAccessorInfo> info = in CompileHandler()
1008 Handle<ExecutableAccessorInfo>::cast(accessors); in CompileHandler()
1020 Handle<Object> getter(Handle<AccessorPair>::cast(accessors)->getter(), in CompileHandler()
1024 Handle<JSFunction> function = Handle<JSFunction>::cast(getter); in CompileHandler()
1052 Handle<PropertyCell> cell = lookup->GetPropertyCell(); in CompileHandler()
1053 Handle<Code> code = compiler.CompileLoadGlobal( in CompileHandler()
1057 Handle<Map> stub_holder_map = GetHandlerCacheHolder( in CompileHandler()
1104 static Handle<Object> TryConvertKey(Handle<Object> key, Isolate* isolate) { in TryConvertKey()
1108 double value = Handle<HeapNumber>::cast(key)->value(); in TryConvertKey()
1114 key = Handle<Smi>(Smi::FromInt(int_value), isolate); in TryConvertKey()
1124 Handle<Code> KeyedLoadIC::LoadElementStub(Handle<JSObject> receiver) { in LoadElementStub()
1125 Handle<Map> receiver_map(receiver->map(), isolate()); in LoadElementStub()
1171 MaybeHandle<Object> KeyedLoadIC::Load(Handle<Object> object, in Load()
1172 Handle<Object> key) { in Load()
1174 Handle<Object> result; in Load()
1181 Handle<Object> load_handle; in Load()
1182 Handle<Code> stub = generic_stub(); in Load()
1190 LoadIC::Load(object, Handle<Name>::cast(key)), in Load()
1196 Handle<JSObject> receiver = Handle<JSObject>::cast(object); in Load()
1213 Handle<Object> result; in Load()
1221 bool StoreIC::LookupForWrite(LookupIterator* it, Handle<Object> value, in LookupForWrite()
1224 Handle<Object> receiver = it->GetReceiver(); in LookupForWrite()
1226 DCHECK(!Handle<JSObject>::cast(receiver)->map()->is_deprecated()); in LookupForWrite()
1236 Handle<JSObject> holder = it->GetHolder<JSObject>(); in LookupForWrite()
1253 Handle<JSObject> holder = it->GetHolder<JSObject>(); in LookupForWrite()
1280 MaybeHandle<Object> StoreIC::Store(Handle<Object> object, Handle<Name> name, in Store()
1281 Handle<Object> value, in Store()
1286 Handle<Object> result; in Store()
1305 Handle<JSObject> receiver = Handle<JSObject>::cast(object); in Store()
1307 Handle<Object> result; in Store()
1317 Handle<HeapObject>::cast(object)->map()->is_observed()) { in Store()
1318 Handle<Object> result; in Store()
1330 Handle<Object> result; in Store()
1338 Handle<Code> CallIC::initialize_stub(Isolate* isolate, int argc, in initialize_stub()
1341 Handle<Code> code = stub.GetCode(); in initialize_stub()
1346 Handle<Code> StoreIC::initialize_stub(Isolate* isolate, in initialize_stub()
1349 Handle<Code> ic = in initialize_stub()
1355 Handle<Code> StoreIC::megamorphic_stub() { in megamorphic_stub()
1370 Handle<Code> StoreIC::generic_stub() const { in generic_stub()
1385 Handle<Code> StoreIC::slow_stub() const { in slow_stub()
1395 Handle<Code> StoreIC::pre_monomorphic_stub(Isolate* isolate, in pre_monomorphic_stub()
1402 void StoreIC::UpdateCaches(LookupIterator* lookup, Handle<Object> value, in UpdateCaches()
1416 Handle<Code> code = use_ic ? ComputeHandler(lookup, value) : slow_stub(); in UpdateCaches()
1423 Handle<Code> StoreIC::CompileHandler(LookupIterator* lookup, in CompileHandler()
1424 Handle<Object> value, in CompileHandler()
1429 Handle<JSObject> receiver = Handle<JSObject>::cast(lookup->GetReceiver()); in CompileHandler()
1430 Handle<JSObject> holder = lookup->GetHolder<JSObject>(); in CompileHandler()
1435 Handle<Map> transition = lookup->transition_map(); in CompileHandler()
1458 Handle<Object> accessors = lookup->GetAccessors(); in CompileHandler()
1460 Handle<ExecutableAccessorInfo> info = in CompileHandler()
1461 Handle<ExecutableAccessorInfo>::cast(accessors); in CompileHandler()
1474 Handle<Object> setter(Handle<AccessorPair>::cast(accessors)->setter(), in CompileHandler()
1480 Handle<JSFunction> function = Handle<JSFunction>::cast(setter); in CompileHandler()
1489 Handle<JSFunction>::cast(setter)); in CompileHandler()
1500 Handle<PropertyCell> cell = lookup->GetPropertyCell(); in CompileHandler()
1501 Handle<HeapType> union_type = PropertyCell::UpdatedType(cell, value); in CompileHandler()
1504 Handle<Code> code = stub.GetCodeCopyFromTemplate( in CompileHandler()
1505 Handle<GlobalObject>::cast(holder), cell); in CompileHandler()
1519 Handle<HeapType> field_type = lookup->GetFieldType(); in CompileHandler()
1547 Handle<Code> KeyedStoreIC::StoreElementStub(Handle<JSObject> receiver, in StoreElementStub()
1557 Handle<Map> receiver_map(receiver->map(), isolate()); in StoreElementStub()
1561 Handle<Map> monomorphic_map = in StoreElementStub()
1574 Handle<Map> previous_receiver_map = target_receiver_maps.at(0); in StoreElementStub()
1576 Handle<Map> transitioned_receiver_map = receiver_map; in StoreElementStub()
1610 Handle<Map> transitioned_receiver_map = in StoreElementStub()
1666 Handle<Map> KeyedStoreIC::ComputeTransitionedMap( in ComputeTransitionedMap()
1667 Handle<Map> map, KeyedAccessStoreMode store_mode) { in ComputeTransitionedMap()
1698 bool IsOutOfBoundsAccess(Handle<JSObject> receiver, int index) { in IsOutOfBoundsAccess()
1707 KeyedAccessStoreMode KeyedStoreIC::GetStoreMode(Handle<JSObject> receiver, in GetStoreMode()
1708 Handle<Object> key, in GetStoreMode()
1709 Handle<Object> value) { in GetStoreMode()
1710 Handle<Smi> smi_key = Object::ToSmi(isolate(), key).ToHandleChecked(); in GetStoreMode()
1783 MaybeHandle<Object> KeyedStoreIC::Store(Handle<Object> object, in Store()
1784 Handle<Object> key, in Store()
1785 Handle<Object> value) { in Store()
1789 Handle<Object> result; in Store()
1801 Handle<Object> store_handle; in Store()
1802 Handle<Code> stub = generic_stub(); in Store()
1807 StoreIC::Store(object, Handle<String>::cast(key), value, in Store()
1827 Handle<HeapObject> heap_object = Handle<HeapObject>::cast(object); in Store()
1838 Handle<JSObject> receiver = Handle<JSObject>::cast(object); in Store()
1891 bool CallIC::DoCustomHandler(Handle<Object> receiver, Handle<Object> function, in DoCustomHandler()
1892 Handle<TypeFeedbackVector> vector, in DoCustomHandler()
1893 Handle<Smi> slot, const CallICState& state) { in DoCustomHandler()
1897 Handle<JSFunction> array_function = in DoCustomHandler()
1898 Handle<JSFunction>(isolate()->native_context()->array_function()); in DoCustomHandler()
1899 if (array_function.is_identical_to(Handle<JSFunction>::cast(function))) { in DoCustomHandler()
1904 Handle<AllocationSite> new_site = in DoCustomHandler()
1911 Handle<String> name; in DoCustomHandler()
1913 name = Handle<String>(String::cast(array_function->shared()->name()), in DoCustomHandler()
1926 void CallIC::PatchMegamorphic(Handle<Object> function, in PatchMegamorphic()
1927 Handle<TypeFeedbackVector> vector, in PatchMegamorphic()
1928 Handle<Smi> slot) { in PatchMegamorphic()
1938 Handle<Code> code = stub.GetCode(); in PatchMegamorphic()
1941 Handle<Object> name = isolate()->factory()->empty_string(); in PatchMegamorphic()
1943 Handle<JSFunction> js_function = Handle<JSFunction>::cast(function); in PatchMegamorphic()
1953 void CallIC::HandleMiss(Handle<Object> receiver, Handle<Object> function, in HandleMiss()
1954 Handle<TypeFeedbackVector> vector, Handle<Smi> slot) { in HandleMiss()
1957 Handle<Object> name = isolate()->factory()->empty_string(); in HandleMiss()
1988 Handle<JSFunction> js_function = Handle<JSFunction>::cast(function); in HandleMiss()
2011 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2012 Handle<Object> function = args.at<Object>(1); in RUNTIME_FUNCTION()
2013 Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(2); in RUNTIME_FUNCTION()
2014 Handle<Smi> slot = args.at<Smi>(3); in RUNTIME_FUNCTION()
2026 Handle<Object> function = args.at<Object>(1); in RUNTIME_FUNCTION()
2027 Handle<TypeFeedbackVector> vector = args.at<TypeFeedbackVector>(2); in RUNTIME_FUNCTION()
2028 Handle<Smi> slot = args.at<Smi>(3); in RUNTIME_FUNCTION()
2040 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2041 Handle<Name> key = args.at<Name>(1); in RUNTIME_FUNCTION()
2043 Handle<Object> result; in RUNTIME_FUNCTION()
2055 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2056 Handle<Object> key = args.at<Object>(1); in RUNTIME_FUNCTION()
2058 Handle<Object> result; in RUNTIME_FUNCTION()
2069 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2070 Handle<Object> key = args.at<Object>(1); in RUNTIME_FUNCTION()
2072 Handle<Object> result; in RUNTIME_FUNCTION()
2084 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2085 Handle<String> key = args.at<String>(1); in RUNTIME_FUNCTION()
2087 Handle<Object> result; in RUNTIME_FUNCTION()
2099 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2100 Handle<String> key = args.at<String>(1); in RUNTIME_FUNCTION()
2102 Handle<Object> result; in RUNTIME_FUNCTION()
2118 Handle<JSObject> object = args.at<JSObject>(0); in RUNTIME_FUNCTION()
2119 Handle<Map> transition = args.at<Map>(1); in RUNTIME_FUNCTION()
2120 Handle<Object> value = args.at<Object>(2); in RUNTIME_FUNCTION()
2139 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2140 Handle<Object> key = args.at<Object>(1); in RUNTIME_FUNCTION()
2142 Handle<Object> result; in RUNTIME_FUNCTION()
2154 Handle<Object> receiver = args.at<Object>(0); in RUNTIME_FUNCTION()
2155 Handle<Object> key = args.at<Object>(1); in RUNTIME_FUNCTION()
2157 Handle<Object> result; in RUNTIME_FUNCTION()
2168 Handle<Object> object = args.at<Object>(0); in RUNTIME_FUNCTION()
2169 Handle<Object> key = args.at<Object>(1); in RUNTIME_FUNCTION()
2170 Handle<Object> value = args.at<Object>(2); in RUNTIME_FUNCTION()
2172 Handle<Object> result; in RUNTIME_FUNCTION()
2184 Handle<Object> object = args.at<Object>(0); in RUNTIME_FUNCTION()
2185 Handle<Object> key = args.at<Object>(1); in RUNTIME_FUNCTION()
2186 Handle<Object> value = args.at<Object>(2); in RUNTIME_FUNCTION()
2188 Handle<Object> result; in RUNTIME_FUNCTION()
2201 Handle<Object> value = args.at<Object>(0); in RUNTIME_FUNCTION()
2202 Handle<Map> map = args.at<Map>(1); in RUNTIME_FUNCTION()
2203 Handle<Object> key = args.at<Object>(2); in RUNTIME_FUNCTION()
2204 Handle<Object> object = args.at<Object>(3); in RUNTIME_FUNCTION()
2207 JSObject::TransitionElementsKind(Handle<JSObject>::cast(object), in RUNTIME_FUNCTION()
2210 Handle<Object> result; in RUNTIME_FUNCTION()
2219 Handle<AllocationSite> allocation_site, Handle<Object> left, in Transition()
2220 Handle<Object> right) { in Transition()
2226 Handle<JSFunction> function = handle(JSFunction::cast(builtin), isolate()); in Transition()
2227 Handle<Object> result; in Transition()
2240 Handle<Code> target; in Transition()
2289 Handle<Object> left = args.at<Object>(BinaryOpICStub::kLeft); in RUNTIME_FUNCTION()
2290 Handle<Object> right = args.at<Object>(BinaryOpICStub::kRight); in RUNTIME_FUNCTION()
2292 Handle<Object> result; in RUNTIME_FUNCTION()
2295 ic.Transition(Handle<AllocationSite>::null(), left, right)); in RUNTIME_FUNCTION()
2304 Handle<AllocationSite> allocation_site = in RUNTIME_FUNCTION()
2306 Handle<Object> left = args.at<Object>(BinaryOpWithAllocationSiteStub::kLeft); in RUNTIME_FUNCTION()
2307 Handle<Object> right = in RUNTIME_FUNCTION()
2310 Handle<Object> result; in RUNTIME_FUNCTION()
2327 Handle<Code> CompareIC::GetUninitialized(Isolate* isolate, Token::Value op) { in GetUninitialized()
2335 Code* CompareIC::UpdateCaches(Handle<Object> x, Handle<Object> y) { in UpdateCaches()
2348 Handle<Map>(Handle<JSObject>::cast(x)->map(), isolate())); in UpdateCaches()
2350 Handle<Code> new_target = stub.GetCode(); in UpdateCaches()
2401 Handle<Object> CompareNilIC::DoCompareNilSlow(Isolate* isolate, NilValue nil, in DoCompareNilSlow()
2402 Handle<Object> object) { in DoCompareNilSlow()
2410 Handle<Object> CompareNilIC::CompareNil(Handle<Object> object) { in CompareNil()
2424 Handle<Code> code; in CompareNil()
2426 Handle<Map> monomorphic_map(already_monomorphic && FirstTargetMap() != NULL in CompareNil()
2441 Handle<Object> object = args.at<Object>(0); in RUNTIME_FUNCTION()
2495 Handle<Object> ToBooleanIC::ToBoolean(Handle<Object> object) { in ToBoolean()
2498 Handle<Code> code = stub.GetCode(); in ToBoolean()
2508 Handle<Object> object = args.at<Object>(0); in RUNTIME_FUNCTION()
2515 Handle<JSObject> receiver = args.at<JSObject>(0); in RUNTIME_FUNCTION()
2516 Handle<JSObject> holder = args.at<JSObject>(1); in RUNTIME_FUNCTION()
2517 Handle<ExecutableAccessorInfo> callback = args.at<ExecutableAccessorInfo>(2); in RUNTIME_FUNCTION()
2518 Handle<Name> name = args.at<Name>(3); in RUNTIME_FUNCTION()
2519 Handle<Object> value = args.at<Object>(4); in RUNTIME_FUNCTION()
2547 Handle<Name> name_handle = in RUNTIME_FUNCTION()
2549 Handle<InterceptorInfo> interceptor_info = args.at<InterceptorInfo>( in RUNTIME_FUNCTION()
2555 Handle<String> name = Handle<String>::cast(name_handle); in RUNTIME_FUNCTION()
2562 Handle<JSObject> receiver = in RUNTIME_FUNCTION()
2564 Handle<JSObject> holder = in RUNTIME_FUNCTION()
2571 v8::Handle<v8::Value> r = in RUNTIME_FUNCTION()
2575 Handle<Object> result = v8::Utils::OpenHandle(*r); in RUNTIME_FUNCTION()
2595 Handle<Name> name_handle(name); in ThrowReferenceError()
2608 Handle<Name> name = in RUNTIME_FUNCTION()
2610 Handle<JSObject> receiver = in RUNTIME_FUNCTION()
2612 Handle<JSObject> holder = in RUNTIME_FUNCTION()
2615 Handle<Object> result; in RUNTIME_FUNCTION()
2630 Handle<JSObject> receiver = args.at<JSObject>(0); in RUNTIME_FUNCTION()
2631 Handle<Name> name = args.at<Name>(1); in RUNTIME_FUNCTION()
2632 Handle<Object> value = args.at<Object>(2); in RUNTIME_FUNCTION()
2638 Handle<Object> current = PrototypeIterator::GetCurrent(iter); in RUNTIME_FUNCTION()
2640 Handle<JSObject>::cast(current)->HasNamedInterceptor()) { in RUNTIME_FUNCTION()
2647 Handle<Object> result; in RUNTIME_FUNCTION()
2657 Handle<JSObject> receiver = args.at<JSObject>(0); in RUNTIME_FUNCTION()
2660 Handle<Object> result; in RUNTIME_FUNCTION()