Commit Graph

27 Commits

Author SHA1 Message Date
Chris Frisz
477698d4a8 Fix profile counters for non-s-expression source
Check both the beginning file pointer (bfp) and end file pointer (efp)
of the source location associated with a profile counter when updating
its count.

Assuming that each expression has a unique bfp with respect to profiling
seems to give accurate execution counts for s-expression-based source
locations as in Scheme, but causes problems when targeting other kinds
of syntax. For instance, a C-style function call, referencing the called
function by name, such as "fn(arg)", can logically have profile counters
associated with 1) the function name reference ("fn") and 2) the entire
function call expression ("fn(arg)"), both of which begin at the same
source location. Only the bfp is checked when updating profile counters,
so the two source locations are conflated, and only one counter is
incremented, which gives inaccurate execution counts for both locations;
approximately twice as many for one, and zero for the other.

original commit: d364b05c3c9cd2b299fc20a6f5ec255ab7bd6718
2016-11-02 15:14:34 -04:00
dybvig
0bd87e4c4d - added tests for the case and exclusive-cond syntax-error calls
4.ms, root-experr-compile-0-f-f-f
- added print-extended-identifier parameter.  when #t, symbols like
  1+ and +++ print without escapes.
    priminfo.ss, print.ss,
    6.ms

original commit: 603019ea82afda1926462214576ef92df15e43c8
2016-08-22 21:41:53 -04:00
Gavin Whelan
339e25d47e - fixed a bug in case and exclusive-cond syntax-error calls causing an
exception in syntax-error instead of the intended error message.
    s/syntax.ss

original commit: 17a5c5d27b02b7c4a1edc5ee36a6aa43de62c4cb
2016-08-21 23:38:57 -04:00
dybvig
7bc1af89c8 - instead of default-exception handler, new-cafe establishes a handler
that calls the current value of base-exception-handler so the handler
  can be overridden, as we do in our own make files.
    cafe.ss,
    7.ms

original commit: 99b763e30d22b205106ef9a84ea2e0a928fd0b30
2016-08-21 10:54:26 -04:00
dybvig
ca1560f4d0 - fixed a side-effect preservation bug with non-trivial test-context
not-like patterns.
    cp0.ss,
    cp0.ms, 4.ms

original commit: 5626f4433d886c43d40b4ec4fedc8b34fa6d0bb2
2016-08-14 10:19:22 -04:00
dybvig
35eaa9feff - fixed a bug in cpvalid resulting in it leaving behind a cpvalid-defer
form for later passes to choke on.  also fixed cp0 to print the correct
  name for cpvalid when it does this.
    cpvalid.ss, cp0.ss,
    misc.ms
- updated the prototype for s_ee_write_char to match the definition
    expeditor.c
- updated LOG and release_notes
- rebuilt boot files due to s-directory changes

original commit: 50aa8b34774a9e65e96481ae329a3f329fad7aca
2016-08-07 23:36:40 -04:00
Andy Keep
88e29168b8 Merge branch 'master' of github.com:cisco/chezscheme
original commit: feea4550cc6818b529ceb808c6a31a244a6a227b
2016-07-31 22:10:26 -04:00
dybvig
fde2de6249 Merge branch 'master' of git://github.com/michaellenaghan/ChezScheme into michaellenaghan-master
original commit: cdb20639749b7a38f85629a1db46b29624a588ad
2016-07-30 14:36:14 -04:00
Jason Felice
14aadeab83 - add unicode support to the expression editor. entry and display now work
except that combining characters are not treated correctly for
  line-wrapping.  this addresses github issue #32 and part of issue #81.
    c/expeditor.c, s/expeditor.ss

original commit: 87d4811781d7e9183f7710aa6a809b850a38454f
2016-07-20 21:54:50 -04:00
Bob Burger
6f820db2d8 s/Mf-base now uses ../bin/$m/scheme instead of symbolic link ../bin/scheme
original commit: a6643352fb9d675d4321acda0c4a540081e65ea2
2016-06-28 14:32:08 -04:00
Bob Burger
39410c8447 - Cygwin is now used on Windows, updated mats, eliminated unused killme
- added a cast to eliminate warnings in c/number.c
- fixed bug in Windows version of directory-separator-predicate in s/6.ss when path-* procedures are passed a path that is not a string.
- fixed bug in s/cp0.ss on Windows with $foreign-wchar?.
- fixed spelling of non-existent

