summaryrefslogtreecommitdiff
path: root/upb/pb
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-07-30 17:17:09 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-07-30 18:31:48 -0700
commit7dcd017f4ed829b2ea4dd2d44165cd7ef0594057 (patch)
tree391fb3deb1995429ae7184febf789b58bcbf57be /upb/pb
parentabcb6428ad9bf7d650455a0a180647a05183fd9d (diff)
Fixed PR for JIT-enabled builds.
Diffstat (limited to 'upb/pb')
-rw-r--r--upb/pb/decoder.c5
-rw-r--r--upb/pb/decoder.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/upb/pb/decoder.c b/upb/pb/decoder.c
index 34aed1f..b624812 100644
--- a/upb/pb/decoder.c
+++ b/upb/pb/decoder.c
@@ -913,10 +913,11 @@ bool upb_pbdecoder_end(void *closure, const void *handler_data) {
d->top->end_ofs = end;
#ifdef UPB_USE_JIT_X64
- if (method->group->jit_code) {
+ if (method->is_native_) {
+ const mgroup *group = (const mgroup*)method->group;
if (d->top != d->stack)
d->stack->end_ofs = 0;
- method->group->jit_code(closure, method->code_base.ptr, &dummy, 0, NULL);
+ group->jit_code(closure, method->code_base.ptr, &dummy, 0, NULL);
} else
#endif
{
diff --git a/upb/pb/decoder.h b/upb/pb/decoder.h
index f28e5e6..65316b4 100644
--- a/upb/pb/decoder.h
+++ b/upb/pb/decoder.h
@@ -92,7 +92,7 @@ class upb::pb::DecoderMethod {
* constructed. This hint may be an overestimate for some build configurations.
* But if the decoder library is upgraded without recompiling the application,
* it may be an underestimate. */
-#define UPB_PB_DECODER_SIZE 4400
+#define UPB_PB_DECODER_SIZE 4408
#ifdef __cplusplus
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback