[squeak-dev] The Trunk: Morphic-ul.546.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Jun 13 10:25:24 UTC 2011


Levente Uzonyi uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ul.546.mcz

==================== Summary ====================

Name: Morphic-ul.546
Author: ul
Time: 13 June 2011, 12:22:09.329 pm
UUID: 2bf9021d-c202-7f41-9c29-7a6bac90ed2e
Ancestors: Morphic-ul.545

Use CompiledMethod >> #valueWithReceiver:arguments: instead of Object >> #withArgs:executeMethod: for evaluating a method.

=============== Diff against Morphic-ul.545 ===============

Item was changed:
  ----- Method: TextEditor>>debug:receiver:in: (in category 'do-its') -----
  debug: aCompiledMethod receiver: anObject in: evalContext
  
  	| guineaPig debugger context |
  	guineaPig := [
+ 		aCompiledMethod
+ 			valueWithReceiver: anObject
+ 			 arguments: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ]) ] newProcess.
- 		anObject "Use primitive 188, because primitive 189 escapes the debugger somehow."
- 			withArgs: (evalContext ifNil: [ #() ] ifNotNil: [ { evalContext } ])
- 			executeMethod: aCompiledMethod ] newProcess.
  	context := guineaPig suspendedContext.
  	debugger := Debugger new
  		process: guineaPig
  		controller: nil
  		context: context.
  	debugger openFullNoSuspendLabel: 'Debug it'.
  	[ debugger interruptedContext method == aCompiledMethod ]
  		whileFalse: [ debugger send ]!




More information about the Squeak-dev mailing list