| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | error_helper.h | 31 static JSTaggedValue ErrorCommonToString(EcmaRuntimeCallInfo *argv, const ErrorType &errorType); 33 …static JSTaggedValue ErrorCommonConstructor(EcmaRuntimeCallInfo *argv, const ErrorType &errorType); 41 const ErrorType &errorType);
|
| D | error_helper.cpp | 32 …TaggedValue ErrorHelper::ErrorCommonToString(EcmaRuntimeCallInfo *argv, const ErrorType &errorType) in ErrorCommonToString() argument 53 name = ErrorHelper::GetErrorName(thread, name, errorType); in ErrorCommonToString() 91 const ErrorType &errorType) in GetErrorName() argument 96 switch (errorType) { in GetErrorName() 134 [[maybe_unused]] const ErrorType &errorType) in ErrorCommonConstructor() argument
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | throw_oom_error_test.cpp | 67 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local 68 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0() 100 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local 101 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
|
| D | gc_third_test.cpp | 133 JSType errorType = thread->GetException().GetTaggedObject()->GetClass()->GetObjectType(); in HWTEST_F_L0() local 134 EXPECT_EQ(errorType, JSType::JS_OOM_ERROR); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/static_core/assembler/ |
| D | error.h | 118 …inline Error(std::string s, size_t line, ErrorType errorType, std::string overinfo, size_t p, size… 124 err(errorType), in type()
|
| /arkcompiler/ets_runtime/ecmascript/serializer/ |
| D | base_deserializer.h | 86 …JSErrorInfo(uint8_t errorType, JSTaggedValue errorMsg, uintptr_t objAddr, size_t offset, bool root) in JSErrorInfo() 87 … : errorType_(errorType), errorMsg_(errorMsg), objAddr_(objAddr), offset_(offset), root_(root) {} in JSErrorInfo()
|
| D | base_deserializer.cpp | 169 … base::ErrorType errorType = base::ErrorType(type - static_cast<uint8_t>(JSType::JS_ERROR_FIRST)); in DeserializeJSError() local 173 …JSHandle<JSObject> errorTag = factory->NewJSError(errorType, JSHandle<EcmaString>(thread_, errorMs… in DeserializeJSError()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_serializer.cpp | 526 JSType errorType = taggedObject->GetClass()->GetObjectType(); in WriteJSError() local 527 if (!WriteJSErrorHeader(errorType)) { in WriteJSError() 1387 base::ErrorType errorType; in ReadJSError() local 1390 errorType = base::ErrorType::ERROR; in ReadJSError() 1393 errorType = base::ErrorType::EVAL_ERROR; in ReadJSError() 1396 errorType = base::ErrorType::RANGE_ERROR; in ReadJSError() 1399 errorType = base::ErrorType::REFERENCE_ERROR; in ReadJSError() 1402 errorType = base::ErrorType::TYPE_ERROR; in ReadJSError() 1405 errorType = base::ErrorType::AGGREGATE_ERROR; in ReadJSError() 1408 errorType = base::ErrorType::URI_ERROR; in ReadJSError() [all …]
|
| D | ecma_macros.h | 348 #define THROW_NEW_ERROR_AND_RETURN_HANDLE(thread, errorType, type, message) \ argument 354 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \ 360 #define THROW_NEW_ERROR_WITH_MSG_AND_RETURN_VALUE(thread, errorType, message, value) \ argument 366 JSHandle<JSObject> _error = _factory->GetJSError(errorType, message); \
|
| D | object_factory.cpp | 850 JSHandle<JSObject> ObjectFactory::GetJSError(const ErrorType &errorType, const char *data, bool nee… in GetJSError() argument 852 ASSERT_PRINT(errorType == ErrorType::ERROR || errorType == ErrorType::EVAL_ERROR || in GetJSError() 853 … errorType == ErrorType::RANGE_ERROR || errorType == ErrorType::REFERENCE_ERROR || in GetJSError() 854 errorType == ErrorType::SYNTAX_ERROR || errorType == ErrorType::TYPE_ERROR || in GetJSError() 855 errorType == ErrorType::URI_ERROR || errorType == ErrorType::OOM_ERROR || in GetJSError() 856 errorType == ErrorType::TERMINATION_ERROR, in GetJSError() 860 return NewJSError(errorType, handleMsg, needCheckStack); in GetJSError() 863 return NewJSError(errorType, emptyString, needCheckStack); in GetJSError() 866 JSHandle<JSObject> ObjectFactory::NewJSError(const ErrorType &errorType, const JSHandle<EcmaString>… in NewJSError() argument 887 switch (errorType) { in NewJSError()
|
| D | object_factory.h | 209 …JSHandle<JSObject> GetJSError(const ErrorType &errorType, const char *data = nullptr, bool needChe… 211 JSHandle<JSObject> NewJSError(const ErrorType &errorType, const JSHandle<EcmaString> &message,
|