From 864d24d70e51bb27d5789f4e4d7845576bdf33da Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Fri, 10 Aug 2018 08:42:13 +0200 Subject: [PATCH] change the VM's max instruction count to 3_000_000 --- changelog.md | 2 +- compiler/vmdef.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index a77c5763197c4..f06041b344555 100644 --- a/changelog.md +++ b/changelog.md @@ -185,7 +185,7 @@ ### Compiler changes -- The VM's instruction count limit was raised to 1 billion instructions in +- The VM's instruction count limit was raised to 3 million instructions in order to support more complex computations at compile-time. - Support for hot code reloading has been implemented for the JavaScript diff --git a/compiler/vmdef.nim b/compiler/vmdef.nim index 50235c95f5930..1abd9ae4ada73 100644 --- a/compiler/vmdef.nim +++ b/compiler/vmdef.nim @@ -17,7 +17,7 @@ const byteExcess* = 128 # we use excess-K for immediates wordExcess* = 32768 - MaxLoopIterations* = 1_000_000_000 # max iterations of all loops + MaxLoopIterations* = 3_000_000 # max iterations of all loops type