Lines Matching refs:trap
62 // 5. Let trap be GetMethod(handler, "getPrototypeOf").
64 JSHandle<JSTaggedValue> trap = JSObject::GetMethod(thread, handler, name);
65 // 6. ReturnIfAbrupt(trap).
68 // 7. If trap is undefined, then Return target.[[GetPrototypeOf]]().
69 if (trap->IsUndefined()) {
72 // 8. Let handlerProto be Call(trap, handler, «target»).
74 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handler, undefined, 1);
124 // 6. Let trap be GetMethod(handler, "setPrototypeOf").
126 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
127 // 7. ReturnIfAbrupt(trap).
130 // 7. If trap is undefined, then Return target.[[SetPrototypeOf]](V).
131 if (trap->IsUndefined()) {
137 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
142 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, V»)).
185 // 5. Let trap be GetMethod(handler, "isExtensible").
187 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
188 // 6. ReturnIfAbrupt(trap).
191 // 7. If trap is undefined, then Return target.[[IsExtensible]]().
192 if (trap->IsUndefined()) {
195 // 8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)).
199 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, 1);
228 // 5. Let trap be GetMethod(handler, "preventExtensions").
229 // 6. ReturnIfAbrupt(trap).
230 // 7. If trap is undefined, then
232 // 8. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target»)).
241 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
242 // 6. ReturnIfAbrupt(trap).
245 if (trap->IsUndefined()) {
250 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, 1);
281 // 6. Let trap be GetMethod(handler, "getOwnPropertyDescriptor").
282 // 7. ReturnIfAbrupt(trap).
283 // 8. If trap is undefined, then
285 // 9. Let trapResultObj be Call(trap, handler, «target, P»).
295 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
296 // 7. ReturnIfAbrupt(trap).
299 if (trap->IsUndefined()) {
305 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
388 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
389 // 7. ReturnIfAbrupt(trap).
391 if (trap->IsUndefined()) {
400 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
471 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
472 // 7. ReturnIfAbrupt(trap).
474 if (trap->IsUndefined()) {
478 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P»)).
483 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
533 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
534 // 7. ReturnIfAbrupt(trap).
538 if (trap->IsUndefined()) {
541 // 9. Let trapResult be Call(trap, handler, «target, P, Receiver»).
545 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
606 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
607 // 7. ReturnIfAbrupt(trap).
609 if (trap->IsUndefined()) {
613 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P, V, Receiver»))
617 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
669 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, JSHandle<JSTaggedValue>(thread, handler), name));
670 // 7. ReturnIfAbrupt(trap).
672 if (trap->IsUndefined()) {
676 // 9. Let booleanTrapResult be ToBoolean(Call(trap, handler, «target, P»)).
681 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerTag, undefined, argsLength);
725 // 5.Let trap be GetMethod(handler, "ownKeys").
728 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, handlerHandle, key));
730 // 6.ReturnIfAbrupt(trap).
733 // 7.If trap is undefined, then
735 if (trap->IsUndefined()) {
739 // 8.Let trapResultArray be Call(trap, handler, «target»).
742 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerHandle, undefined, 1);
873 JSHandle<JSTaggedValue> trap(JSObject::GetMethod(thread, handlerHandle, key));
877 if (trap->IsUndefined()) {
882 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, trap, handlerHandle, undefined, 1);
942 // 5.Let trap be GetMethod(handler, "apply").
946 // 6.ReturnIfAbrupt(trap).
951 // 7.If trap is undefined, then
968 // 9.Return Call(trap, handler, «target, thisArgument, argArray»).
999 // 5.Let trap be GetMethod(handler, "construct").
1003 // 6.ReturnIfAbrupt(trap).
1005 // 7.If trap is undefined, then
1026 // step 8 ~ 9 Call(trap, handler, «target, argArray, newTarget »).