diff options
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()); |
