diff options
author | Josh Haberman <jhaberman@gmail.com> | 2015-07-30 17:17:09 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2015-07-30 18:31:48 -0700 |
commit | 7dcd017f4ed829b2ea4dd2d44165cd7ef0594057 (patch) | |
tree | 391fb3deb1995429ae7184febf789b58bcbf57be /upb/pb | |
parent | abcb6428ad9bf7d650455a0a180647a05183fd9d (diff) |
Fixed PR for JIT-enabled builds.
Diffstat (limited to 'upb/pb')
-rw-r--r-- | upb/pb/decoder.c | 5 | ||||
-rw-r--r-- | upb/pb/decoder.h | 2 |
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 |