1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
guile/module
Andy Wingo e7097386cb Fix accessor struct inlining in GOOPS
Fixes bug #17355.

* module/oop/goops.scm (memoize-effective-method!): Adapt to
  compute-effective-method change.
  (compute-effective-method, %compute-effective-method): Renamed from
  compute-cmethod; now a generic protocol.
  (compute-specialized-effective-method)
  (%compute-specialized-effective-method): New sub-protocol.
  (memoize-generic-function-application!): Adapt to call the hard-wired
  compute-applicable-methods based on the concrete arguments types --
  the semantics is that %compute-applicable-methods is the
  implementation for <generic> functions.  Perhaps we should do the same
  for sort-applicable-methods and method-more-specific?.
  (compute-getter-method, compute-setter-method): The standard
  #:procedure is now a generic slot-ref.  It wasn't valid to inline
  field access here, because subtypes could have different field
  layouts.
  (compute-applicable-methods): Refactor generic definition to use
  lexical scoping.
  (compute-specialized-effective-method): New method for
  <accessor-method>, which does field access inlining based on the
  concrete types being applied.

* test-suite/tests/goops.test ("accessor slots"): New test.
2015-01-24 18:59:15 +01:00
..
ice-9 Merge commit 'ed72201a79' 2015-01-22 14:53:06 +01:00
language The GOOPS "unbound" value is a unique pair 2015-01-23 16:16:03 +01:00
oop Fix accessor struct inlining in GOOPS 2015-01-24 18:59:15 +01:00
rnrs Merge branch 'stable-2.0' 2014-04-25 02:06:01 -04:00
scripts Merge branch 'stable-2.0' 2014-09-30 03:50:47 -04:00
srfi Merge commit '8cf2a7ba74' 2015-01-22 13:24:30 +01:00
sxml Remove duplicate definitions of call/ec' and let/ec'. 2013-04-06 15:40:19 +02:00
system Fix foreign objects for removal of getters-n-setters 2015-01-23 16:16:04 +01:00
texinfo Improve correctness and consistency of 'eval-when' usage. 2014-01-23 10:41:22 -05:00
web web: Location header is URI-reference; better URI-reference support 2014-11-01 15:36:56 +01:00
Makefile.am Fold (oop goops util) into (oop goops) 2015-01-23 16:16:02 +01:00
rnrs.scm Add missing R6RS `open-file-input/output-port' procedure 2012-11-12 20:47:57 +01:00
statprof.scm Merge commit 'cdcba5b2f6' 2015-01-22 14:37:18 +01:00
texinfo.scm texinfo: fix @url{@@} parsing 2014-11-09 15:56:33 +00:00