• Home
  • Raw
  • Download

Lines Matching refs:validate

37   (validate ? (condition) : [&] { \
136 template <Decoder::ValidateFlag validate>
143 index = decoder->read_u32v<validate>(pc + 1, &length, "local index"); in LocalIndexImmediate()
147 template <Decoder::ValidateFlag validate>
154 index = decoder->read_u32v<validate>(pc + 1, &length, "exception index"); in ExceptionIndexImmediate()
158 template <Decoder::ValidateFlag validate>
163 value = decoder->read_i32v<validate>(pc + 1, &length, "immi32"); in ImmI32Immediate()
167 template <Decoder::ValidateFlag validate>
172 value = decoder->read_i64v<validate>(pc + 1, &length, "immi64"); in ImmI64Immediate()
176 template <Decoder::ValidateFlag validate>
182 uint32_t tmp = decoder->read_u32<validate>(pc + 1, "immf32"); in ImmF32Immediate()
187 template <Decoder::ValidateFlag validate>
193 uint64_t tmp = decoder->read_u64<validate>(pc + 1, "immf64"); in ImmF64Immediate()
198 template <Decoder::ValidateFlag validate>
206 index = decoder->read_u32v<validate>(pc + 1, &length, "global index"); in GlobalIndexImmediate()
210 template <Decoder::ValidateFlag validate>
219 uint8_t val = decoder->read_u8<validate>(pc + 1, "block type"); in BlockTypeImmediate()
228 decoder->read_i32v<validate>(pc + 1, &length, "block arity"); in BlockTypeImmediate()
292 template <Decoder::ValidateFlag validate>
297 depth = decoder->read_u32v<validate>(pc + 1, &length, "break depth"); in BreakDepthImmediate()
301 template <Decoder::ValidateFlag validate>
309 sig_index = decoder->read_u32v<validate>(pc + 1, &len, "signature index"); in CallIndirectImmediate()
311 table_index = decoder->read_u8<validate>(pc + 1 + len, "table index"); in CallIndirectImmediate()
320 template <Decoder::ValidateFlag validate>
326 index = decoder->read_u32v<validate>(pc + 1, &length, "function index"); in CallFunctionImmediate()
330 template <Decoder::ValidateFlag validate>
335 index = decoder->read_u8<validate>(pc + 1, "memory index"); in MemoryIndexImmediate()
342 template <Decoder::ValidateFlag validate>
348 DCHECK_EQ(kExprBrTable, decoder->read_u8<validate>(pc, "opcode")); in BranchTableImmediate()
351 table_count = decoder->read_u32v<validate>(pc + 1, &len, "table count"); in BranchTableImmediate()
357 template <Decoder::ValidateFlag validate>
367 decoder_->read_u32v<validate>(pc_, &length, "branch table entry"); in next()
380 const BranchTableImmediate<validate>& imm) in BranchTableIterator()
394 template <Decoder::ValidateFlag validate>
403 decoder->read_u32v<validate>(pc + 1, &alignment_length, "alignment"); in MemoryAccessImmediate()
412 offset = decoder->read_u32v<validate>(pc + 1 + alignment_length, in MemoryAccessImmediate()
419 template <Decoder::ValidateFlag validate>
425 lane = decoder->read_u8<validate>(pc + 2, "lane"); in SimdLaneImmediate()
430 template <Decoder::ValidateFlag validate>
436 shift = decoder->read_u8<validate>(pc + 2, "shift"); in SimdShiftImmediate()
441 template <Decoder::ValidateFlag validate>
447 shuffle[i] = decoder->read_u8<validate>(pc + 2 + i, "shuffle"); in Simd8x16ShuffleImmediate()
628 F(GetLocal, Value* result, const LocalIndexImmediate<validate>& imm) \
629 F(SetLocal, const Value& value, const LocalIndexImmediate<validate>& imm) \
631 const LocalIndexImmediate<validate>& imm) \
632 F(GetGlobal, Value* result, const GlobalIndexImmediate<validate>& imm) \
633 F(SetGlobal, const Value& value, const GlobalIndexImmediate<validate>& imm) \
639 F(BrTable, const BranchTableImmediate<validate>& imm, const Value& key) \
641 F(LoadMem, LoadType type, const MemoryAccessImmediate<validate>& imm, \
643 F(StoreMem, StoreType type, const MemoryAccessImmediate<validate>& imm, \
647 F(CallDirect, const CallFunctionImmediate<validate>& imm, \
650 const CallIndirectImmediate<validate>& imm, const Value args[], \
653 F(SimdLaneOp, WasmOpcode opcode, const SimdLaneImmediate<validate>& imm, \
655 F(SimdShiftOp, WasmOpcode opcode, const SimdShiftImmediate<validate>& imm, \
657 F(Simd8x16ShuffleOp, const Simd8x16ShuffleImmediate<validate>& imm, \
659 F(Throw, const ExceptionIndexImmediate<validate>&, Control* block, \
661 F(CatchException, const ExceptionIndexImmediate<validate>& imm, \
664 const MemoryAccessImmediate<validate>& imm, Value* result)
668 template <Decoder::ValidateFlag validate>
819 inline bool Validate(const byte* pc, ExceptionIndexImmediate<validate>& imm) { in Validate()
829 inline bool Validate(const byte* pc, GlobalIndexImmediate<validate>& imm) { in Validate()
839 inline bool Complete(const byte* pc, CallFunctionImmediate<validate>& imm) { in Complete()
848 inline bool Validate(const byte* pc, CallFunctionImmediate<validate>& imm) { in Validate()
856 inline bool Complete(const byte* pc, CallIndirectImmediate<validate>& imm) { in Complete()
865 inline bool Validate(const byte* pc, CallIndirectImmediate<validate>& imm) { in Validate()
877 inline bool Validate(const byte* pc, BreakDepthImmediate<validate>& imm, in Validate()
886 bool Validate(const byte* pc, BranchTableImmediate<validate>& imm, in Validate()
897 SimdLaneImmediate<validate>& imm) { in Validate()
927 SimdShiftImmediate<validate>& imm) { in Validate()
958 Simd8x16ShuffleImmediate<validate>& imm) { in Validate()
971 inline bool Complete(BlockTypeImmediate<validate>& imm) { in Complete()
980 inline bool Validate(BlockTypeImmediate<validate>& imm) { in Validate()
997 MemoryAccessImmediate<validate> imm(decoder, pc, UINT32_MAX); in OpcodeLength()
1002 BreakDepthImmediate<validate> imm(decoder, pc); in OpcodeLength()
1007 GlobalIndexImmediate<validate> imm(decoder, pc); in OpcodeLength()
1012 CallFunctionImmediate<validate> imm(decoder, pc); in OpcodeLength()
1016 CallIndirectImmediate<validate> imm(decoder, pc); in OpcodeLength()
1024 BlockTypeImmediate<validate> imm(kAllWasmFeatures, decoder, pc); in OpcodeLength()
1030 ExceptionIndexImmediate<validate> imm(decoder, pc); in OpcodeLength()
1041 BranchTableImmediate<validate> imm(decoder, pc); in OpcodeLength()
1042 BranchTableIterator<validate> iterator(decoder, imm); in OpcodeLength()
1046 ImmI32Immediate<validate> imm(decoder, pc); in OpcodeLength()
1050 ImmI64Immediate<validate> imm(decoder, pc); in OpcodeLength()
1058 MemoryIndexImmediate<validate> imm(decoder, pc); in OpcodeLength()
1068 byte simd_index = decoder->read_u8<validate>(pc + 1, "simd_index"); in OpcodeLength()
1084 MemoryAccessImmediate<validate> imm(decoder, pc + 1, UINT32_MAX); in OpcodeLength()
1096 byte atomic_index = decoder->read_u8<validate>(pc + 1, "atomic_index"); in OpcodeLength()
1104 MemoryAccessImmediate<validate> imm(decoder, pc + 1, UINT32_MAX); in OpcodeLength()
1152 CallFunctionImmediate<validate> imm(this, pc); in StackEffect()
1157 CallIndirectImmediate<validate> imm(this, pc); in StackEffect()
1218 template <Decoder::ValidateFlag validate, typename Interface>
1219 class WasmFullDecoder : public WasmDecoder<validate> {
1233 : WasmDecoder<validate>(module, enabled, detected, body.sig, body.start, in WasmFullDecoder()
1262 WasmDecoder<validate>::DecodeLocals(this->enabled_, this, this->sig_, in Decode()
1451 BlockTypeImmediate<validate> imm(this->enabled_, this, this->pc_); in DecodeFunctionBody()
1480 BlockTypeImmediate<validate> imm(this->enabled_, this, this->pc_); in DecodeFunctionBody()
1533 BlockTypeImmediate<validate> imm(this->enabled_, this, this->pc_); in DecodeFunctionBody()
1544 BlockTypeImmediate<validate> imm(this->enabled_, this, this->pc_); in DecodeFunctionBody()
1625 BreakDepthImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1638 BreakDepthImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1652 BranchTableImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1653 BranchTableIterator<validate> iterator(this, imm); in DecodeFunctionBody()
1710 ImmI32Immediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1717 ImmI64Immediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1724 ImmF32Immediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1731 ImmF64Immediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1775 GlobalIndexImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1783 GlobalIndexImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1866 MemoryIndexImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1880 MemoryIndexImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1887 CallFunctionImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1897 CallIndirectImmediate<validate> imm(this, this->pc_); in DecodeFunctionBody()
1910 byte numeric_index = this->template read_u8<validate>( in DecodeFunctionBody()
1928 this->template read_u8<validate>(this->pc_ + 1, "simd index"); in DecodeFunctionBody()
1940 this->template read_u8<validate>(this->pc_ + 1, "atomic index"); in DecodeFunctionBody()
2061 void SetBlockType(Control* c, BlockTypeImmediate<validate>& imm) { in SetBlockType()
2124 MemoryAccessImmediate<validate> imm(this, this->pc_ + prefix_len,
2134 MemoryAccessImmediate<validate> imm(this, this->pc_ + prefix_len,
2143 SimdLaneImmediate<validate> imm(this, this->pc_); in SimdExtractLane()
2154 SimdLaneImmediate<validate> imm(this, this->pc_); in SimdReplaceLane()
2167 SimdShiftImmediate<validate> imm(this, this->pc_); in SimdShiftOp()
2177 Simd8x16ShuffleImmediate<validate> imm(this, this->pc_); in Simd8x16ShuffleOp()
2275 MemoryAccessImmediate<validate> imm( in DecodeAtomicOpcode()
2399 if (!validate) return true; in TypeCheckFallThru()
2494 static constexpr Decoder::ValidateFlag validate = Decoder::kValidate;
2497 using FullDecoder = WasmFullDecoder<validate, EmptyInterface>;