STCompiler optimization for loops

Project:GNU Smalltalk
Component:STInST
Category:feature
Priority:normal
Assigned:Unassigned
Status:active
Description

Here is a patch that inline to:do: and timesRepeat messages.
For the to:do: I've changed STSymbol and add kind of shadow temporaries,
thus the lookup is a bit changed.

I've tested the code, but hope you can give me feeds back!

Cheers,
Gwen

Updates

#1 submitted by Gwenael Casaccio on Sat, 02/18/2012 - 23:17
Attachment:compilerInlining.patch (9.1 KB)

The patch

#2 submitted by Paolo Bonzini on Wed, 02/22/2012 - 11:34
Title:STCompiler» STCompiler optimization for loops
Category:tasks» feature requests

The jump sizes look incorrect. The step can take more than two bytes, and so can the final backwards jump. See libgst/comp.c's compile_to_by_do and compile_times_repeat for how to do it.

#3 submitted by Gwenael Casaccio on Thu, 02/23/2012 - 15:49
Attachment:compilerInlining2.patch (9.91 KB)

Thanks, in the new version I use #displacementsToJumpAround:and:

User login