Lines Matching refs:state
203 InterpretedFrame *state = GET_FRAME(sp); \
204 pc = state->pc; \
616 InterpretedFrame *state = GET_FRAME(newSp);
617 state->base.prev = sp;
618 state->base.type = FrameType::INTERPRETER_FRAME;
619 state->pc = nullptr;
620 state->function = info->GetFunctionValue();
621 state->thisObj = info->GetThisValue();
737 InterpretedFrame *state = GET_FRAME(newSp);
738 state->pc = pc;
739 state->function = info->GetFunctionValue();
740 state->thisObj = info->GetThisValue();
741 state->acc = JSTaggedValue::Hole();
743 state->constpool = method->GetConstantPool();
745 state->profileTypeInfo = thisFunc->GetProfileTypeInfo();
746 state->base.prev = sp;
747 state->base.type = FrameType::INTERPRETER_FRAME;
748 state->env = thisFunc->GetLexicalEnv();
757 const JSTaggedValue resAcc = state->acc;
827 InterpretedFrame *state = GET_FRAME(newSp);
828 state->pc = resumePc;
829 state->function = func.GetTaggedValue();
830 state->thisObj = context->GetThis();
831 state->constpool = method->GetConstantPool();
832 state->profileTypeInfo = func->GetProfileTypeInfo();
833 state->acc = context->GetAcc();
834 state->base.prev = breakSp;
835 state->base.type = FrameType::INTERPRETER_FRAME;
837 state->env = env;
844 JSTaggedValue res = state->acc;
1416 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
1417 state->base.prev = sp;
1418 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
1419 state->pc = nullptr;
1420 state->function = JSTaggedValue(funcTagged);
1473 InterpretedFrame *state = GET_FRAME(newSp);
1474 state->base.prev = sp;
1475 state->base.type = FrameType::INTERPRETER_FRAME;
1476 state->pc = pc = methodHandle->GetBytecodeArray();
1478 state->function = JSTaggedValue(funcTagged);
1479 state->thisObj = JSTaggedValue(thisObj);
1480 state->acc = JSTaggedValue::Hole();
1481 state->constpool = methodHandle->GetConstantPool();
1482 state->profileTypeInfo = func->GetProfileTypeInfo();
1484 state->env = env;
1528 InterpretedFrame *state = GET_FRAME(sp);
1530 << std::hex << reinterpret_cast<uintptr_t>(state->pc);
1531 methodHandle.Update(JSFunction::Cast(state->function.GetTaggedObject())->GetMethod());
1536 sp = state->base.prev;
1542 state->acc = acc;
1577 InterpretedFrame *state = GET_FRAME(sp);
1579 << std::hex << reinterpret_cast<uintptr_t>(state->pc);
1580 methodHandle.Update(JSFunction::Cast(state->function.GetTaggedObject())->GetMethod());
1585 sp = state->base.prev;
1591 state->acc = JSTaggedValue::Undefined();
2563 // IC miss and not enter the megamorphic state, store as polymorphic
2626 // IC miss and not enter the megamorphic state, store as polymorphic
2948 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
3022 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
3197 InterpretedFrame *state = GET_FRAME(sp);
3198 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget();
3202 << std::hex << reinterpret_cast<uintptr_t>(state->pc);
3203 sp = state->base.prev;
3209 state->acc = acc;
3289 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
3290 state->base.prev = sp;
3291 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
3292 state->pc = nullptr;
3293 state->function = superCtor;
3315 InterpretedFrame *state = GET_FRAME(newSp);
3330 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state);
3341 state->function = superCtor;
3342 state->constpool = methodHandle->GetConstantPool();
3343 state->profileTypeInfo = superCtorFunc->GetProfileTypeInfo();
3344 state->env = superCtorFunc->GetLexicalEnv();
3359 state->base.prev = sp;
3360 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
3361 state->thisObj = thisObj;
3362 state->pc = pc = methodHandle->GetBytecodeArray();
3364 state->acc = JSTaggedValue::Hole();
3425 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
3426 state->base.prev = sp;
3427 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
3428 state->pc = nullptr;
3429 state->function = superCtor;
3451 InterpretedFrame *state = GET_FRAME(newSp);
3466 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state);
3477 state->function = superCtor;
3478 state->constpool = methodHandle->GetConstantPool();
3479 state->profileTypeInfo = superCtorFunc->GetProfileTypeInfo();
3480 state->env = superCtorFunc->GetLexicalEnv();
3495 state->base.prev = sp;
3496 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
3497 state->thisObj = thisObj;
3498 state->pc = pc = methodHandle->GetBytecodeArray();
3500 state->acc = JSTaggedValue::Hole();
3561 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
3562 state->base.prev = sp;
3563 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
3564 state->pc = nullptr;
3565 state->function = superCtor;
3587 InterpretedFrame *state = GET_FRAME(newSp);
3602 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state);
3613 state->function = superCtor;
3614 state->constpool = methodHandle->GetConstantPool();
3615 state->profileTypeInfo = superCtorFunc->GetProfileTypeInfo();
3616 state->env = superCtorFunc->GetLexicalEnv();
3631 state->base.prev = sp;
3632 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
3633 state->thisObj = thisObj;
3634 state->pc = pc = methodHandle->GetBytecodeArray();
3636 state->acc = JSTaggedValue::Hole();
3697 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
3698 state->base.prev = sp;
3699 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
3700 state->pc = nullptr;
3701 state->function = superCtor;
3723 InterpretedFrame *state = GET_FRAME(newSp);
3738 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state);
3749 state->function = superCtor;
3750 state->constpool = methodHandle->GetConstantPool();
3751 state->profileTypeInfo = superCtorFunc->GetProfileTypeInfo();
3752 state->env = superCtorFunc->GetLexicalEnv();
3767 state->base.prev = sp;
3768 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
3769 state->thisObj = thisObj;
3770 state->pc = pc = methodHandle->GetBytecodeArray();
3772 state->acc = JSTaggedValue::Hole();
4101 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
4102 state->base.prev = sp;
4103 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
4104 state->pc = nullptr;
4105 state->function = ctor;
4128 InterpretedFrame *state = GET_FRAME(newSp);
4143 thisObj = FastRuntimeStub::NewThisObject(thread, ctor, ctor, state);
4154 state->function = ctor;
4155 state->constpool = methodHandle->GetConstantPool();
4156 state->profileTypeInfo = ctorFunc->GetProfileTypeInfo();
4157 state->env = ctorFunc->GetLexicalEnv();
4172 state->base.prev = sp;
4173 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
4174 state->thisObj = thisObj;
4175 state->pc = pc = methodHandle->GetBytecodeArray();
4177 state->acc = JSTaggedValue::Hole();
4237 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
4238 state->base.prev = sp;
4239 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
4240 state->pc = nullptr;
4241 state->function = ctor;
4264 InterpretedFrame *state = GET_FRAME(newSp);
4279 thisObj = FastRuntimeStub::NewThisObject(thread, ctor, ctor, state);
4290 state->function = ctor;
4291 state->constpool = methodHandle->GetConstantPool();
4292 state->profileTypeInfo = ctorFunc->GetProfileTypeInfo();
4293 state->env = ctorFunc->GetLexicalEnv();
4308 state->base.prev = sp;
4309 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
4310 state->thisObj = thisObj;
4311 state->pc = pc = methodHandle->GetBytecodeArray();
4313 state->acc = JSTaggedValue::Hole();
4372 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp);
4373 state->base.prev = sp;
4374 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME;
4375 state->pc = nullptr;
4376 state->function = ctor;
4399 InterpretedFrame *state = GET_FRAME(newSp);
4414 thisObj = FastRuntimeStub::NewThisObject(thread, ctor, ctor, state);
4425 state->function = ctor;
4426 state->constpool = methodHandle->GetConstantPool();
4427 state->profileTypeInfo = ctorFunc->GetProfileTypeInfo();
4428 state->env = ctorFunc->GetLexicalEnv();
4443 state->base.prev = sp;
4444 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME;
4445 state->thisObj = thisObj;
4446 state->pc = pc = methodHandle->GetBytecodeArray();
4448 state->acc = JSTaggedValue::Hole();
4530 InterpretedFrame *state = GET_FRAME(sp);
4531 JSTaggedValue currentLexenv = state->env;
4536 InterpretedFrame *state = GET_FRAME(sp);
4537 JSTaggedValue currentLexenv = state->env;
4543 InterpretedFrame *state = GET_FRAME(sp);
4544 JSTaggedValue currentLexenv = state->env;
4681 InterpretedFrame *state = GET_FRAME(sp);
4682 JSTaggedValue res = SlowRuntimeStub::CreateObjectHavingMethod(thread, factory, result, state->env);
4695 InterpretedFrame *state = GET_FRAME(sp);
4696 JSTaggedValue res = SlowRuntimeStub::CreateObjectHavingMethod(thread, factory, result, state->env);
4973 InterpretedFrame *state = GET_FRAME(sp);
4974 JSTaggedValue envHandle = state->env;
4996 InterpretedFrame *state = GET_FRAME(sp);
4997 JSTaggedValue envHandle = state->env;
5025 InterpretedFrame *state = GET_FRAME(sp);
5026 JSTaggedValue taggedCurEnv = state->env;
5047 InterpretedFrame *state = GET_FRAME(sp);
5048 JSTaggedValue taggedCurEnv = state->env;
5068 InterpretedFrame *state = GET_FRAME(sp);
5070 SlowRuntimeStub::CreateClassWithBuffer(thread, proto, state->env, GetConstantPool(sp),
5087 InterpretedFrame *state = GET_FRAME(sp);
5092 SlowRuntimeStub::CreateClassWithBuffer(thread, proto, state->env, GetConstantPool(sp),
5254 InterpretedFrame *state = GET_FRAME(sp);
5255 methodHandle.Update(JSFunction::Cast(state->function.GetTaggedObject())->GetMethod());
5259 << std::hex << reinterpret_cast<uintptr_t>(state->pc);
5260 sp = state->base.prev;
5266 state->acc = acc;
5288 InterpretedFrame *state = GET_FRAME(sp);
5289 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget();
5293 << std::hex << reinterpret_cast<uintptr_t>(state->pc);
5294 sp = state->base.prev;
5300 state->acc = acc;
5428 // IC miss and not enter the megamorphic state, store as polymorphic
5483 // IC miss and not enter the megamorphic state, store as polymorphic
5797 // IC miss and not enter the megamorphic state, store as polymorphic
5854 // IC miss and not enter the megamorphic state, store as polymorphic
5952 InterpretedFrame *state = GET_FRAME(sp);
5953 JSTaggedValue currentLexenv = state->env;
5969 InterpretedFrame *state = GET_FRAME(sp);
5970 JSTaggedValue currentLexenv = state->env;
5986 InterpretedFrame *state = GET_FRAME(sp);
5987 JSTaggedValue currentLexenv = state->env;
6004 InterpretedFrame *state = GET_FRAME(sp);
6005 JSTaggedValue env = state->env;
6022 InterpretedFrame *state = GET_FRAME(sp);
6023 JSTaggedValue env = state->env;
6040 InterpretedFrame *state = GET_FRAME(sp);
6041 JSTaggedValue env = state->env;
6059 InterpretedFrame *state = GET_FRAME(sp);
6060 JSTaggedValue env = state->env;
6078 InterpretedFrame *state = GET_FRAME(sp);
6079 JSTaggedValue env = state->env;
6097 InterpretedFrame *state = GET_FRAME(sp);
6098 JSTaggedValue env = state->env;
6332 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
6394 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
6938 // IC miss and not enter the megamorphic state, store as polymorphic
6991 // IC miss and not enter the megamorphic state, store as polymorphic
7048 // IC miss and not enter the megamorphic state, store as polymorphic
7110 // IC miss and not enter the megamorphic state, store as polymorphic
7168 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
7226 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
7286 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
7358 } else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymorphic
7603 InterpretedFrame *state = GET_FRAME(sp);
7604 auto res = SlowRuntimeStub::LdSendableClass(thread, state->env, level);
7819 InterpretedFrame *state = GET_FRAME(prevSp);
7820 state->pc = nullptr;
7821 state->function = JSTaggedValue::Hole();
7822 state->thisObj = JSTaggedValue::Hole();
7823 state->acc = JSTaggedValue::Hole();
7824 state->constpool = JSTaggedValue::Hole();
7825 state->profileTypeInfo = JSTaggedValue::Undefined();
7826 state->base.type = FrameType::INTERPRETER_FRAME;
7827 state->base.prev = nullptr;
7833 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7834 return state->function;
7840 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7841 return state->thisObj;
7847 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7848 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget();
7858 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7859 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget();
7869 JSTaggedType *lastFrame = state->base.prev;
7871 if (FrameHandler::GetFrameType(state->base.prev) == FrameType::INTERPRETER_ENTRY_FRAME) {
7897 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7898 return state->profileTypeInfo;
7911 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7912 return state->constpool;
7917 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1;
7918 return thread->GetCurrentEcmaContext()->FindOrCreateUnsharedConstpool(state->constpool);
7923 InterpretedFrame *state = GET_FRAME(sp);
7924 auto method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget();
7933 method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget();
7934 if (state->profileTypeInfo.IsUndefined()) {
7935 state->acc = acc;
7937 auto thisFunc = JSFunction::Cast(state->function.GetTaggedObject());
7941 state->profileTypeInfo = res;