Lines Matching defs:method

48 std::string JsStackInfo::BuildMethodTrace(Method *method, uint32_t pcOffset, LastBuilderCache &lastCache,
54 std::string name = method->ParseFunctionName();
62 const JSPandaFile *pandaFile = method->GetJSPandaFile();
71 const std::string &sourceFile = debugExtractor->GetSourceFile(method->GetMethodId());
92 panda_file::File::EntityId methodId = method->GetMethodId();
148 LOG_ECMA(ERROR) << "jit : js crash at method : " << methodName << ", offset :" << pcOffset;
172 void AssembleJitCodeMap(JSThread *thread, const JSHandle<JSObject> &jsErrorObj, JSFunction *func, Method *method,
178 std::string methodName = method->ParseFunctionName();
203 auto method = it.CheckAndGetMethod();
204 if (method == nullptr) {
207 if (!method->IsNativeWithCallField()) {
217 data += BuildJsStackTraceInfo(thread, method, it, pcOffset, jsErrorObj, lastCache);
219 auto addr = method->GetNativePointer();
222 data.append(" at native method (").append(strm.str()).append(")\n");
235 std::string JsStackInfo::BuildJsStackTraceInfo(JSThread *thread, Method *method, FrameIterator &it,
239 const JSPandaFile *pf = method->GetJSPandaFile();
245 AssembleJitCodeMap(thread, jsErrorObj, func, method, it.GetOptimizedReturnAddr());
249 BuildMethodTrace(method, pcOffset, lastCache, thread->GetEnableStackSourceFile());
285 auto method = it.CheckAndGetMethod();
286 if (method == nullptr) {
294 if (!method->IsNativeWithCallField()) {
295 std::string name = method->ParseFunctionName();
303 JSPandaFileManager::GetInstance()->GetJSPtExtractor(method->GetJSPandaFile());
304 const std::string &sourceFile = debugExtractor->GetSourceFile(method->GetMethodId());
321 panda_file::File::EntityId methodId = method->GetMethodId();
655 LOG_ECMA(ERROR) << "Read all method info from JSPandaFile failed, methodInfos is empty.";
871 uintptr_t method = 0;
872 if (!readMem(ctx, value, &method)) {
875 return method;
880 bool ArkGetMethodIdFromMethod(void *ctx, ReadMemFunc readMem, uintptr_t method, uintptr_t &methodId)
882 uintptr_t methodLiteralAddr = method + Method::LITERAL_INFO_OFFSET;
899 uintptr_t method = ArkCheckAndGetMethod(ctx, readMem, function);
900 if (!method) {
901 LOG_ECMA(DEBUG) << std::hex << "Failed to get method: " << function;
905 if (!ArkGetMethodIdFromMethod(ctx, readMem, method, methodId)) {
906 LOG_ECMA(DEBUG) << std::hex << "ArkGetJsFrameDebugInfo failed, method: " << method;
959 uintptr_t method = ArkCheckAndGetMethod(arkUnwindParam->ctx, arkUnwindParam->readMem, function);
960 if (!method) {
961 LOG_ECMA(DEBUG) << std::hex << "Failed to get method: " << function;
965 if (!ArkGetMethodIdFromMethod(arkUnwindParam->ctx, arkUnwindParam->readMem, method, *arkUnwindParam->methodId)) {
966 LOG_ECMA(DEBUG) << std::hex << "ArkGetJsFrameDebugInfo failed, method: " << method;
1247 uintptr_t method = 0;
1248 if (!ReadUintptrFromAddr(pid, value, method, g_needCheck)) {
1251 return method;
1256 bool ArkGetMethodIdandJSPandaFileAddr(int pid, uintptr_t method, uintptr_t &methodId, uintptr_t &jsPandaFileAddr)
1258 uintptr_t methodLiteralAddr = method + Method::LITERAL_INFO_OFFSET;
1264 uintptr_t constantpoolAddr = method + Method::CONSTANT_POOL_OFFSET;
1285 uint32_t ArkGetOffsetFromMethod(int pid, uintptr_t currentPtr, uintptr_t method)
1291 uintptr_t byteCodeArrayAddr = method + Method::NATIVE_POINTER_OR_BYTECODE_ARRAY_OFFSET;
1300 uint32_t ArkGetBytecodeOffset(int pid, uintptr_t method, uintptr_t frameType, uintptr_t currentPtr)
1308 return ArkGetOffsetFromMethod(pid, currentPtr, method);
1314 return ArkGetOffsetFromMethod(pid, currentPtr, method);
1352 bool ArkIsNativeWithCallField(int pid, uintptr_t method)
1354 uintptr_t callFieldAddr = method + Method::CALL_FIELD_OFFSET;
1490 uintptr_t method = ArkCheckAndGetMethod(pid, function);
1491 if (!method || ArkIsNativeWithCallField(pid, method)) {
1496 if (!ArkGetMethodIdandJSPandaFileAddr(pid, method, methodId, jsPandaFileAddr)) {
1497 LOG_ECMA(ERROR) << "ArkGetJsFrameDebugInfo failed, method: " << method;
1500 uintptr_t offset = ArkGetBytecodeOffset(pid, method, frameType, currentPtr);