Home
last modified time | relevance | path

Searched refs:constpool (Results 1 – 25 of 35) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dprogram_object.h83 JSHandle<ConstantPool> constpool(vm->GetJSThread(), JSTaggedValue::Hole()); in CreateConstPool()
89 constpool = GetDeserializedConstantPool(vm, jsPandaFile, index); in CreateConstPool()
95 if (constpool.GetTaggedValue().IsHole()) { in CreateConstPool()
97 constpool = factory->NewConstantPool(constpoolSize); in CreateConstPool()
100 constpool->SetJSPandaFile(jsPandaFile); in CreateConstPool()
101 constpool->SetIndexHeader(mainIndex); in CreateConstPool()
103 return constpool; in CreateConstPool()
181 … static JSTaggedValue GetMethodFromCache(JSThread *thread, JSTaggedValue constpool, uint32_t index) in GetMethodFromCache() argument
183 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject()); in GetMethodFromCache()
203 JSHandle<ConstantPool> constpoolHandle(thread, constpool); in GetMethodFromCache()
[all …]
Dliteral_data_extractor.h37 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "");
40 JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
45 … JSHandle<ConstantPool> constpool, const CString &entryPoint = "");
47 JSHandle<ConstantPool> constpool, const CString &entryPoint = "",
50 … size_t index, JSHandle<ConstantPool> constpool,
54 … uint32_t offset, JSHandle<ConstantPool> constpool,
66 const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool,
Dscope_info_extractor.cpp32 JSHandle<ConstantPool> constpool(thread, method->GetConstantPool()); in GenerateScopeInfo() local
36 panda_file::File::EntityId id = constpool->GetEntityId(scopeId); in GenerateScopeInfo()
37 … elementsLiteral = LiteralDataExtractor::GetDatasIgnoreType(thread, jsPandaFile, id, constpool); in GenerateScopeInfo()
39 …lementsLiteral = LiteralDataExtractor::GetDatasIgnoreType(thread, jsPandaFile, scopeId, constpool); in GenerateScopeInfo()
Dliteral_data_extractor.cpp36 JSHandle<ConstantPool> constpool, in ExtractObjectDatas() argument
51 … &methodId, &kind, &constpool, &entryPoint](const LiteralValue &value, const LiteralTag &tag) { in ExtractObjectDatas()
90 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in ExtractObjectDatas()
119 …const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &ent… in GetDatasIgnoreTypeForClass() argument
128 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreTypeForClass()
132 … size_t index, JSHandle<ConstantPool> constpool, in GetDatasIgnoreType() argument
136 return EnumerateLiteralVals(thread, lda, jsPandaFile, index, constpool, entryPoint); in GetDatasIgnoreType()
140 …const JSPandaFile *jsPandaFile, size_t index, JSHandle<ConstantPool> constpool, const CString &ent… in EnumerateLiteralVals() argument
149 … index, [literals, &pos, factory, thread, jsPandaFile, &methodId, &kind, &constpool, &entryPoint] in EnumerateLiteralVals()
184 … DefineMethodInLiteral(thread, jsPandaFile, methodId, constpool, kind, length, entryPoint); in EnumerateLiteralVals()
[all …]
Dpanda_file_translator.h44 JSHandle<ConstantPool> constpool);
52 JSHandle<ConstantPool> constpool);
Dpanda_file_translator.cpp107 JSHandle<ConstantPool> constpool; in GenerateProgram() local
110 constpool = vm->GetJSThread()->GetCurrentEcmaContext()->FindOrCreateConstPool( in GenerateProgram()
115 constpool = ParseConstPool(vm, jsPandaFile); in GenerateProgram()
117 … vm->GetJSThread()->GetCurrentEcmaContext()->AddConstpool(jsPandaFile, constpool.GetTaggedValue()); in GenerateProgram()
119 constpool = JSHandle<ConstantPool>(vm->GetJSThread(), constpoolVal); in GenerateProgram()
123 ParseFuncAndLiteralConstPool(vm, jsPandaFile, entryPoint.data(), constpool); in GenerateProgram()
128 return GenerateProgramInternal(vm, mainMethodLiteral, constpool); in GenerateProgram()
133 JSHandle<ConstantPool> constpool) in GenerateProgramInternal() argument
149 method->SetConstantPool(thread, constpool); in GenerateProgramInternal()
158 JSHandle<ConstantPool> constpool = AllocateConstPool(vm, jsPandaFile); in ParseConstPool() local
[all …]
/arkcompiler/ets_runtime/ecmascript/snapshot/tests/
Dsnapshot_test.cpp104 JSHandle<ConstantPool> constpool = factory->NewConstantPool(10); in HWTEST_F_L0() local
113 constpool->SetObjectToCache(thread, 0, funcFunc.GetTaggedValue()); in HWTEST_F_L0()
114 constpool->SetObjectToCache(thread, 1, dateFunc.GetTaggedValue()); in HWTEST_F_L0()
115 constpool->SetObjectToCache(thread, 2, str1.GetTaggedValue()); in HWTEST_F_L0()
116 constpool->SetObjectToCache(thread, 3, numberFunc.GetTaggedValue()); in HWTEST_F_L0()
117 constpool->SetObjectToCache(thread, 4, str2.GetTaggedValue()); in HWTEST_F_L0()
118 constpool->SetObjectToCache(thread, 5, str1.GetTaggedValue()); in HWTEST_F_L0()
119 constpool->SetObjectToCache(thread, 6, str3.GetTaggedValue()); in HWTEST_F_L0()
120 constpool->SetObjectToCache(thread, 7, str4.GetTaggedValue()); in HWTEST_F_L0()
121 constpool->SetObjectToCache(thread, 8, str4.GetTaggedValue()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dinterpreter_assembly.cpp279 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleMovV4V4() argument
291 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleMovV8V8() argument
303 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleMovV16V16() argument
315 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleLdaStrId16() argument
320 constpool = GetConstantPool(sp); in HandleLdaStrId16()
321 SET_ACC(ConstantPool::GetStringFromCache(thread, constpool, stringId)); in HandleLdaStrId16()
326 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleJmpImm8() argument
336 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleJmpImm16() argument
346 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleJmpImm32() argument
356 …JSThread *thread, const uint8_t *pc, JSTaggedType *sp, JSTaggedValue constpool, JSTaggedValue prof… in HandleJeqzImm8() argument
[all …]
Dinterpreter-inl.h143 ConstantPool::GetMethodFromCache(thread, constpool, index)
146 ConstantPool::GetStringFromCache(thread, constpool, index)
149 ConstantPool::GetLiteralFromCache<type>(thread, constpool, index, module)
718 state->constpool = method->GetConstantPool(); in Execute()
792 state->constpool = method->GetConstantPool(); in GeneratorReEnterInterpreter()
1037 auto constpool = GetConstantPool(sp); in RunInternal() local
1406 state->constpool = methodHandle->GetConstantPool(); in RunInternal()
2278 auto constpool = GetConstantPool(sp); in RunInternal() local
2295 auto constpool = GetConstantPool(sp); in RunInternal() local
2314 auto constpool = GetConstantPool(sp); in RunInternal() local
[all …]
Dinterpreter_assembly.h60 JSTaggedValue constpool, JSTaggedValue profileTypeInfo, \
Dframe_handler.cpp238 JSTaggedValue constpool = method->GetConstantPool(); in GetConstpool() local
239 return ConstantPool::Cast(constpool.GetTaggedObject()); in GetConstpool()
Dfast_runtime_stub-inl.h289 state->constpool = method->GetConstantPool(); in NewThisObject()
Dslow_runtime_stub.h165 JSTaggedValue lexenv, JSTaggedValue constpool,
/arkcompiler/ets_runtime/ecmascript/compiler/
Dinterpreter_stub.h39 GateRef constpool { 0 };
46 …return (constpool != 0) && (pc != 0) && (offset != Offset::INVALID) && (length != Length::INVALID); in IsValid()
120 inline void CheckException(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
123 inline void CheckPendingException(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
126 inline void CheckExceptionWithJump(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
129 inline void CheckExceptionWithVar(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
139 inline void Dispatch(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
141 inline void DispatchWithId(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
143 inline void DispatchLast(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
145 inline void DispatchDebugger(GateRef glue, GateRef sp, GateRef pc, GateRef constpool,
[all …]
Dinterpreter_stub-inl.h550 void InterpreterStubBuilder::Dispatch(GateRef glue, GateRef sp, GateRef pc, GateRef constpool, Gate… in Dispatch() argument
556 DispatchBase(target, glue, sp, newPc, constpool, profileTypeInfo, acc, hotnessCounter); in Dispatch()
560 void InterpreterStubBuilder::DispatchLast(GateRef glue, GateRef sp, GateRef pc, GateRef constpool, in DispatchLast() argument
564 DispatchBase(target, glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter); in DispatchLast()
568 …d InterpreterStubBuilder::DispatchDebugger(GateRef glue, GateRef sp, GateRef pc, GateRef constpool, in DispatchDebugger() argument
573 auto args = { glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter }; in DispatchDebugger()
578 …terpreterStubBuilder::DispatchDebuggerLast(GateRef glue, GateRef sp, GateRef pc, GateRef constpool, in DispatchDebuggerLast() argument
582 auto args = { glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter }; in DispatchDebuggerLast()
593 void InterpreterStubBuilder::DispatchWithId(GateRef glue, GateRef sp, GateRef pc, GateRef constpool, in DispatchWithId() argument
598 DispatchBase(target, glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter); in DispatchWithId()
[all …]
Dinterpreter_stub.cpp45 GateRef constpool = TaggedPointerArgument( \
54 GenerateCircuitImpl(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, callback); \
59 GateRef constpool, GateRef profileTypeInfo, \
102 Dispatch(glue, sp, pc, constpool, __VA_ARGS__)
112 DispatchLast(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter) \
115 DispatchLast(glue, sp, pc, constpool, profileTypeInfo, *varAcc, hotnessCounter) \
142 CheckException(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \
146 CheckException(glue, sp, pc, constpool, profileTypeInfo, *varAcc, hotnessCounter, \
150 CheckExceptionWithJump(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \
154 CheckExceptionWithVar(glue, sp, pc, constpool, profileTypeInfo, acc, hotnessCounter, \
[all …]
Daccess_object_stub_builder.cpp132 GateRef constpool = GetConstPoolFromFunction(jsFunc_); in ResolvePropKey() local
133 return GetStringFromConstPool(glue, constpool, ChangeIntPtrToInt32(prop)); in ResolvePropKey()
141 return GetStringFromConstPool(glue, info.constpool, stringId); in ResolvePropKey()
Dstub_builder.h568 inline GateRef GetObjectFromConstPool(GateRef constpool, GateRef index);
570 GateRef GetStringFromConstPool(GateRef glue, GateRef constpool, GateRef index);
571 GateRef GetMethodFromConstPool(GateRef glue, GateRef constpool, GateRef index);
572 …GateRef GetArrayLiteralFromConstPool(GateRef glue, GateRef constpool, GateRef index, GateRef modul…
573 …GateRef GetObjectLiteralFromConstPool(GateRef glue, GateRef constpool, GateRef index, GateRef modu…
/arkcompiler/ets_runtime/ecmascript/
Dmethod.cpp53 JSTaggedValue constpool = GetConstantPool(); in GetJSPandaFile() local
54 if (constpool.IsUndefined()) { in GetJSPandaFile()
58 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject()); in GetJSPandaFile()
Decma_context.cpp401 JSTaggedValue constpool = FindConstpool(jsPandaFile, index); in FindOrCreateConstPool() local
402 if (constpool.IsHole()) { in FindOrCreateConstPool()
408 return JSHandle<ConstantPool>(thread_, constpool); in FindOrCreateConstPool()
417 JSHandle<ConstantPool> constpool = factory_->NewConstantPool(constpoolSize); in CreateAllConstpool() local
418 constpool->SetJSPandaFile(jsPandaFile); in CreateAllConstpool()
419 constpool->SetIndexHeader(&header); in CreateAllConstpool()
420 AddConstpool(jsPandaFile, constpool.GetTaggedValue(), index++); in CreateAllConstpool()
424 void EcmaContext::AddConstpool(const JSPandaFile *jsPandaFile, JSTaggedValue constpool, int32_t ind… in AddConstpool() argument
426 ASSERT(constpool.IsConstantPool()); in AddConstpool()
432 constpoolMap.insert({index, constpool}); in AddConstpool()
Decma_context.h196 void AddConstpool(const JSPandaFile *jsPandaFile, JSTaggedValue constpool, int32_t index = 0);
/arkcompiler/ets_runtime/ecmascript/patch/
Dpatch_loader.cpp50 JSTaggedValue constpool = thread->GetCurrentEcmaContext()->FindConstpool(baseFile, idx); in LoadPatchInternal() local
51 if (!constpool.IsHole()) { in LoadPatchInternal()
53 gloalHandleCollection.NewHandle<JSTaggedValue>(constpool.GetRawData()); in LoadPatchInternal()
102 JSHandle<ConstantPool> constpool(thread, constpoolVal); in ExecutePatchMain() local
104 …<Program> program = PandaFileTranslator::GenerateProgramInternal(vm, mainMethodLiteral, constpool); in ExecutePatchMain()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Djs_pandafile_manager_test.cpp197 JSHandle<ConstantPool> constpool = vm->GetFactory()->NewConstantPool(1); in CreateJSPandaFileAndConstpool() local
198 … vm->GetJSThread()->GetCurrentEcmaContext()->AddConstpool(pf.get(), constpool.GetTaggedValue(), 0); in CreateJSPandaFileAndConstpool()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs.cpp807 …JSHandle<JSTaggedValue> constpool = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zeroth… in DEF_RUNTIME_STUBS() local
810 thread, constpool.GetTaggedValue(), index.GetInt()).GetRawData(); in DEF_RUNTIME_STUBS()
816 …JSHandle<JSTaggedValue> constpool = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zeroth… in DEF_RUNTIME_STUBS() local
819 thread, constpool.GetTaggedValue(), index.GetInt()).GetRawData(); in DEF_RUNTIME_STUBS()
825 …JSHandle<JSTaggedValue> constpool = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zeroth… in DEF_RUNTIME_STUBS() local
829 thread, constpool.GetTaggedValue(), index.GetInt(), module.GetTaggedValue()).GetRawData(); in DEF_RUNTIME_STUBS()
835 …JSHandle<JSTaggedValue> constpool = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zeroth… in DEF_RUNTIME_STUBS() local
839 thread, constpool.GetTaggedValue(), index.GetInt(), module.GetTaggedValue()).GetRawData(); in DEF_RUNTIME_STUBS()
958 …JSHandle<JSTaggedValue> constpool = GetHArg<JSTaggedValue>(argv, argc, 2); // 2: means the second… in DEF_RUNTIME_STUBS() local
962 return RuntimeCreateClassWithBuffer(thread, base, lexenv, constpool, in DEF_RUNTIME_STUBS()
[all …]
Druntime_stubs-inl.h826 const JSHandle<JSTaggedValue> &constpool, in RuntimeCreateClassWithBuffer() argument
835 auto methodObj = ConstantPool::GetMethodFromCache(thread, constpool.GetTaggedValue(), methodId); in RuntimeCreateClassWithBuffer()
837 JSHandle<ConstantPool> constpoolHandle = JSHandle<ConstantPool>::Cast(constpool); in RuntimeCreateClassWithBuffer()
2540 JSHandle<ConstantPool> constpool(thread, method->GetConstantPool()); in RuntimeOptGenerateScopeInfo()
2541 panda_file::File::EntityId id = constpool->GetEntityId(scopeId); in RuntimeOptGenerateScopeInfo()
2543 LiteralDataExtractor::GetDatasIgnoreType(thread, jsPandaFile, id, constpool); in RuntimeOptGenerateScopeInfo()

12