diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-01-07 14:02:19 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-01-07 14:02:19 -0800 |
commit | 7d249fbeb1ffea43e705f180a67abdfbe2fbae42 (patch) | |
tree | 789727cd4f43e381ec403c051ec861203d4a6b98 /src/relooper/Relooper.h | |
parent | 79f0cfe423103c7c857c0abc2362608d64878c13 (diff) |
add asm.js mode to relooper, for label comparisons1.2.1
Diffstat (limited to 'src/relooper/Relooper.h')
-rw-r--r-- | src/relooper/Relooper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/relooper/Relooper.h b/src/relooper/Relooper.h index 08ac8e40..eac03738 100644 --- a/src/relooper/Relooper.h +++ b/src/relooper/Relooper.h @@ -200,6 +200,9 @@ struct Relooper { // Creates an output buffer. Must call this or SetOutputBuffer. static void MakeOutputBuffer(int Size); + + // Sets asm.js mode on or off (default is off) + static void SetAsmJSMode(int On); }; typedef std::set<Block*> BlockSet; @@ -231,6 +234,7 @@ extern "C" { RELOOPERDLL_API void rl_set_output_buffer(char *buffer, int size); RELOOPERDLL_API void rl_make_output_buffer(int size); +RELOOPERDLL_API void rl_set_asm_js_mode(int on); RELOOPERDLL_API void *rl_new_block(const char *text); RELOOPERDLL_API void rl_delete_block(void *block); RELOOPERDLL_API void rl_block_add_branch_to(void *from, void *to, const char *condition, const char *code); |