Increase the size of the code cache.
authorRoberto Raggi <roberto.raggi@nokia.com>
Mon, 11 Jun 2012 07:32:00 +0000 (09:32 +0200)
committerRoberto Raggi <roberto.raggi@nokia.com>
Mon, 11 Jun 2012 07:32:00 +0000 (09:32 +0200)
This is just a temporary hack, we can't continue to use
a contiguous region of memory to store the code.

main.cpp

index 06e9f2d903863f3a09912eafafdbaa3bb96d79ff..4d277bc53923712339c11e7d40ea509f2ca5b74b 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -177,7 +177,7 @@ void evaluate(QQmlJS::VM::ExecutionEngine *vm, const QString &fileName, const QS
     IR::Module module;
     IR::Function *globalCode = 0;
 
-    const size_t codeSize = 30 * getpagesize();
+    const size_t codeSize = 400 * getpagesize();
     uchar *code = (uchar *) malloc(codeSize);
     assert(! (size_t(code) & 15));