/arkcompiler/runtime_core/libpandabase/tests/ |
D | expected_test.cpp | 26 static Expected<int, ErrorCode> helper(int v) in helper() 46 TEST(Expected, Unexpected) in TEST() argument 55 TEST(Expected, Ctor) in TEST() argument 58 auto e = Expected<int, ErrorCode>(v); in TEST() 63 auto e0 = Expected<int, ErrorCode>(); in TEST() 66 auto e1 = Expected<int, ErrorCode>(2); in TEST() 69 auto e2 = Expected<int, ErrorCode>(Unexpected(ErrorCode::First)); in TEST() 71 auto e3 = Expected<int, ErrorCode>(u); in TEST() 77 EXPECT_FALSE((std::is_default_constructible_v<Expected<NonDefaultConstructible, ErrorCode>>)); in TEST() 80 TEST(Expected, Access) in TEST() argument [all …]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile_executor.h | 28 static Expected<JSTaggedValue, bool> ExecuteFromFile(JSThread *thread, const CString &filename, 31 …static Expected<JSTaggedValue, bool> ExecuteFromBuffer(JSThread *thread, const void *buffer, size_… 34 …static Expected<JSTaggedValue, bool> ExecuteModuleBuffer(JSThread *thread, const void *buffer, siz… 36 …static Expected<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, bool isBundle, const CS… 38 static Expected<JSTaggedValue, bool> Execute(JSThread *thread, const JSPandaFile *jsPandaFile, 42 …static Expected<JSTaggedValue, bool> ExecuteFromBufferSecure(JSThread *thread, uint8_t *buffer, si… 45 …static Expected<JSTaggedValue, bool> ExecuteModuleBufferSecure(JSThread *thread, uint8_t *buffer, … 48 …static Expected<JSTaggedValue, bool> CommonExecuteBuffer(JSThread *thread, const CString &filename,
|
D | js_pandafile_executor.cpp | 32 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromFile(JSThread *thread, const CString … in ExecuteFromFile() 113 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromBuffer(JSThread *thread, in ExecuteFromBuffer() 143 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteModuleBuffer( in ExecuteModuleBuffer() 193 Expected<JSTaggedValue, bool> JSPandaFileExecutor::CommonExecuteBuffer(JSThread *thread, in CommonExecuteBuffer() 218 Expected<JSTaggedValue, bool> JSPandaFileExecutor::Execute(JSThread *thread, const JSPandaFile *jsP… in Execute() 227 …Expected<JSTaggedValue, bool> result = context->InvokeEcmaEntrypoint(jsPandaFile, entryPoint, excu… in Execute() 247 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteFromBufferSecure(JSThread *thread, uint8_… in ExecuteFromBufferSecure() 275 Expected<JSTaggedValue, bool> JSPandaFileExecutor::CommonExecuteBuffer(JSThread *thread, const CStr… in CommonExecuteBuffer() 300 Expected<JSTaggedValue, bool> JSPandaFileExecutor::ExecuteModuleBufferSecure(JSThread *thread, uint… in ExecuteModuleBufferSecure()
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | expected.h | 66 class Expected final { 69 Expected() noexcept : v_(T()) in Expected() function 74 Expected(T v) noexcept(std::is_nothrow_move_constructible_v<T>) : v_(std::move(v)) {} in noexcept() 76 …Expected(Unexpected<E> e) noexcept(std::is_nothrow_move_constructible_v<E>) : v_(std::move(e.Value… in noexcept() 150 ~Expected() = default; 152 DEFAULT_COPY_SEMANTIC(Expected); 153 DEFAULT_MOVE_SEMANTIC(Expected);
|
/arkcompiler/runtime_core/platforms/windows/libpandabase/ |
D | file.h | 44 Expected<size_t, Error> Read(void *buf, size_t n) const in Read() 63 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write() 87 Expected<size_t, Error> GetFileSize() const in GetFileSize() 122 static Expected<std::string, Error> GetTmpPath(); 124 static Expected<std::string, Error> GetExecutablePath(); 126 static Expected<std::string, Error> GetAbsolutePath(std::string_view relative_path) in GetAbsolutePath()
|
D | library_loader.cpp | 21 Expected<LibraryHandle, Error> Load(std::string_view filename) in Load() 32 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol()
|
D | file.cpp | 65 Expected<std::string, Error> File::GetTmpPath() in GetTmpPath() 76 Expected<std::string, Error> File::GetExecutablePath() in GetExecutablePath()
|
/arkcompiler/runtime_core/platforms/unix/libpandabase/ |
D | file.h | 51 Expected<size_t, Error> Read(void *buf, size_t n) const in Read() 70 Expected<size_t, Error> Write(const void *buf, size_t n) const in Write() 94 Expected<size_t, Error> GetFileSize() const in GetFileSize() 131 static Expected<std::string, Error> GetTmpPath() in GetTmpPath() 145 static Expected<std::string, Error> GetExecutablePath() in GetExecutablePath() 166 static Expected<std::string, Error> GetAbsolutePath(std::string_view relative_path) in GetAbsolutePath()
|
D | library_loader_load.cpp | 27 Expected<LibraryHandle, Error> Load(std::string_view filename) in Load()
|
D | library_loader_resolve_symbol.cpp | 28 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol()
|
D | exec.cpp | 32 Expected<int, Error> Exec(Span<const char *> args) in Exec()
|
/arkcompiler/runtime_core/libpandabase/serializer/ |
D | serializer.h | 46 -> std::enable_if_t<std::is_pod_v<T>, Expected<size_t, const char *>> 57 Expected<size_t, const char *>> 77 -> std::enable_if_t<is_hash_mappable_v<UnMap>, Expected<size_t, const char *>> 110 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ T &value) in BufferToType() 124 inline Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std:… in BufferToType() 147 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std::vector… in BufferToType() 173 Expected<size_t, const char *> BufferToType(const uint8_t *data, size_t size, /* out */ std::unorde… in BufferToType() 292 Expected<size_t, const char *> RawBufferToStruct(const uint8_t *data, size_t size, /* out */ Struct… in RawBufferToStruct()
|
/arkcompiler/runtime_core/libpandabase/os/ |
D | library_loader.h | 35 Expected<LibraryHandle, Error> Load(std::string_view filename); 37 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name);
|
D | exec.h | 26 Expected<int, Error> Exec(Span<const char *> args);
|
D | mem.h | 116 Expected<const std::byte *, Error> MakeReadExec() in MakeReadExec() 126 Expected<const std::byte *, Error> MakeReadOnly() in MakeReadOnly() 136 Expected<std::byte *, Error> MakeReadWrite() in MakeReadWrite()
|
/arkcompiler/runtime_core/assembler/ |
D | assembly-parser.h | 66 Expected<Program, Error> Parse(TokenSet &vectors_tokens, const std::string &file_name = ""); 72 Expected<Program, Error> Parse(const std::string &source, const std::string &file_name = ""); 208 Expected<Program, Error> ParseAfterMainLoop(const std::string &file_name); 221 Expected<char, Error> ParseOctalEscapeSequence(std::string_view s, size_t *i); 222 Expected<char, Error> ParseHexEscapeSequence(std::string_view s, size_t *i); 223 Expected<char, Error> ParseEscapeSequence(std::string_view s, size_t *i);
|
D | pandasm.h | 37 panda::Expected<panda::pandasm::Program, panda::pandasm::Error> &res);
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-class-definiton4-expected.txt | 1 SyntaxError: Expected '(' [test-class-definiton4.ts:18:7]
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | this-expression-expected.txt | 1 SyntaxError: Expected an identifier [this-expression.js:17:6]
|
D | test-object-expression4-expected.txt | 1 SyntaxError: Expected an identifier [test-object-expression4.js:18:3]
|
D | test-member-expression-1-expected.txt | 1 SyntaxError: Expected an identifier [test-member-expression-1.js:17:3]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/ |
D | js_pandafile_executor_test.cpp | 87 Expected<JSTaggedValue, bool> result = in HWTEST_F_L0() 123 Expected<JSTaggedValue, bool> result = in HWTEST_F_L0() 161 Expected<JSTaggedValue, bool> result = JSPandaFileExecutor::ExecuteFromBuffer( in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/test262/ |
D | harness.patch | 216 - message: `Expected no error, got ${result.error.name}: ${result.error.message}`, 217 + message: `Expected no error, but got ${result.error.name}: \n ${result.stderr}`, 226 + message: `Expected no error, but got : \n ${result.stderr}`, 234 - message: `Expected test to throw error of type ${test.attrs.negative.type}, got ${result… 235 + message: `Expected test to throw error of type ${test.attrs.negative.type}, but got ${re…
|
/arkcompiler/runtime_core/tests/verifier-tests/ |
D | bug_3228.pa | 25 ldai 0 # Expected panda.NullPointerException
|
/arkcompiler/runtime_core/tests/cts-assembly/ |
D | intrinsics-f32-01.pa | 20 fmovi v1, 0.88622695207595825 # Expected result
|