Skip to content
Snippets Groups Projects
Commit ef829f5c authored by gerd's avatar gerd
Browse files

Suppress slot access and gf-call optimizations for method

	parameters that are being assigned to in the method body.
	Reported by Hans Chalupsky on cmucl-imp.

	* src/pcl/boot.lisp (method-parameter): New function, extracted
	from make-pv-call.
	(assigned-method-params): New function.
	(make-method-lambda-internal): Call it to disable optimizations
	on method parameters being assigned to.

	* src/pcl/method-slot-access-optimization.lisp
	(get-param/class-to-optimize): Use new function method-parameter.
	* src/pcl/gf-call-optimization.lisp (make-pv-call): Ditto.

	* src/pcl/std-class.lisp (ensure-class-using-class): Don't setq
	a method parameter.
parent 484c3af4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment