Rose: optimize switch-case with Labels-as-Values

This commit is contained in:
Guangqing Chen 2018-12-04 05:25:52 +08:00 committed by Chang, Harry
parent f13cbd692e
commit 922fe2ab20
4 changed files with 2722 additions and 2654 deletions

View File

@ -238,7 +238,7 @@ hwlmcb_rv_t roseProcessMatchInline(const struct RoseEngine *t,
assert(id && id < t->size); // id is an offset into bytecode
const u64a som = 0;
const u8 flags = 0;
return roseRunProgram_i(t, scratch, id, som, end, flags);
return roseRunProgram(t, scratch, id, som, end, flags);
}
static rose_inline

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -33,6 +33,7 @@
#include "rose_common.h"
#include "rose_internal.h"
#include "stream_long_lit_hash.h"
#include "util/compare.h"
#include "util/copybytes.h"
static really_inline