• Home
  • Raw
  • Download

Lines Matching full:target

26 // ES6 9.5.15 ProxyCreate(target, handler)
27 JSHandle<JSProxy> JSProxy::ProxyCreate(JSThread *thread, const JSHandle<JSTaggedValue> &target, in ProxyCreate() argument
30 // 1. If Type(target) is not Object, throw a TypeError exception. in ProxyCreate()
31 if (!target->IsECMAObject()) { in ProxyCreate()
32 THROW_TYPE_ERROR_AND_RETURN(thread, "ProxyCreate: target is not Object", in ProxyCreate()
42 // 6. If IsCallable(target) is true, then P.[[Call]] as specified in 9.5.12. in ProxyCreate()
44 // 8. Set the [[ProxyTarget]] internal slot of P to target. in ProxyCreate()
46 return thread->GetEcmaVM()->GetFactory()->NewJSProxy(target, handler); in ProxyCreate()
61 // 4. Let target be the value of the [[ProxyTarget]] internal slot of O. in GetPrototype()
69 // 7. If trap is undefined, then Return target.[[GetPrototypeOf]](). in GetPrototype()
73 // 8. Let handlerProto be Call(trap, handler, «target»). in GetPrototype()
87 // 11. Let extensibleTarget be IsExtensible(target). in GetPrototype()
95 // 14. Let targetProto be target.[[GetPrototypeOf]](). in GetPrototype()
122 // 5. Let target be the value of the [[ProxyTarget]] internal slot of O. in SetPrototype()
130 // 7. If trap is undefined, then Return target.[[SetPrototypeOf]](V). in SetPrototype()
135 const int32_t argsLength = 2; // 2: target and proto in SetPrototype()
142 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, V»)). in SetPrototype()
149 // 11. Let extensibleTarget be IsExtensible(target). in SetPrototype()
157 // 14. Let targetProto be target.[[GetPrototypeOf]](). in SetPrototype()
182 // 4. Let target be the value of the [[ProxyTarget]] internal slot of O. in IsExtensible()
190 // 7. If trap is undefined, then Return target.[[IsExtensible]](). in IsExtensible()
194 // 8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)). in IsExtensible()
207 // 10. Let targetResult be target.[[IsExtensible]](). in IsExtensible()
225 // 4. Let target be the value of the [[ProxyTarget]] internal slot of O. in PreventExtensions()
229 // a. Return target.[[PreventExtensions]](). in PreventExtensions()
230 // 8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)). in PreventExtensions()
257 // a. Let targetIsExtensible be target.[[IsExtensible]](). in PreventExtensions()
277 // 5. Let target be the value of the [[ProxyTarget]] internal slot of O. in GetOwnProperty()
281 // a. Return target.[[GetOwnProperty]](P). in GetOwnProperty()
282 // 9. Let trapResultObj be Call(trap, handler, «target, P»). in GetOwnProperty()
300 const int32_t argsLength = 2; // 2: target and key in GetOwnProperty()
313 // 12. Let targetDesc be target.[[GetOwnProperty]](P). in GetOwnProperty()
329 // c. Let extensibleTarget be IsExtensible(target). in GetOwnProperty()
339 // 15. Let extensibleTarget be IsExtensible(target). in GetOwnProperty()
398 const int32_t argsLength = 3; // 3: target, key and desc in DefineOwnProperty()
411 // 13. Let targetDesc be target.[[GetOwnProperty]](P). in DefineOwnProperty()
417 // 15. Let extensibleTarget be IsExtensible(target). in DefineOwnProperty()
483 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P»)). in HasProperty()
486 const int32_t argsLength = 2; // 2: target and key in HasProperty()
499 // a. Let targetDesc be target.[[GetOwnProperty]](P). in HasProperty()
510 // ii. Let extensibleTarget be IsExtensible(target). in HasProperty()
545 // 9. Let trapResult be Call(trap, handler, «target, P, Receiver»). in GetProperty()
547 const int32_t argsLength = 3; // 3: «target, P, Receiver» in GetProperty()
560 // 11. Let targetDesc be target.[[GetOwnProperty]](P). in GetProperty()
616 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P, V, Receiver»)) in SetProperty()
618 const int32_t argsLength = 4; // 4: «target, P, V, Receiver» in SetProperty()
632 // 13. Let targetDesc be target.[[GetOwnProperty]](P). in SetProperty()
675 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P»)). in DeleteProperty()
678 const int32_t argsLength = 2; // 2: target and key in DeleteProperty()
691 // 13. Let targetDesc be target.[[GetOwnProperty]](P). in DeleteProperty()
735 // a.Return target.[[OwnPropertyKeys]](). in OwnPropertyKeys()
740 // 8.Let trapResultArray be Call(trap, handler, «target»). in OwnPropertyKeys()
762 // 11.Let extensibleTarget be IsExtensible(target). in OwnPropertyKeys()
768 // 13.Let targetKeys be target.[[OwnPropertyKeys]](). in OwnPropertyKeys()
778 // a.Let desc be target.[[GetOwnProperty]](key). in OwnPropertyKeys()
875 JSHandle<JSTaggedValue> target(thread, proxy->GetTarget()); in CallInternal() local
887 // a.Return Call(target, thisArgument, argumentsList). in CallInternal()
890 EcmaInterpreter::NewRuntimeCallInfo(thread, target, thisArg, undefined, argc); in CallInternal()
903 // 9.Return Call(trap, handler, «target, thisArgument, argArray»). in CallInternal()
904 const uint32_t argsLength = 3; // 3: «target, thisArgument, argArray» in CallInternal()
908 …runtimeInfo->SetCallArg(target.GetTaggedValue(), thisArg.GetTaggedValue(), arrHandle.GetTaggedValu… in CallInternal()
928 JSHandle<JSTaggedValue> target(thread, proxy->GetTarget()); in ConstructInternal() local
937 // a.Assert: target has a [[Construct]] internal method. in ConstructInternal()
938 // b.Return Construct(target, argumentsList, newTarget). in ConstructInternal()
940 ASSERT(target->IsConstructor()); in ConstructInternal()
941 info->SetFunction(target.GetTaggedValue()); in ConstructInternal()
954 // step 8 ~ 9 Call(trap, handler, «target, argArray, newTarget »). in ConstructInternal()
956 const int32_t argsLength = 3; // 3: «target, argArray, newTarget » in ConstructInternal()
961 …runtimeInfo->SetCallArg(target.GetTaggedValue(), arrHandle.GetTaggedValue(), newTarget.GetTaggedVa… in ConstructInternal()
985 JSMutableHandle<JSTaggedValue> target(thread, proxy->GetTarget()); in GetSourceTarget() local
986 while (target->IsJSProxy()) { in GetSourceTarget()
987 proxy.Update(target.GetTaggedValue()); in GetSourceTarget()
988 target.Update(proxy->GetTarget()); in GetSourceTarget()
990 return target; in GetSourceTarget()