Lines Matching refs:streaming
5 #include "src/wasm/streaming-decoder.h"
46 size_t StreamingDecoder::DecodingState::ReadBytes(StreamingDecoder* streaming,
104 size_t ReadBytes(StreamingDecoder* streaming,
107 std::unique_ptr<DecodingState> Next(StreamingDecoder* streaming) override;
110 StreamingDecoder* streaming) = 0;
127 std::unique_ptr<DecodingState> Next(StreamingDecoder* streaming) override;
147 std::unique_ptr<DecodingState> Next(StreamingDecoder* streaming) override;
163 StreamingDecoder* streaming) override;
182 std::unique_ptr<DecodingState> Next(StreamingDecoder* streaming) override;
195 StreamingDecoder* streaming) override;
215 StreamingDecoder* streaming) override;
241 std::unique_ptr<DecodingState> Next(StreamingDecoder* streaming) override;
252 StreamingDecoder* streaming, Vector<const uint8_t> bytes) {
257 streaming->module_offset());
267 streaming->Error(decoder.toResult(nullptr));
281 StreamingDecoder::DecodeVarInt32::Next(StreamingDecoder* streaming) {
282 if (!streaming->ok()) {
289 return streaming->Error(oss.str());
292 return NextWithValue(streaming);
296 StreamingDecoder::DecodeModuleHeader::Next(StreamingDecoder* streaming) {
298 streaming->ProcessModuleHeader();
299 if (streaming->ok()) {
300 return base::make_unique<DecodeSectionID>(streaming->module_offset());
306 StreamingDecoder::DecodeSectionID::Next(StreamingDecoder* streaming) {
314 StreamingDecoder* streaming) {
316 SectionBuffer* buf = streaming->CreateNewBuffer(
322 return streaming->Error("Code section cannot have size 0");
324 streaming->ProcessSection(buf);
325 if (streaming->ok()) {
327 return base::make_unique<DecodeSectionID>(streaming->module_offset_);
344 StreamingDecoder::DecodeSectionPayload::Next(StreamingDecoder* streaming) {
346 streaming->ProcessSection(section_buffer_);
347 if (streaming->ok()) {
348 return base::make_unique<DecodeSectionID>(streaming->module_offset());
355 StreamingDecoder* streaming) {
362 return streaming->Error("Invalid code section length");
367 streaming->StartCodeSection(value_);
368 if (!streaming->ok()) return nullptr;
374 return streaming->Error("not all code section bytes were consumed");
376 return base::make_unique<DecodeSectionID>(streaming->module_offset());
382 StreamingDecoder* streaming) {
389 return streaming->Error("Invalid code section length");
394 return streaming->Error("Invalid function length (0)");
397 streaming->Error("not enough code section bytes");
403 num_remaining_functions_, streaming->module_offset());
407 StreamingDecoder::DecodeFunctionBody::Next(StreamingDecoder* streaming) {
409 streaming->ProcessFunctionBody(
412 if (!streaming->ok()) {
420 return streaming->Error("not all code section bytes were used");
422 return base::make_unique<DecodeSectionID>(streaming->module_offset());