Searched refs:RegExpInstruction (Results 1 - 6 of 6) sorted by relevance
/third_party/node/deps/v8/src/regexp/experimental/ |
H A D | experimental-bytecode.h | 35 // RegExpInstruction` below. Currently we support the following instructions: 94 struct RegExpInstruction { struct 110 static RegExpInstruction ConsumeRange(base::uc16 min, base::uc16 max) { in ConsumeRange() 111 RegExpInstruction result; in ConsumeRange() 117 static RegExpInstruction ConsumeAnyChar() { in ConsumeAnyChar() 121 static RegExpInstruction Fail() { in Fail() 127 static RegExpInstruction Fork(int32_t alt_index) { in Fork() 128 RegExpInstruction result; in Fork() 134 static RegExpInstruction Jmp(int32_t alt_index) { in Jmp() 135 RegExpInstruction resul in Jmp() [all...] |
H A D | experimental-bytecode.cc | 26 std::ostream& operator<<(std::ostream& os, const RegExpInstruction& inst) { in operator <<() 28 case RegExpInstruction::CONSUME_RANGE: { in operator <<() 36 case RegExpInstruction::ASSERTION: in operator <<() 59 case RegExpInstruction::FORK: in operator <<() 62 case RegExpInstruction::JMP: in operator <<() 65 case RegExpInstruction::ACCEPT: in operator <<() 68 case RegExpInstruction::SET_REGISTER_TO_CP: in operator <<() 71 case RegExpInstruction::CLEAR_REGISTER: in operator <<() 95 base::Vector<const RegExpInstruction> insts) { in operator <<() 100 const RegExpInstruction in operator <<() [all...] |
H A D | experimental-interpreter.cc | 58 base::Vector<RegExpInstruction> ToInstructionVector( in ToInstructionVector() 60 RegExpInstruction* inst_begin = in ToInstructionVector() 61 reinterpret_cast<RegExpInstruction*>(raw_bytes.GetDataStartAddress()); in ToInstructionVector() 62 int inst_num = raw_bytes.length() / sizeof(RegExpInstruction); in ToInstructionVector() 63 DCHECK_EQ(sizeof(RegExpInstruction) * inst_num, raw_bytes.length()); in ToInstructionVector() 64 return base::Vector<RegExpInstruction>(inst_begin, inst_num); in ToInstructionVector() 378 RegExpInstruction inst = bytecode_[t.pc]; in RunActiveThread() 380 case RegExpInstruction::CONSUME_RANGE: { in RunActiveThread() 384 case RegExpInstruction::ASSERTION: in RunActiveThread() 392 case RegExpInstruction in RunActiveThread() [all...] |
H A D | experimental-compiler.cc | 220 ZoneList<RegExpInstruction> IntoCode() && { return std::move(code_); } in IntoCode() 222 void Accept() { code_.Add(RegExpInstruction::Accept(), zone_); } in Accept() 225 code_.Add(RegExpInstruction::Assertion(t), zone_); in Assertion() 229 code_.Add(RegExpInstruction::ClearRegister(register_index), zone_); in ClearRegister() 233 code_.Add(RegExpInstruction::ConsumeRange(from, to), zone_); in ConsumeRange() 237 code_.Add(RegExpInstruction::ConsumeAnyChar(), zone_); in ConsumeAnyChar() 241 LabelledInstrImpl(RegExpInstruction::Opcode::FORK, target); in Fork() 245 LabelledInstrImpl(RegExpInstruction::Opcode::JMP, target); in Jmp() 249 code_.Add(RegExpInstruction::SetRegisterToCp(register_index), zone_); in SetRegisterToCp() 258 RegExpInstruction in Bind() [all...] |
H A D | experimental.cc | 89 ZoneList<RegExpInstruction> bytecode = ExperimentalRegExpCompiler::Compile( in CompileImpl() 126 base::Vector<RegExpInstruction> AsInstructionSequence(ByteArray raw_bytes) { in AsInstructionSequence() 127 RegExpInstruction* inst_begin = in AsInstructionSequence() 128 reinterpret_cast<RegExpInstruction*>(raw_bytes.GetDataStartAddress()); in AsInstructionSequence() 129 int inst_num = raw_bytes.length() / sizeof(RegExpInstruction); in AsInstructionSequence() 130 DCHECK_EQ(sizeof(RegExpInstruction) * inst_num, raw_bytes.length()); in AsInstructionSequence() 131 return base::Vector<RegExpInstruction>(inst_begin, inst_num); in AsInstructionSequence()
|
H A D | experimental-compiler.h | 28 static ZoneList<RegExpInstruction> Compile(RegExpTree* tree,
|
Completed in 4 milliseconds