/arkcompiler/ets_runtime/ecmascript/regexp/ |
H A D | regexp_opcode.h | 76 static RegExpOpCode *GetRegExpOpCode(const DynChunk &buf, int pcOffset); 78 static void DumpRegExpOpCode(std::ostream &out, const DynChunk &buf); 87 inline int GetDynChunkfSize(const DynChunk &buf) const in GetDynChunkfSize() 91 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0; 101 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 105 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 111 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 115 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 121 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 125 uint32_t DumpOpCode(std::ostream &out, const DynChunk [all...] |
H A D | regexp_opcode.cpp | 98 RegExpOpCode *RegExpOpCode::GetRegExpOpCode(const DynChunk &buf, int pc) in GetRegExpOpCode() 113 void RegExpOpCode::DumpRegExpOpCode(std::ostream &out, const DynChunk &buf) in DumpRegExpOpCode() 123 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 131 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 138 uint32_t SaveEndOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 146 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 153 uint32_t CharOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 161 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 168 uint32_t Char32OpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 175 uint32_t Char32OpCode::DumpOpCode(std::ostream &out, const DynChunk [all...] |
H A D | regexp_executor.h | 61 bool ExecuteInternal(const DynChunk &byteCode, uint32_t pcEnd); 98 inline bool HandleOpChar(const DynChunk &byteCode, uint8_t opCode) in HandleOpChar() 173 inline void HandleOpSaveStart(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveStart() 185 inline void HandleOpSaveEnd(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveEnd() 197 inline void HandleOpSaveReset(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveReset() 216 inline void HandleOpMatch(const DynChunk &byteCode, uint8_t opCode) in HandleOpMatch() 226 inline void HandleOpSplitFirst(const DynChunk &byteCode, uint8_t opCode) in HandleOpSplitFirst() 247 inline void HandleOpLoop(const DynChunk &byteCode, uint8_t opCode) in HandleOpLoop() 275 inline bool HandleOpRange32(const DynChunk &byteCode) in HandleOpRange32() 321 inline bool HandleOpRange(const DynChunk [all...] |
H A D | regexp_parser.h | 112 void ParseNonemptyClassRangesNoDash(DynChunk *buffer); 303 DynChunk buffer_; 304 DynChunk groupNames_;
|
H A D | regexp_executor.cpp | 23 DynChunk buffer(buf, chunk_); in Execute() 81 bool RegExpExecutor::ExecuteInternal(const DynChunk &byteCode, uint32_t pcEnd) in ExecuteInternal()
|
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/ |
H A D | regexp_opcode.h | 73 static RegExpOpCode *GetRegExpOpCode(const DynChunk &buf, int pcOffset); 75 static void DumpRegExpOpCode(std::ostream &out, const DynChunk &buf); 84 inline int GetDynChunkfSize(const DynChunk &buf) const in GetDynChunkfSize() 88 virtual uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const = 0; 98 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 102 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 108 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 112 uint32_t DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const override; 118 uint32_t EmitOpCode(DynChunk *buf, uint32_t para) const; 122 uint32_t DumpOpCode(std::ostream &out, const DynChunk [all...] |
H A D | regexp_opcode.cpp | 92 RegExpOpCode *RegExpOpCode::GetRegExpOpCode(const DynChunk &buf, int pc) in GetRegExpOpCode() 107 void RegExpOpCode::DumpRegExpOpCode(std::ostream &out, const DynChunk &buf) in DumpRegExpOpCode() 117 uint32_t SaveStartOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 125 uint32_t SaveStartOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 132 uint32_t SaveEndOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 140 uint32_t SaveEndOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 147 uint32_t CharOpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 155 uint32_t CharOpCode::DumpOpCode(std::ostream &out, const DynChunk &buf, uint32_t offset) const in DumpOpCode() 162 uint32_t Char32OpCode::EmitOpCode(DynChunk *buf, uint32_t para) const in EmitOpCode() 169 uint32_t Char32OpCode::DumpOpCode(std::ostream &out, const DynChunk [all...] |
H A D | regexp_executor.h | 72 bool ExecuteInternal(const DynChunk &byteCode, uint32_t pcEnd); 102 inline bool HandleOpChar(const DynChunk &byteCode, uint8_t opCode) in HandleOpChar() 187 inline void HandleOpSaveStart(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveStart() 197 inline void HandleOpSaveEnd(const DynChunk &byteCode, uint8_t opCode) 207 inline void HandleOpSaveReset(const DynChunk &byteCode, uint8_t opCode) 220 inline void HandleOpMatch(const DynChunk &byteCode, uint8_t opCode) 230 inline void HandleOpSplitFirst(const DynChunk &byteCode, uint8_t opCode) 251 inline void HandleOpLoop(const DynChunk &byteCode, uint8_t opCode) 278 inline bool HandleOpRange32(const DynChunk &byteCode) 322 inline bool HandleOpRange(const DynChunk [all...] |
H A D | regexp_parser.h | 86 void ParseNonemptyClassRangesNoDash(DynChunk *buffer); 236 DynChunk buffer_ {}; 237 DynChunk groupNames_ {};
|
H A D | regexp_executor.cpp | 26 DynChunk buffer(buf); in Execute() 107 bool RegExpExecutor::ExecuteInternal(const DynChunk &byteCode, uint32_t pcEnd) in ExecuteInternal() 529 bool RegExpExecutor::HandleOpBackReference(const DynChunk &byteCode, uint8_t opCode) in HandleOpBackReference()
|
/arkcompiler/ets_runtime/ecmascript/regexp/tests/ |
H A D | dyn_chunk_test.cpp | 56 DynChunk dynChunk = DynChunk(chunk_); in HWTEST_F_L0() 61 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in HWTEST_F_L0() 74 DynChunk dynChunk = DynChunk(chunk_); in HWTEST_F_L0() 78 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in HWTEST_F_L0() 88 DynChunk dynChunk = DynChunk(chunk_); in HWTEST_F_L0() 91 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in HWTEST_F_L0()
|
/arkcompiler/runtime_core/static_core/runtime/tests/ |
H A D | dyn_buffer_test.cpp | 53 DynChunk dynChunk = DynChunk(); in TEST_F() 61 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in TEST_F() 74 DynChunk dynChunk = DynChunk(); in TEST_F() 79 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in TEST_F() 89 DynChunk dynChunk = DynChunk(); in TEST_F() 92 ASSERT_EQ(dynChunk.GetAllocatedSize(), DynChunk::ALLOCATE_MIN_SIZE); in TEST_F()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | dyn_chunk.cpp | 21 int DynChunk::Expand(size_t newSize) in Expand() 54 int DynChunk::Insert(uint32_t position, size_t len) in Insert() 71 int DynChunk::Emit(const uint8_t *data, size_t length) in Emit() 87 int DynChunk::EmitChar(uint8_t c) in EmitChar() 92 int DynChunk::EmitSelf(size_t offset, size_t length) in EmitSelf() 110 int DynChunk::EmitStr(const char *str) in EmitStr()
|
H A D | dyn_chunk.h | 26 class PUBLIC_API DynChunk { class 31 explicit DynChunk(Chunk *chunk) : chunk_(chunk) in DynChunk() function in panda::ecmascript::DynChunk 36 ~DynChunk() = default; 38 NO_COPY_SEMANTIC(DynChunk); 39 NO_MOVE_SEMANTIC(DynChunk); 132 return MEMBER_OFFSET(DynChunk, buf_); in GetBufferOffset() 149 DynChunk(uint8_t *buf, RegExpCachedChunk *regExpCachedChunk) : buf_(buf), regExpCachedChunk_(regExpCachedChunk) in DynChunk() function in panda::ecmascript::DynChunk
|
/arkcompiler/runtime_core/static_core/runtime/regexp/ecmascript/mem/ |
H A D | dyn_chunk.cpp | 21 int DynChunk::Expand(size_t newSize) in Expand() 53 int DynChunk::Insert(uint32_t position, size_t len) in Insert() 70 int DynChunk::Emit(const uint8_t *data, size_t length) in Emit() 86 int DynChunk::EmitChar(uint8_t c) in EmitChar() 91 int DynChunk::EmitSelf(size_t offset, size_t length) in EmitSelf() 109 int DynChunk::EmitStr(const char *str) in EmitStr()
|
H A D | dyn_chunk.h | 42 class DynChunk { class 48 explicit DynChunk() = default; 50 ~DynChunk() in ~DynChunk() 57 NO_COPY_SEMANTIC(DynChunk); 58 NO_MOVE_SEMANTIC(DynChunk); 145 return MEMBER_OFFSET(DynChunk, buf_); in GetBufferOffset() 157 explicit DynChunk(uint8_t *buf) : buf_(buf), isInternalBuffer_(true) {}; in DynChunk() function in ark::DynChunk
|
/arkcompiler/ets_runtime/ecmascript/compiler/assembler/ |
H A D | assembler.h | 306 DynChunk buffer_;
|