| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/ |
| H A D | exceptions.py | 32 def __init__(self, filepath: str, exception: Exception) -> None: 33 super().__init__(f"{filepath}: {str(exception)}") 35 self.exception = exception
|
| /arkcompiler/toolchain/tooling/test/utils/ |
| H A D | test_hooks.h | 71 if (test_->exception) { 72 Local<JSValueRef> exception = DebuggerApi::GetAndClearException(vm_); variable 74 test_->exception(location); 76 if (!exception->IsHole()) { 77 DebuggerApi::SetException(vm_, exception);
|
| /arkcompiler/ets_runtime/test/fuzztest/isquickfixcausedexception_fuzzer/ |
| H A D | isquickfixcausedexception_fuzzer.cpp | 31 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(vm); in IsQuickFixCausedExceptionFuzzerTest() local 36 JSNApi::IsQuickFixCausedException(vm, exception, patchFileName); in IsQuickFixCausedExceptionFuzzerTest()
|
| /arkcompiler/runtime_core/libpandabase/utils/ |
| H A D | utils.h | 19 #include <exception> 47 class UnreachableException : public std::exception {
|
| /arkcompiler/toolchain/test/fuzztest/pttypesfunctionremoteobject_fuzzer/ |
| H A D | pttypesfunctionremoteobject_fuzzer.cpp | 33 Local<JSValueRef> exception = DebuggerApi::GetAndClearException(vm);
in PtTypesFunctionRemoteObjectFuzzTest() local 34 FunctionRemoteObject obj(vm, exception);
in PtTypesFunctionRemoteObjectFuzzTest()
|
| /arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
| H A D | quick_fix_test.cpp | 76 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0() local 77 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 99 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0() local 100 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 112 exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0() 113 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 135 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0() local 136 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName); in HWTEST_F_L0() 158 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance); in HWTEST_F_L0() local 159 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileNam in HWTEST_F_L0() [all...] |
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/native/promise/ |
| H A D | promise_test.cpp | 49 ets_string exception = env_->NewStringUTF("rejected"); in TEST_F() local 51 ASSERT_EQ(env_->DeferredReject(deferred, exception), ETS_OK); in TEST_F()
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/ |
| H A D | debuggable_thread.cpp | 154 auto [result, exception] = InvokeEvaluationMethod(method); in Evaluate() 156 if (exception != nullptr) { in Evaluate() 157 optException.emplace(objectRepo.CreateObject(TypedValue::Reference(exception))); in Evaluate() 181 LOG(WARNING, DEBUGGER) << "Evaluation has completed with a exception " in InvokeEvaluationMethod() 183 // Restore the previous exception. in InvokeEvaluationMethod() 247 ObjectHeader *exception) in Suspend() 254 callbacks_.preSuspend(objectRepository, hitBreakpoints, exception); in Suspend() 259 callbacks_.postSuspend(objectRepository, hitBreakpoints, exception); in Suspend() 246 Suspend(ObjectRepository &objectRepository, const std::vector<BreakpointId> &hitBreakpoints, ObjectHeader *exception) Suspend() argument
|
| H A D | inspector.h | 60 void Exception(PtThread thread, Method *method, const PtLocation &location, ObjectHeader *exception, 99 const std::vector<BreakpointId> &hitBreakpoints, ObjectHeader *exception); 115 /// @brief Get verbose information about the raised exception. 116 std::optional<ExceptionDetails> CreateExceptionDetails(PtThread thread, RemoteObject &&exception);
|
| /arkcompiler/runtime_core/static_core/verification/absint/ |
| H A D | absint.cpp | 145 (entryType == EntryPointType::METHOD_BODY ? "method body" : "exception handler")); in VerifyEntryPoints() 191 // return false when the try block does not have instructions to throw exception in ComputeRegContext() 216 Class *exception = nullptr; in VerifyExcHandler() local 219 exception = verifCtx->GetJob()->GetService()->classLinker->GetExtension(langCtx)->GetClass( in VerifyExcHandler() 224 << (exception != nullptr in VerifyExcHandler() 225 ? PandaString {", for exception '"} + PandaString {exception->GetName()} + "' " in VerifyExcHandler() 232 if (exception != nullptr) { in VerifyExcHandler() 233 exceptionType = Type {exception}; in VerifyExcHandler()
|
| /arkcompiler/ets_frontend/es2panda/ir/statements/ |
| H A D | forOfStatement.cpp | 60 compiler::VReg exception = pg->AllocReg(); in Compile() local 61 pg->StoreAccumulator(right_, exception); in Compile() 65 pg->LoadAccumulator(right_, exception); in Compile()
|
| H A D | forInStatement.cpp | 65 compiler::VReg exception = pg->AllocReg(); in Compile() local 66 pg->StoreAccumulator(right_, exception); in Compile() 70 pg->LoadAccumulator(right_, exception); in Compile()
|
| H A D | tryStatement.cpp | 52 compiler::VReg exception = pg->AllocReg(); in CompileFinally() local 53 pg->StoreConst(this, exception, compiler::Constant::JS_HOLE); in CompileFinally() 57 pg->StoreAccumulator(this, exception); in CompileFinally() 69 pg->LoadAccumulator(this, exception); in CompileFinally()
|
| /arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/ |
| H A D | exception_details.h | 98 ExceptionDetails &SetExceptionObject(RemoteObject &&exception) in SetExceptionObject() argument 100 exception_ = std::move(exception); in SetExceptionObject()
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| H A D | builtins_async_generator.cpp | 72 // 2.Let completion be ThrowCompletion(exception). in AsyncGeneratorPrototypeThrow() 73 JSHandle<JSTaggedValue> exception = GetCallArg(argv, 0); in AsyncGeneratorPrototypeThrow() local 76 factory->NewCompletionRecord(CompletionRecordType::THROW, exception); in AsyncGeneratorPrototypeThrow()
|
| H A D | builtins_generator.cpp | 76 // 26.4.1.4 Generator.prototype.throw(exception) 89 // 2.Let C be ThrowCompletion(exception). in GeneratorPrototypeThrow() 90 JSHandle<JSTaggedValue> exception = GetCallArg(argv, 0); in GeneratorPrototypeThrow() local 93 factory->NewCompletionRecord(CompletionRecordType::THROW, exception); in GeneratorPrototypeThrow()
|
| /arkcompiler/ets_frontend/es2panda/compiler/function/ |
| H A D | asyncFunctionBuilder.cpp | 60 VReg exception = pg_->AllocReg(); in CleanUp() local 61 pg_->StoreAccumulator(node, exception); in CleanUp()
|
| /arkcompiler/toolchain/test/autotest/aw/ |
| H A D | taskpool.py | 51 # clear the task queue and stop the task pool once an exception occurs in the task 52 if future.exception(): 53 logging.error(f'future.exception: {future.exception()}') 57 self.task_exception = future.exception()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| H A D | builtins_collection_stub_builder.cpp | 54 Label exception(env); in Clear() 56 BRANCH(TaggedIsException(res), &exception, &noException); in Clear() local 60 Bind(&exception); in Clear() 146 Label exception(env); in ForEach() 147 BRANCH(TaggedIsException(res), &exception, exit); in ForEach() local 148 Bind(&exception); in ForEach()
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/runner/ |
| H A D | runner.rb | 57 def self.print_exception(exception) 58 puts "Exception: exception class : #{exception.class}" 59 puts " exception message : #{exception.message}" 60 exception.backtrace.each do |t| 93 output << "\nUnexpected exception when reading from pipe: #{e.class.name}, #{e.message}"
|
| /arkcompiler/runtime_core/tests/cts-generator/runner/ |
| H A D | runner.rb | 57 def self.print_exception(exception) 58 puts "Exception: exception class : #{exception.class}" 59 puts " exception message : #{exception.message}" 60 exception.backtrace.each do |t| 93 output << "\nUnexpected exception when reading from pipe: #{e.class.name}, #{e.message}"
|
| /arkcompiler/ets_runtime/ecmascript/debugger/tests/ |
| H A D | hot_reload_manager_test.cpp | 88 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(ecmaVm); in HWTEST_F_L0() local 89 result = JSNApi::IsQuickFixCausedException(ecmaVm, exception, patchFileName); in HWTEST_F_L0()
|
| /arkcompiler/toolchain/tooling/ |
| H A D | protocol_handler.cpp | 77 auto exception = DebuggerApi::GetAndClearException(vm_); in ProcessCommand() local 79 DebuggerApi::SetException(vm_, exception); in ProcessCommand()
|
| /arkcompiler/ets_frontend/test/scripts/sdk_test/ |
| H A D | run.py | 48 logging.exception(e)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| H A D | ets_vm.cpp | 543 static void PrintExceptionInfo(EtsCoroutine *coro, EtsHandle<EtsObject> exception, PandaStringStream &ss) in PrintExceptionInfo() argument 546 auto cls = exception->GetClass(); in PrintExceptionInfo() 549 auto const performCall = [coro, &exception, &strBuf](EtsMethod *method) -> std::optional<std::string_view> { in PrintExceptionInfo() 551 std::array<Value, 1> args = {Value(exception->GetCoreType())}; in PrintExceptionInfo() 562 ss << std::endl << performCall(cls->GetMethod(dumperName)).value_or("exception dump failed"); in PrintExceptionInfo() 572 EtsHandle<EtsObject> exception(coro, EtsObject::FromCoreType(coro->GetException())); in HandleUncaughtException() 575 logStream << "Unhandled exception: " << exception->GetCoreType()->ClassAddr<Class>()->GetName(); in HandleUncaughtException() 577 auto descr = exception->GetClass()->GetDescriptor(); in HandleUncaughtException() 581 PrintExceptionInfo(coro, exception, logStrea in HandleUncaughtException() [all...] |