source: trunk/abcl/contrib/abcl-introspect/abcl-introspect.asd @ 14934

Last change on this file since 14934 was 14934, checked in by Mark Evenson, 6 years ago

abcl-introspect: a new ABCL-CONTRIB for accessing ABCL compiler information

The ABCL compiler stores constants that are used in function execution
as private java fields. This includes symbols used to invoke function,
locally-defined functions (such as via labels or flet) and string and
other literal constants.

This file provides access to those internal values, and uses them in
at least two ways. First, to annotate locally defined functions with
the top-level function they are defined within, and second to search
for callers of a give function(*). This may yield some false
positives, such as when a symbol that names a function is also used
for some other purpose. It can also have false negatives, as when a
function is inlined. Still, it's pretty useful. The second use to to
find source locations for frames in the debugger. If the source
location for a local function is asked for the location of its 'owner'
is instead returns.

(*) Since java functions are strings, local fields also have these
strings. In the context of looking for callers of a function you can
also give a string that names a java method. Same caveat re: false

In order to record information about local functions, ABCL defines a
function-plist, which is for the most part unused, but is used here
with set of keys indicating where the local function was defined and
in what manner, i.e. as normal local function, as a method function,
or as an initarg function. There may be other places functions are
stashed away (defstructs come to mind) and this file should be added
to to take them into account as they are discovered.

This file does not depend on jss, but provides a bit of
jss-specific functionality if jss *is* loaded.

File size: 297 bytes
1;;;; -*- Mode: LISP -*-
2(in-package :cl-user)
4(asdf:defsystem :abcl-introspect
5  :author "Alan Ruttenberg"
6  :version "1.0.0"
7  :description "Introspection on compiled function to aid source location other debugging functions.ñ"
8  :depends-on ()
9  :components
10  ((:file "abcl-introspect"))
11  )
Note: See TracBrowser for help on using the repository browser.