aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-03 01:54:44 +0800
committerGitHub <noreply@github.com>2018-01-03 01:54:44 +0800
commit7d3cddf9d624d169c6667a52e8d6f313d1b30159 (patch)
tree95451cf3cee9c44a472a72a8f94a7c7c1f88694c /README.md
parent6dead95eb3e2566f157b9d776803ea8b7168356d (diff)
downloadtracifyjs-7d3cddf9d624d169c6667a52e8d6f313d1b30159.tar.gz
tracifyjs-7d3cddf9d624d169c6667a52e8d6f313d1b30159.zip
inline functions with `AST_Var` (#2688)
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.md b/README.md
index 43793dcd..d7c47d72 100644
--- a/README.md
+++ b/README.md
@@ -640,7 +640,13 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
- `if_return` (default: `true`) -- optimizations for if/return and if/continue
-- `inline` (default: `true`) -- embed simple functions
+- `inline` (default: `true`) -- inline calls to function with simple/`return` statement:
+ - `false` -- same as `0`
+ - `0` -- disabled inlining
+ - `1` -- inline simple functions
+ - `2` -- inline functions with arguments
+ - `3` -- inline functions with arguments and variables
+ - `true` -- same as `3`
- `join_vars` (default: `true`) -- join consecutive `var` statements