Lines Matching full:state
594 InterpretedFrame *state = GET_FRAME(newSp); in ExecuteNative() local
595 state->base.prev = sp; in ExecuteNative()
596 state->base.type = FrameType::INTERPRETER_FRAME; in ExecuteNative()
597 state->pc = nullptr; in ExecuteNative()
598 state->function = info->GetFunctionValue(); in ExecuteNative()
599 state->thisObj = info->GetThisValue(); in ExecuteNative()
700 InterpretedFrame *state = GET_FRAME(newSp); in Execute() local
701 state->pc = pc; in Execute()
702 state->function = info->GetFunctionValue(); in Execute()
703 state->thisObj = info->GetThisValue(); in Execute()
704 state->acc = JSTaggedValue::Hole(); in Execute()
706 state->constpool = method->GetConstantPool(); in Execute()
708 state->profileTypeInfo = method->GetProfileTypeInfo(); in Execute()
709 state->base.prev = sp; in Execute()
710 state->base.type = FrameType::INTERPRETER_FRAME; in Execute()
711 state->env = thisFunc->GetLexicalEnv(); in Execute()
720 const JSTaggedValue resAcc = state->acc; in Execute()
773 InterpretedFrame *state = GET_FRAME(newSp); in GeneratorReEnterInterpreter() local
774 state->pc = resumePc; in GeneratorReEnterInterpreter()
775 state->function = func.GetTaggedValue(); in GeneratorReEnterInterpreter()
776 state->thisObj = context->GetThis(); in GeneratorReEnterInterpreter()
777 state->constpool = method->GetConstantPool(); in GeneratorReEnterInterpreter()
778 state->profileTypeInfo = method->GetProfileTypeInfo(); in GeneratorReEnterInterpreter()
779 state->acc = context->GetAcc(); in GeneratorReEnterInterpreter()
780 state->base.prev = breakSp; in GeneratorReEnterInterpreter()
781 state->base.type = FrameType::INTERPRETER_FRAME; in GeneratorReEnterInterpreter()
783 state->env = env; in GeneratorReEnterInterpreter()
789 JSTaggedValue res = state->acc; in GeneratorReEnterInterpreter()
1255 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
1256 state->base.prev = sp; in RunInternal()
1257 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
1258 state->pc = nullptr; in RunInternal()
1259 state->function = JSTaggedValue(funcTagged); in RunInternal()
1311 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
1312 state->base.prev = sp; in RunInternal()
1313 state->base.type = FrameType::INTERPRETER_FRAME; in RunInternal()
1314 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
1316 state->function = JSTaggedValue(funcTagged); in RunInternal()
1317 state->thisObj = JSTaggedValue(thisObj); in RunInternal()
1318 state->acc = JSTaggedValue::Hole(); in RunInternal()
1319 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
1320 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
1322 state->env = env; in RunInternal()
1364 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
1366 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in RunInternal()
1367 methodHandle.Update(JSFunction::Cast(state->function.GetTaggedObject())->GetMethod()); in RunInternal()
1372 sp = state->base.prev; in RunInternal()
1378 state->acc = acc; in RunInternal()
1412 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
1414 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in RunInternal()
1415 methodHandle.Update(JSFunction::Cast(state->function.GetTaggedObject())->GetMethod()); in RunInternal()
1420 sp = state->base.prev; in RunInternal()
1426 state->acc = JSTaggedValue::Undefined(); in RunInternal()
2339 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
2402 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
2719 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
2793 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
2967 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
2968 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget(); in RunInternal()
2972 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in RunInternal()
2973 sp = state->base.prev; in RunInternal()
2979 state->acc = acc; in RunInternal()
3059 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
3060 state->base.prev = sp; in RunInternal()
3061 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
3062 state->pc = nullptr; in RunInternal()
3063 state->function = superCtor; in RunInternal()
3085 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
3100 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state); in RunInternal()
3111 state->function = superCtor; in RunInternal()
3112 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
3113 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
3114 state->env = superCtorFunc->GetLexicalEnv(); in RunInternal()
3129 state->base.prev = sp; in RunInternal()
3130 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
3131 state->thisObj = thisObj; in RunInternal()
3132 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
3134 state->acc = JSTaggedValue::Hole(); in RunInternal()
3194 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
3195 state->base.prev = sp; in RunInternal()
3196 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
3197 state->pc = nullptr; in RunInternal()
3198 state->function = superCtor; in RunInternal()
3220 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
3235 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state); in RunInternal()
3246 state->function = superCtor; in RunInternal()
3247 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
3248 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
3249 state->env = superCtorFunc->GetLexicalEnv(); in RunInternal()
3264 state->base.prev = sp; in RunInternal()
3265 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
3266 state->thisObj = thisObj; in RunInternal()
3267 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
3269 state->acc = JSTaggedValue::Hole(); in RunInternal()
3329 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
3330 state->base.prev = sp; in RunInternal()
3331 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
3332 state->pc = nullptr; in RunInternal()
3333 state->function = superCtor; in RunInternal()
3355 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
3370 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state); in RunInternal()
3381 state->function = superCtor; in RunInternal()
3382 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
3383 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
3384 state->env = superCtorFunc->GetLexicalEnv(); in RunInternal()
3399 state->base.prev = sp; in RunInternal()
3400 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
3401 state->thisObj = thisObj; in RunInternal()
3402 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
3404 state->acc = JSTaggedValue::Hole(); in RunInternal()
3464 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
3465 state->base.prev = sp; in RunInternal()
3466 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
3467 state->pc = nullptr; in RunInternal()
3468 state->function = superCtor; in RunInternal()
3490 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
3505 thisObj = FastRuntimeStub::NewThisObject(thread, superCtor, newTarget, state); in RunInternal()
3516 state->function = superCtor; in RunInternal()
3517 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
3518 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
3519 state->env = superCtorFunc->GetLexicalEnv(); in RunInternal()
3534 state->base.prev = sp; in RunInternal()
3535 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
3536 state->thisObj = thisObj; in RunInternal()
3537 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
3539 state->acc = JSTaggedValue::Hole(); in RunInternal()
3827 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
3828 state->base.prev = sp; in RunInternal()
3829 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
3830 state->pc = nullptr; in RunInternal()
3831 state->function = ctor; in RunInternal()
3854 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
3869 thisObj = FastRuntimeStub::NewThisObject(thread, ctor, ctor, state); in RunInternal()
3880 state->function = ctor; in RunInternal()
3881 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
3882 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
3883 state->env = ctorFunc->GetLexicalEnv(); in RunInternal()
3898 state->base.prev = sp; in RunInternal()
3899 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
3900 state->thisObj = thisObj; in RunInternal()
3901 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
3903 state->acc = JSTaggedValue::Hole(); in RunInternal()
3963 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
3964 state->base.prev = sp; in RunInternal()
3965 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
3966 state->pc = nullptr; in RunInternal()
3967 state->function = ctor; in RunInternal()
3990 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
4005 thisObj = FastRuntimeStub::NewThisObject(thread, ctor, ctor, state); in RunInternal()
4016 state->function = ctor; in RunInternal()
4017 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
4018 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
4019 state->env = ctorFunc->GetLexicalEnv(); in RunInternal()
4034 state->base.prev = sp; in RunInternal()
4035 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
4036 state->thisObj = thisObj; in RunInternal()
4037 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
4039 state->acc = JSTaggedValue::Hole(); in RunInternal()
4098 InterpretedBuiltinFrame *state = GET_BUILTIN_FRAME(newSp); in RunInternal() local
4099 state->base.prev = sp; in RunInternal()
4100 state->base.type = FrameType::INTERPRETER_BUILTIN_FRAME; in RunInternal()
4101 state->pc = nullptr; in RunInternal()
4102 state->function = ctor; in RunInternal()
4125 InterpretedFrame *state = GET_FRAME(newSp); in RunInternal() local
4140 thisObj = FastRuntimeStub::NewThisObject(thread, ctor, ctor, state); in RunInternal()
4151 state->function = ctor; in RunInternal()
4152 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
4153 state->profileTypeInfo = methodHandle->GetProfileTypeInfo(); in RunInternal()
4154 state->env = ctorFunc->GetLexicalEnv(); in RunInternal()
4169 state->base.prev = sp; in RunInternal()
4170 state->base.type = FrameType::INTERPRETER_FAST_NEW_FRAME; in RunInternal()
4171 state->thisObj = thisObj; in RunInternal()
4172 state->pc = pc = methodHandle->GetBytecodeArray(); in RunInternal()
4174 state->acc = JSTaggedValue::Hole(); in RunInternal()
4255 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4256 JSTaggedValue currentLexenv = state->env; in RunInternal()
4261 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4262 JSTaggedValue currentLexenv = state->env; in RunInternal()
4268 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4269 JSTaggedValue currentLexenv = state->env; in RunInternal()
4363 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4364 …JSTaggedValue res = SlowRuntimeStub::CreateObjectHavingMethod(thread, factory, result, state->env); in RunInternal()
4377 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4378 …JSTaggedValue res = SlowRuntimeStub::CreateObjectHavingMethod(thread, factory, result, state->env); in RunInternal()
4661 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4662 JSTaggedValue envHandle = state->env; in RunInternal()
4685 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4686 JSTaggedValue envHandle = state->env; in RunInternal()
4713 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4714 JSTaggedValue taggedCurEnv = state->env; in RunInternal()
4740 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4741 JSTaggedValue taggedCurEnv = state->env; in RunInternal()
4761 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4763 SlowRuntimeStub::CreateClassWithBuffer(thread, proto, state->env, GetConstantPool(sp), in RunInternal()
4770 cls->SetLexicalEnv(thread, state->env); in RunInternal()
4786 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4791 SlowRuntimeStub::CreateClassWithBuffer(thread, proto, state->env, GetConstantPool(sp), in RunInternal()
4798 cls->SetLexicalEnv(thread, state->env); in RunInternal()
4964 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4965 methodHandle.Update(JSFunction::Cast(state->function.GetTaggedObject())->GetMethod()); in RunInternal()
4969 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in RunInternal()
4970 sp = state->base.prev; in RunInternal()
4976 state->acc = acc; in RunInternal()
4998 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
4999 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget(); in RunInternal()
5003 << std::hex << reinterpret_cast<uintptr_t>(state->pc); in RunInternal()
5004 sp = state->base.prev; in RunInternal()
5010 state->acc = acc; in RunInternal()
5138 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
5189 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
5596 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5597 JSTaggedValue currentLexenv = state->env; in RunInternal()
5613 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5614 JSTaggedValue currentLexenv = state->env; in RunInternal()
5630 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5631 JSTaggedValue currentLexenv = state->env; in RunInternal()
5648 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5649 JSTaggedValue env = state->env; in RunInternal()
5666 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5667 JSTaggedValue env = state->env; in RunInternal()
5684 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5685 JSTaggedValue env = state->env; in RunInternal()
5703 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5704 JSTaggedValue env = state->env; in RunInternal()
5722 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5723 JSTaggedValue env = state->env; in RunInternal()
5741 InterpretedFrame *state = GET_FRAME(sp); in RunInternal() local
5742 JSTaggedValue env = state->env; in RunInternal()
5976 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
6038 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
6569 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
6618 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
6671 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
6733 // IC miss and not enter the megamorphic state, store as polymorphic in RunInternal()
6791 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
6849 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
6909 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
6981 …} else if (!firstValue.IsHole()) { // IC miss and not enter the megamorphic state, store as polymo… in RunInternal()
7091 InterpretedFrame *state = GET_FRAME(prevSp); in InitStackFrame() local
7092 state->pc = nullptr; in InitStackFrame()
7093 state->function = JSTaggedValue::Hole(); in InitStackFrame()
7094 state->thisObj = JSTaggedValue::Hole(); in InitStackFrame()
7095 state->acc = JSTaggedValue::Hole(); in InitStackFrame()
7096 state->constpool = JSTaggedValue::Hole(); in InitStackFrame()
7097 state->profileTypeInfo = JSTaggedValue::Undefined(); in InitStackFrame()
7098 state->base.type = FrameType::INTERPRETER_FRAME; in InitStackFrame()
7099 state->base.prev = nullptr; in InitStackFrame()
7124 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1; in GetFunction() local
7125 return state->function; in GetFunction()
7131 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1; in GetThis() local
7132 return state->thisObj; in GetThis()
7138 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1; in GetNewTarget() local
7139 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget(); in GetNewTarget()
7149 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1; in GetNumArgs() local
7150 Method *method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget(); in GetNumArgs()
7160 JSTaggedType *lastFrame = state->base.prev; in GetNumArgs()
7162 if (FrameHandler::GetFrameType(state->base.prev) == FrameType::INTERPRETER_ENTRY_FRAME) { in GetNumArgs()
7188 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1; in GetRuntimeProfileTypeInfo() local
7189 return state->profileTypeInfo; in GetRuntimeProfileTypeInfo()
7202 InterpretedFrame *state = reinterpret_cast<InterpretedFrame *>(sp) - 1; in GetConstantPool() local
7203 return state->constpool; in GetConstantPool()
7208 InterpretedFrame *state = GET_FRAME(sp); in UpdateHotnessCounter() local
7209 auto method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget(); in UpdateHotnessCounter()
7218 method = JSFunction::Cast(state->function.GetTaggedObject())->GetCallTarget(); in UpdateHotnessCounter()
7219 if (state->profileTypeInfo == JSTaggedValue::Undefined()) { in UpdateHotnessCounter()
7220 state->acc = acc; in UpdateHotnessCounter()
7222 auto thisFunc = JSFunction::Cast(state->function.GetTaggedObject()); in UpdateHotnessCounter()
7226 state->profileTypeInfo = res; in UpdateHotnessCounter()