original commit: dd1b741f7572cb0d5a6210c7c796aee7c4026040
2016-06-10 10:07:07 -04:00
Michael Lenaghan
625630f33c Merge branch 'master' of https://github.com/cisco/ChezScheme
original commit: 6c85ff64a44035a184ce20a84a9bd017e7abfa45
2016-05-17 12:54:29 -04:00
Michael Lenaghan
4981f21c59 Continue the refresh of the profiler's HTML output.
* Add some simple reset CSS

 * Add some simple base CSS (which includes making the default font family "monospace")

 * Change the header on the Profile page

 * Add a header to the source file pages

 * Desaturate the default profile palette

 * Make various other small tweaks, e.g.:

    * Change sizing from em's to rem's
    * Change H3s to H1s and Ps to H2s
    * Change   to padding
    * etc.

 * Update csug with the new default profile palette and some new screenshots (and change occurrences of "css" to "CSS")

original commit: f7d7109de6845f6e91d4a7d77063d46e7e0dff3f
2016-05-17 12:41:36 -04:00
dybvig
aa62ffb153 * updated version to 9.4.1
bintar BUILDING NOTICE makefiles/Mf-install.in scheme.1.in
    c/Makefile.i3nt c/Makefile.a6nt c/Makefile.ti3nt c/Makefile.ta6nt
    mats/bldnt.bat workarea c/scheme.rc s/7.ss s/cmacros.ss
    release_notes/release_notes.stex csug/csug.stex

original commit: f0c9a4fbc082fa17c5bd3bd06d82365e77edc86b
2016-05-17 00:18:33 -04:00
dybvig
9e062e2510 Merge branch 'master' of git://github.com/michaellenaghan/ChezScheme into michaellenaghan-master
original commit: 61f7f6a29612a6e8908dfc3358dc192c11ba4cb8
2016-05-16 15:31:41 -04:00
Andy Keep
73ecb0cd4b - updated the Windows makefiles for building and testing to remove links for
files that no longer exist, which was getting in the way of creating links
  for files that do exist.  Also updated the build batch file for Windows to
  compile the nanopass framework separately before building the rest of the
  scheme compiler and libraries.
    s/Mf-{a6,i3,ta6,ti3}nt, s/bldnt.bat,
    mats/Mf-{a6,i3,ta6,ti3}nt
- updated the read me to include a link to the Chez Scheme project page.
    README.md

original commit: 969fbf3b69f4ac9729847bae80dab92464b6d08c
2016-05-16 14:42:33 -04:00
Michael Lenaghan
81ed605baf Begin a refresh of the profiler's HTML output.
* Mark the files as HTML5 rather than HTML4.

 * Use target attributes rather than onclick events to open links in specific windows.

 * Add a missing table row element.

 * Replace the deprecated name attribute with an id attribute (and replace the anchors with spans).

 * Replace the deprecated valign attribute with a style attribute.

original commit: bcaba9db283693ee6d4e79e82ba0ff60ee90ba5c
2016-05-13 15:15:45 -04:00
Bob Burger
4750828c26 fixed misspellings in comments
original commit: 44370695fbfe86fbf1cd5dd115a2289626604796
2016-05-13 08:49:00 -04:00
Michael Lenaghan
7b6d8b228d Fix a minor inconsistency.
(Note that nonzero/non-zero is also inconsistent but was not fixed.)

original commit: 1715ba8c0f423ea96bdbc58e287da7db18a19c01
2016-05-12 19:57:24 -04:00
dybvig
9c1721c466 - compile-whole-program and compile-whole-library now copy the hash-bang
line from the wpo file (if it has one) to the object file.
    compile.ss,
    7.ms
