Lines Matching full:bytecode
128 bool RegExpExecutor::HandleOpChar(const DynChunk &byteCode, uint8_t opCode) in HandleOpChar() argument
132 expectedChar = byteCode.GetU32(GetCurrentPC() + 1); in HandleOpChar()
134 expectedChar = byteCode.GetU16(GetCurrentPC() + 1); in HandleOpChar()
215 void RegExpExecutor::HandleOpSaveStart(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveStart() argument
217 uint32_t captureIndex = byteCode.GetU8(GetCurrentPC() + 1); in HandleOpSaveStart()
225 void RegExpExecutor::HandleOpSaveEnd(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveEnd() argument
227 uint32_t captureIndex = byteCode.GetU8(GetCurrentPC() + 1); in HandleOpSaveEnd()
235 void RegExpExecutor::HandleOpSaveReset(const DynChunk &byteCode, uint8_t opCode) in HandleOpSaveReset() argument
237 uint32_t catpureStartIndex = byteCode.GetU8(GetCurrentPC() + SAVE_RESET_START); in HandleOpSaveReset()
238 uint32_t catpureEndIndex = byteCode.GetU8(GetCurrentPC() + SAVE_RESET_END); in HandleOpSaveReset()
248 void RegExpExecutor::HandleOpMatch(const DynChunk &byteCode, uint8_t opCode) in HandleOpMatch() argument
252 uint32_t offset = byteCode.GetU32(GetCurrentPC() + 1); in HandleOpMatch()
258 void RegExpExecutor::HandleOpSplitFirst(const DynChunk &byteCode, uint8_t opCode) in HandleOpSplitFirst() argument
260 uint32_t offset = byteCode.GetU32(GetCurrentPC() + 1); in HandleOpSplitFirst()
279 void RegExpExecutor::HandleOpLoop(const DynChunk &byteCode, uint8_t opCode) in HandleOpLoop() argument
281 uint32_t quantifyMin = byteCode.GetU32(GetCurrentPC() + LOOP_MIN_OFFSET); in HandleOpLoop()
282 uint32_t quantifyMax = byteCode.GetU32(GetCurrentPC() + LOOP_MAX_OFFSET); in HandleOpLoop()
283 uint32_t pcOffset = byteCode.GetU32(GetCurrentPC() + LOOP_PC_OFFSET); in HandleOpLoop()
306 bool RegExpExecutor::HandleOpRange32(const DynChunk &byteCode) in HandleOpRange32() argument
315 uint16_t rangeCount = byteCode.GetU16(GetCurrentPC() + 1); in HandleOpRange32()
322 …byteCode.GetU32(GetCurrentPC() + RANGE32_HEAD_OFFSET + idxMax * RANGE32_MAX_OFFSET + RANGE32_MAX_H… in HandleOpRange32()
326 low = byteCode.GetU32(GetCurrentPC() + RANGE32_HEAD_OFFSET + idx * RANGE32_MAX_OFFSET); in HandleOpRange32()
327 high = byteCode.GetU32(GetCurrentPC() + RANGE32_HEAD_OFFSET + idx * RANGE32_MAX_OFFSET + in HandleOpRange32()
349 bool RegExpExecutor::HandleOpRange(const DynChunk &byteCode) in HandleOpRange() argument
358 uint16_t rangeCount = byteCode.GetU16(GetCurrentPC() + 1); in HandleOpRange()
365 …byteCode.GetU16(GetCurrentPC() + RANGE32_HEAD_OFFSET + idxMax * RANGE32_MAX_HALF_OFFSET + RANGE32_… in HandleOpRange()
369 … low = byteCode.GetU16(GetCurrentPC() + RANGE32_HEAD_OFFSET + idx * RANGE32_MAX_HALF_OFFSET); in HandleOpRange()
371 …byteCode.GetU16(GetCurrentPC() + RANGE32_HEAD_OFFSET + idx * RANGE32_MAX_HALF_OFFSET + RANGE32_OFF… in HandleOpRange()
392 bool RegExpExecutor::HandleOpBackReference(const DynChunk &byteCode, uint8_t opCode) in HandleOpBackReference() argument
394 uint32_t captureIndex = byteCode.GetU8(GetCurrentPC() + 1); in HandleOpBackReference()
466 bool RegExpExecutor::ExecuteInternal(const DynChunk &byteCode, uint32_t pcEnd) in ExecuteInternal() argument
473 uint8_t opCode = byteCode.GetU8(GetCurrentPC()); in ExecuteInternal()
484 if (!HandleOpChar(byteCode, opCode)) { in ExecuteInternal()
509 HandleOpSaveStart(byteCode, opCode); in ExecuteInternal()
513 HandleOpSaveEnd(byteCode, opCode); in ExecuteInternal()
517 uint32_t offset = byteCode.GetU32(GetCurrentPC() + 1); in ExecuteInternal()
531 HandleOpSaveReset(byteCode, opCode); in ExecuteInternal()
536 HandleOpMatch(byteCode, opCode); in ExecuteInternal()
539 HandleOpSplitFirst(byteCode, opCode); in ExecuteInternal()
549 HandleOpLoop(byteCode, opCode); in ExecuteInternal()
559 uint32_t offset = byteCode.GetU32(GetCurrentPC() + 1); in ExecuteInternal()
573 if (!HandleOpRange32(byteCode)) { in ExecuteInternal()
579 if (!HandleOpRange(byteCode)) { in ExecuteInternal()
586 if (!HandleOpBackReference(byteCode, opCode)) { in ExecuteInternal()