From d8b215486245e84e33283b6047fb253bbb418e00 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 17 Feb 2011 23:07:17 -0800 Subject: First version of an assembly language decoder. It is slower than the C decoder for now because it falls off the fast path too often. But it can successfully decode varints, fixed32 and fixed64. --- src/upb_decoder.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/upb_decoder.h') diff --git a/src/upb_decoder.h b/src/upb_decoder.h index 5662c9c..d0848f8 100644 --- a/src/upb_decoder.h +++ b/src/upb_decoder.h @@ -70,6 +70,8 @@ struct _upb_decoder { // Msgdef for the current level. upb_msgdef *msgdef; + + size_t bytes_parsed_fast, bytes_parsed_slow; }; // A upb_decoder decodes the binary protocol buffer format, writing the data it -- cgit v1.2.3