/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | program_object.h | 83 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 …]
|
D | literal_data_extractor.h | 37 … 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,
|
D | scope_info_extractor.cpp | 32 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()
|
D | literal_data_extractor.cpp | 36 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 …]
|
D | panda_file_translator.h | 44 JSHandle<ConstantPool> constpool); 52 JSHandle<ConstantPool> constpool);
|
D | panda_file_translator.cpp | 107 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/ |
D | snapshot_test.cpp | 104 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/ |
D | interpreter_assembly.cpp | 279 …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 …]
|
D | interpreter-inl.h | 143 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 …]
|
D | interpreter_assembly.h | 60 JSTaggedValue constpool, JSTaggedValue profileTypeInfo, \
|
D | frame_handler.cpp | 238 JSTaggedValue constpool = method->GetConstantPool(); in GetConstpool() local 239 return ConstantPool::Cast(constpool.GetTaggedObject()); in GetConstpool()
|
D | fast_runtime_stub-inl.h | 289 state->constpool = method->GetConstantPool(); in NewThisObject()
|
D | slow_runtime_stub.h | 165 JSTaggedValue lexenv, JSTaggedValue constpool,
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | interpreter_stub.h | 39 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 …]
|
D | interpreter_stub-inl.h | 550 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 …]
|
D | interpreter_stub.cpp | 45 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 …]
|
D | access_object_stub_builder.cpp | 132 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()
|
D | stub_builder.h | 568 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/ |
D | method.cpp | 53 JSTaggedValue constpool = GetConstantPool(); in GetJSPandaFile() local 54 if (constpool.IsUndefined()) { in GetJSPandaFile() 58 const ConstantPool *taggedPool = ConstantPool::Cast(constpool.GetTaggedObject()); in GetJSPandaFile()
|
D | ecma_context.cpp | 401 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()
|
D | ecma_context.h | 196 void AddConstpool(const JSPandaFile *jsPandaFile, JSTaggedValue constpool, int32_t index = 0);
|
/arkcompiler/ets_runtime/ecmascript/patch/ |
D | patch_loader.cpp | 50 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/ |
D | js_pandafile_manager_test.cpp | 197 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/ |
D | runtime_stubs.cpp | 807 …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 …]
|
D | runtime_stubs-inl.h | 826 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()
|