[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] STCompiler repeats evaluation of "receiver" for Cascade
From: |
Stephen Compall |
Subject: |
[Help-smalltalk] STCompiler repeats evaluation of "receiver" for CascadeNodes |
Date: |
Thu, 28 Dec 2006 02:56:43 -0600 |
Have a look:
GNU Smalltalk ready
st> PackageLoader fileInPackage: 'Compiler'!
...
st> UndefinedObject compile: 'scTest (1 + 2) negated; yourself'!
st> (UndefinedObject >> #scTest) inspect!
An instance of CompiledMethod
header: 64
Header Flags:
flags: 0
primitive index: 0
number of arguments: 0
number of temporaries: 0
number of literals: 0
needed stack slots: 8
descriptor: a MethodInfo
byte codes: [
[1] push 1
[3] push 2
send 1 args message #+
[5] dup stack top
send 0 args message #negated
[7] pop stack top
[9] push 1
[11] push 2
send 1 args message #+
[13] send 0 args message #yourself
[15] push self
return stack top
]
I am using 2.3 on GNU/Linux x86. This does not happen for the standard
compiler.
--
Stephen Compall
http://scompall.nocandysw.com/blog
signature.asc
Description: This is a digitally signed message part
- [Help-smalltalk] STCompiler repeats evaluation of "receiver" for CascadeNodes,
Stephen Compall <=