Home
last modified time | relevance | path

Searched refs:numVars (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/base/
DbcGenUtil.ts180 export function newLexicalEnv(numVars: number, scopeInfoId: string | undefined): IRNode {
182 return numVars <= MAX_INT8 ? new Newlexenv(new Imm(numVars)) :
183 new WideNewlexenv(new Imm(numVars));
185 return numVars <= MAX_INT8 ? new Newlexenvwithname(new Imm(numVars), scopeInfoId) :
186 new WideNewlexenvwithname(new Imm(numVars), scopeInfoId);
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dfast_runtime_stub.h36 …tic inline JSTaggedValue NewLexicalEnv(JSThread *thread, ObjectFactory *factory, uint16_t numVars);
Dfast_runtime_stub-inl.h262 …gedValue FastRuntimeStub::NewLexicalEnv(JSThread *thread, ObjectFactory *factory, uint16_t numVars) in NewLexicalEnv() argument
266 LexicalEnv *newEnv = factory->InlineNewLexicalEnv(numVars); in NewLexicalEnv()
Dslow_runtime_stub.h72 static JSTaggedValue NewLexicalEnv(JSThread *thread, uint16_t numVars);
73 … static JSTaggedValue NewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uint16_t scopeId);
Dslow_runtime_stub.cpp404 JSTaggedValue SlowRuntimeStub::NewLexicalEnv(JSThread *thread, uint16_t numVars) in NewLexicalEnv() argument
409 return RuntimeStubs::RuntimeNewLexicalEnv(thread, numVars); in NewLexicalEnv()
412 JSTaggedValue SlowRuntimeStub::NewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uint16_t s… in NewLexicalEnvWithName() argument
417 return RuntimeStubs::RuntimeNewLexicalEnvWithName(thread, numVars, scopeId); in NewLexicalEnvWithName()
Dinterpreter-inl.h4332 uint8_t numVars = READ_INST_8_0(); in RunInternal() local
4334 << " imm " << numVars; in RunInternal()
4336 JSTaggedValue res = FastRuntimeStub::NewLexicalEnv(thread, factory, numVars); in RunInternal()
4339 res = SlowRuntimeStub::NewLexicalEnv(thread, numVars); in RunInternal()
4347 uint16_t numVars = READ_INST_16_1(); in RunInternal() local
4349 << " imm " << numVars; in RunInternal()
4351 JSTaggedValue res = FastRuntimeStub::NewLexicalEnv(thread, factory, numVars); in RunInternal()
4354 res = SlowRuntimeStub::NewLexicalEnv(thread, numVars); in RunInternal()
4362 uint16_t numVars = READ_INST_8_0(); in RunInternal() local
4365 << " numVars " << numVars << " scopeId " << scopeId; in RunInternal()
[all …]
Dinterpreter_assembly.cpp1710 uint8_t numVars = READ_INST_8_0(); in HandleNewlexenvImm8() local
1712 << " imm " << numVars; in HandleNewlexenvImm8()
1715 JSTaggedValue res = FastRuntimeStub::NewLexicalEnv(thread, factory, numVars); in HandleNewlexenvImm8()
1717 res = SlowRuntimeStub::NewLexicalEnv(thread, numVars); in HandleNewlexenvImm8()
3740 uint16_t numVars = READ_INST_16_1(); in HandleWideNewlexenvwithnamePrefImm16Id16() local
3743 << " numVars " << numVars << " scopeId " << scopeId; in HandleWideNewlexenvwithnamePrefImm16Id16()
3746 JSTaggedValue res = SlowRuntimeStub::NewLexicalEnvWithName(thread, numVars, scopeId); in HandleWideNewlexenvwithnamePrefImm16Id16()
3758 uint16_t numVars = READ_INST_16_1(); in HandleWideNewlexenvPrefImm16() local
3760 << " imm " << numVars; in HandleWideNewlexenvPrefImm16()
3764 JSTaggedValue res = FastRuntimeStub::NewLexicalEnv(thread, factory, numVars); in HandleWideNewlexenvPrefImm16()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecodes.cpp852 uint8_t numVars = READ_INST_8_0(); in InitBytecodeInfo() local
853 info.inputs.emplace_back(Immediate(numVars)); in InitBytecodeInfo()
859 uint16_t numVars = READ_INST_16_1(); in InitBytecodeInfo() local
860 info.inputs.emplace_back(Immediate(numVars)); in InitBytecodeInfo()
866 uint16_t numVars = READ_INST_8_0(); in InitBytecodeInfo() local
868 info.inputs.emplace_back(Immediate(numVars)); in InitBytecodeInfo()
875 uint16_t numVars = READ_INST_16_1(); in InitBytecodeInfo() local
877 info.inputs.emplace_back(Immediate(numVars)); in InitBytecodeInfo()
Dcommon_stubs.cpp267 GateRef numVars = Int32Argument(2); /* 2 : 3rd parameter is index */ in GenerateCircuit() local
273 newBuilder.NewLexicalEnv(&result, &afterNew, numVars, parent); in GenerateCircuit()
Dinterpreter_stub.cpp3355 GateRef numVars = ReadInst8_0(pc); in DECLARE_ASM_HANDLER() local
3361 newBuilder.NewLexicalEnv(&result, &afterNew, ZExtInt16ToInt32(numVars), parent); in DECLARE_ASM_HANDLER()
3376 GateRef numVars = ReadInst16_1(pc); in DECLARE_ASM_HANDLER() local
3382 newBuilder.NewLexicalEnv(&result, &afterNew, ZExtInt16ToInt32(numVars), parent); in DECLARE_ASM_HANDLER()
3396 GateRef numVars = ZExtInt8ToInt16(ReadInst8_0(pc)); in DECLARE_ASM_HANDLER() local
3399 { Int16ToTaggedInt(numVars), Int16ToTaggedInt(scopeId) }); in DECLARE_ASM_HANDLER()
3413 GateRef numVars = ReadInst16_1(pc); in DECLARE_ASM_HANDLER() local
3416 { Int16ToTaggedInt(numVars), Int16ToTaggedInt(scopeId) }); in DECLARE_ASM_HANDLER()
/arkcompiler/ets_frontend/ts2panda/src/
Dpandagen.ts558 let numVars = scope.getNumLexEnv();
567 newLexicalEnv(numVars, scopeInfoId),
571 newLexicalEnv(node, numVars: number): void {
574 newLexicalEnv(numVars, undefined),
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.h599 static inline JSTaggedValue RuntimeNewLexicalEnv(JSThread *thread, uint16_t numVars);
632 …static inline JSTaggedValue RuntimeNewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uint1…
636 …static inline JSTaggedValue RuntimeOptNewLexicalEnvWithName(JSThread *thread, uint16_t numVars, ui…
Druntime_stubs-inl.h1859 JSTaggedValue RuntimeStubs::RuntimeNewLexicalEnv(JSThread *thread, uint16_t numVars) in RuntimeNewLexicalEnv() argument
1862 JSHandle<LexicalEnv> newEnv = factory->NewLexicalEnv(numVars); in RuntimeNewLexicalEnv()
2182 JSTaggedValue RuntimeStubs::RuntimeNewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uint16… in RuntimeNewLexicalEnvWithName() argument
2185 JSHandle<LexicalEnv> newEnv = factory->NewLexicalEnv(numVars); in RuntimeNewLexicalEnvWithName()
2248 JSTaggedValue RuntimeStubs::RuntimeOptNewLexicalEnvWithName(JSThread *thread, uint16_t numVars, uin… in RuntimeOptNewLexicalEnvWithName() argument
2253 JSHandle<LexicalEnv> newEnv = factory->NewLexicalEnv(numVars); in RuntimeOptNewLexicalEnvWithName()
Druntime_stubs.cpp1829 JSTaggedValue numVars = GetArg(argv, argc, 0); // 0: means the zeroth parameter in DEF_RUNTIME_STUBS() local
1832 static_cast<uint16_t>(numVars.GetInt()), in DEF_RUNTIME_STUBS()
1850 uint16_t numVars = static_cast<uint16_t>(taggedNumVars.GetInt()); in DEF_RUNTIME_STUBS() local
1852 …return RuntimeOptNewLexicalEnvWithName(thread, numVars, scopeId, currentLexEnv, func).GetRawData(); in DEF_RUNTIME_STUBS()