diff options
| Commit | 156d0957c1b36bba2685fef548a8573e9337309a (patch) | |
|---|---|---|
| Author | 2018-11-18 23:01:20 +0200 | |
| Committer | 2018-11-18 23:01:20 +0200 | |
| Files | 3a882d71f65d8b5c129e348985c2c1a4fe70a031 /JSImpl/src/ByteCodeGenerator.h | |
| IPL-156d0957c1b36bba2685fef548a8573e9337309a.tar IPL-156d0957c1b36bba2685fef548a8573e9337309a.tar.gz IPL-156d0957c1b36bba2685fef548a8573e9337309a.zip | ||
| Parent | a5ebf986574bdcdad968962751d9ab8dbe90980d (diff) | |
| Parent | 12232668d931b0f3593807d2096a2c2f26844b0b (diff) | |
Merge branch 'master' into json-to-ast
1 files changed, 11 insertions, 1 deletions
| -rw-r--r-- | JSImpl/src/ByteCodeGenerator.h | 12 |
diff --git a/JSImpl/src/ByteCodeGenerator.h b/JSImpl/src/ByteCodeGenerator.h index a619603..4a1d521 100644 --- a/JSImpl/src/ByteCodeGenerator.h +++ b/JSImpl/src/ByteCodeGenerator.h @@ -2,5 +2,15 @@ #include "Expression.h" +struct ByteCodeGeneratorOptions +{ + enum OptimizationsType + { + None + }; + ByteCodeGeneratorOptions(OptimizationsType o = None, bool debug = false) : Optimisations(o), AddDebugInformation(debug) {} + OptimizationsType Optimisations; + bool AddDebugInformation; +}; -IPLString GenerateByteCode(ExpressionPtr program); +IPLString GenerateByteCode(ExpressionPtr program, const IPLString& source, const ByteCodeGeneratorOptions& options = ByteCodeGeneratorOptions()); |