- stex is now a submodule.  csug/Makefile and release_notes/Makefile
  set and use the required Scheme and STEXLIB variables accordingly.
  they default the machine type to a6le, but this can be overridden
  and is by the generated top-level Makefile.  the generated top-level
  Makefile now has a new docs target that runs make in both csug and
  release_notes, and an updated distclean target that cleans the same.
  the annoying csug Makefile .fig.pdf rule redefinition is now gone.
  copyright.stex and csug.stex now list May 2016 as the revision month
  and date; this will have to be updated for future releases.
    configure, makefiles/Makefile.in,
    csug/Makefile, copyright.stex, csug.stex,
    release_notes/Makefile
- rebuilt the boot files

original commit: 4bd78a692dd4ca2f88af5d404fd0993a2d141e7b
2016-05-04 20:35:38 -04:00
dybvig
5299f8c14e minor edits to to strnum.ss comments and LOG. rebuilt boot files.
original commit: 57a32da75084ff7baf5f6f290c1b0afc75230756
2016-05-01 21:33:49 -04:00
dybvig
83f6c935e9 Merge branch 'master' of github.com:cisco/chezscheme
original commit: f5a668eeb104edb70c0188c15c2588b3618e0470
2016-05-01 16:08:02 -04:00
dybvig
bf38db8ed9 - modified floatify_normalize to properly round denormalized results and
obviated scale_float in the process.
    number.c,
    ieee.ms
- fixed 0eNNNN for large NNNN to produce 0.0 rather than infinity
    strnum.ss,
    5_3.ms
- the reader now raises an exception with condition type implementation
  restriction (among the other usual lexical condition types), and
  string->number now raises #f, for #e<m>@<a>, where <m> and <a> are
  nonzero integers, since Chez Scheme can't represent polar numbers other
  than 0@<a> and <m>@0 exactly.  <m>@<a> still produces an inexact result,
  i.e., we're still extending the set of inexact numeric constants beyond
  what R6RS dictates.  doing this required a rework of $str->num, which
  turned into a fairly extensive rewrite that fixed up a few other minor
  issues (like r6rs:string->number improperly allowing 1/2e10) and
  eliminated the need for consumers to call $str->num twice in cases
  where it actually produces a number.  added some related new tests,
  including several found lacking by profiling.  added a couple of
  checks to number->string whose absence was causing argument errors to
  be reported by other routines.
    strnum.ss, exceptions.ss, read.ss
    5_3.ms, 6.ms, root-experr*, patch*
- added pdtml flag, which if set to t causes profile-dump-html to be
  called at the end of a mat run.
    mats/Mf-base

original commit: 03f2fe86171b0fd096238280b351ce365c701450
2016-05-01 16:05:40 -04:00
Virgil Hou
1e9941edee - fixed incorrect handling of library-extension when searching wpo files
compile.ss

original commit: 4c0726f7174ca2cdb6d1c5862da88fad6d10c840
2016-05-01 15:00:27 +08:00
Bruce Mitchener
0f8d2e6998 Fix typos involving articles.
original commit: 1ada02cc4cadc6b9a7b2b2da4dd326fb0e7518f6
2016-04-28 11:01:10 +07:00
Kent Dybvig
6765641be0 - The scheme.h definition of Sfixnum(x) now uses multiply rather than
left shift to avoid counting on the behavior of << on negative numbers,
  which is undefined in C.
    mkheader.ss
- Fixed a couple of casts, one harmless and the other causing
  Sinteger64_value to return 0 for the most-negative I64 on 32-bit
  builds.
    number.c
- The configure-generated Makefile distclean target no longer removes
  zlib and nanopass, since they are logically part of the git clone.
  It does run make distclean in zlib.
    makefiles/Makefile.in

original commit: 42e6fed96d69fa17cfcd9cdcec101aaa36ba4512
2016-04-26 17:16:02 -04:00
dyb
1356af91b3 initial upload of open-source release
original commit: 47a210c15c63ba9677852269447bd2f2598b51fe
2016-04-26 10:04:54 -04:00