[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] [PATCH 2/2] jit: Fix the bootstrap of CharacterArray
From: |
Holger Hans Peter Freyther |
Subject: |
[Help-smalltalk] [PATCH 2/2] jit: Fix the bootstrap of CharacterArray |
Date: |
Mon, 3 Jun 2013 09:38:53 +0200 |
From: Holger Hans Peter Freyther <address@hidden>
CharacterArray>>#withWindowsShellEscapes has the following code
that will lead to execution during the bootstrap. The interpreter
is optimizing the calls for >>#value: but the JIT is not doing that.
Change the order of the bootstrap to load the BlockClosure and
related classes before the CharacterArray.
table := ##(
| t |
t := ByteArray new: 256.
#($% $" $< $> $| $& $^ $ ) do: [ :each | t at: each codePoint put:
1 ].
t).
2013-06-03 Holger Hans Peter Freyther <address@hidden>
* files.c: Make BlockClosure available before the CharacterArray.
---
libgst/ChangeLog | 4 ++++
libgst/files.c | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/libgst/ChangeLog b/libgst/ChangeLog
index 031c3ea..ba0c5ff 100644
--- a/libgst/ChangeLog
+++ b/libgst/ChangeLog
@@ -1,5 +1,9 @@
2013-06-03 Holger Hans Peter Freyther <address@hidden>
+ * files.c: Make BlockClosure available before the CharacterArray.
+
+2013-06-03 Holger Hans Peter Freyther <address@hidden>
+
* xlat.c: Use jit_flush_code for the runtime code.
2013-05-18 Holger Hans Peter Freyther <address@hidden>
diff --git a/libgst/files.c b/libgst/files.c
index a7156f9..c3626ff 100644
--- a/libgst/files.c
+++ b/libgst/files.c
@@ -200,6 +200,10 @@ static const char standard_files[] = {
"CompiledBlk.st\0"
"Array.st\0"
"ByteArray.st\0"
+ "ContextPart.st\0"
+ "MthContext.st\0"
+ "BlkContext.st\0"
+ "BlkClosure.st\0"
"CharArray.st\0"
"String.st\0"
"Symbol.st\0"
@@ -225,10 +229,6 @@ static const char standard_files[] = {
"RWStream.st\0"
"UndefObject.st\0"
"ProcSched.st\0"
- "ContextPart.st\0"
- "MthContext.st\0"
- "BlkContext.st\0"
- "BlkClosure.st\0"
"Behavior.st\0"
"ClassDesc.st\0"
"Class.st\0"
--
1.7.10.4