3 2002-05-24 Shelley A Sheridan <sheridan@apple.com>
9 2002-05-23 Shelley A Sheridan <sheridan@apple.com>
17 === JavaScriptCore-5 ===
19 2002-05-21 Maciej Stachowiak <mjs@apple.com>
21 Reviewed by: Richard Williamson
23 Fixed Radar 2928775 - Sherlock crashes sitting in stocks channel
26 (InterpreterImp::InterpreterImp): Set the interp pointer earlier,
27 in case garbage collection takes place while creating the global
30 2002-05-15 Darin Adler <darin@apple.com>
32 Reviewed by: Maciej Stachowiak
35 Use all-am and clean-am instead of all and clean because it's better and
36 to make "make check" at the top level work right.
38 2002-05-13 Darin Adler <darin@apple.com>
40 Reviewed by: Maciej Stachowiak
42 * kjs/value.h: Fix comment typos.
44 === JavaScriptCore-4 ===
46 2002-05-10 Maciej Stachowiak <mjs@apple.com>
48 Reviewed by: Ken Kocienda and Darin Adler
50 Fixed the following bug:
52 Radar 2890573 - JavaScriptCore needs to be thread-safe
54 Actually this is only a weak form of thread-safety - you can safely
55 use different interpreters from different threads at the same
56 time. If you try to use a single interpreter object from multiple
57 threads, you need to provide your own locking.
59 * kjs/collector.h, kjs/collector.cpp:
60 (Collector::lock, Collector::unlock): Trivial implementation of a
62 (Collector::allocate): Lock around the body of this function.
63 (Collector::collect): Likewise.
64 (Collector::finalCheck): Likewise.
65 (Collector::numInterpreters): Likewise.
66 (Collector::numGCNotAllowedObjects): Likewise.
67 (Collector::numReferencedObjects): Likewise.
69 (Parser::parse): use a mutex to lock around the whole parse, since
70 it uses a bunch of global state.
71 (InterpreterImp::InterpreterImp): Grab the Collector lock here,
72 both the mutually exclude calls to the body of this function, and
73 to protect the s_hook static member which the collector pokes at.
74 (InterpreterImp::clear): Likewise.
76 (statBufferKeyCleanup, statBufferKeyInit, UString::ascii): Convert
77 use of static variable
79 (ValueImp::ValueImp, ValueImp::mark, ValueImp::marked,
80 ValueImp::setGcAllowed): Grab the GC lock around any flag changes.
84 2002-05-08 Darin Adler <darin@apple.com>
88 (Collector::numInterpreters):
89 (Collector::numGCNotAllowedObjects):
90 (Collector::numReferencedObjects):
91 Add three new functions so we can see a bit more about leaking JavaScriptCore.
93 2002-05-06 Darin Adler <darin@apple.com>
95 * JavaScriptCorePrefix.h: Added.
96 * JavaScriptCore.pbproj/project.pbxproj: Use PFE precompiling.
97 Also switch from xNDEBUG to NDEBUG.
99 === Alexander 0.3c2 (v1) ===
101 2002-04-18 Darin Adler <darin@apple.com>
103 * JavaScriptCore.pbproj/project.pbxproj: Oops. Take out -Wstrict-prototypes, put back
104 -Wmissing-prototypes.
106 2002-04-18 Darin Adler <darin@apple.com>
108 * JavaScriptCore.pbproj/project.pbxproj: Take out -Wmissing-prototypes
109 because system headers are triggering it when we don't have
110 precompiled headers on.
112 2002-04-18 Darin Adler <darin@apple.com>
116 * JavaScriptCore.pbproj/project.pbxproj: Turn on gcc3 and the same set of warnings
117 as in the rest of Labyrinth (see top level ChangeLog for details).
119 2002-04-17 Maciej Stachowiak <mjs@apple.com>
121 Reviewed by: Darin Adler <darin@apple.com>
123 * kjs/testkjs.cpp: Don't include <iostream.h> to avoid gcc3
126 2002-04-15 Darin Adler <darin@apple.com>
128 Reviwed by: Maciej Stachowiak <mjs@apple.com>
131 * kjs/property_map.cpp:
133 Removed some unneeded <config.h> includes so we are more similar
134 to the real KDE sources.
136 2002-04-15 Darin Adler <darin@apple.com>
138 Reviwed by: Maciej Stachowiak <mjs@apple.com>
140 Merged changes from KDE 3.0 final and did some build fixes.
142 * JavaScriptCore.pbproj/project.pbxproj: Added nodes2string.cpp.
144 * kjs/grammar.*: Regenerated.
145 * kjs/*.lut.h: Regenerated.
147 2002-04-08 Darin Adler <darin@apple.com>
149 Reviwed by: Maciej Stachowiak <mjs@apple.com>
151 * JavaScriptCore.pbproj/project.pbxproj: Re-added -Wno-format-y2k.
153 2002-04-04 Darin Adler <darin@apple.com>
155 * JavaScriptCore.pbproj/project.pbxproj: Add an Unoptimized build
156 style: exactly like Development except without the -O.
158 2002-04-03 Darin Adler <darin@apple.com>
160 * kjs/Makefile.am: Gratuitous cleanup.
162 2002-04-02 Darin Adler <darin@apple.com>
164 * JavaScriptCore.pbproj/project.pbxproj: Update flags as I did for
167 2002-04-02 Maciej Stachowiak <mjs@apple.com>
169 * JavaScriptCore.pbproj/project.pbxproj: Pass -Wno-format-y2k so
170 the project builds with gcc3.
172 * kjs/nodes.cpp: Avoid including an obsolete header to avoid
175 2002-04-02 Darin Adler <darin@apple.com>
177 * kjs/property_map.cpp: (PropertyMap::~PropertyMap): Deallocate the
178 map by calling clear so we don't leak the entire map.
180 2002-04-02 Darin Adler <darin@apple.com>
182 * kjs/internal.cpp: (InterpreterImp::globalClear): Add code to
183 deallocate and null out emptyList, because once the last interpreter
184 is destroyed there's nothing to keep it from being garbage collected.
186 2002-04-01 Darin Adler <darin@apple.com>
188 Got rid of KWQDef.h because it's dangerous to have two files with
189 the same name and different contents.
191 * JavaScriptCore.pbproj/project.pbxproj:
192 * kjs/KWQDef.h: Removed.
193 * kjs/ustring.h: Defines unsigned int types inline now.
195 2002-03-30 Maciej Stachowiak <mjs@apple.com>
197 Fixed Radar 2891272 (JavaScript crashes loading quicktime.com and
200 * kjs/object.cpp: (ObjectImp::~ObjectImp): Don't call setGCAlloc
201 on object internals pointed to, because they may have already been
202 collected by the time this object is collected, and in that case
203 we would corrupt the malloc arena.
205 * Makefile.am: Make the stamp file depend on all the sources and
206 headers so the framework gets rebuilt properly.
208 * JavaScriptCore.pbproj/project.pbxproj: Some random numbers moved
209 around. No idea what I really changed.
211 2002-03-30 Darin Adler <darin@apple.com>
213 * kjs/grammar.y: Took out Id tag so we won't constantly need to
215 * kjs/grammar.cpp: Regenerated without Id tag.
217 * .cvsignore: Ignore some additional autogenerated files.
218 * kjs/.cvsignore: Ignore some additional autogenerated files.
220 2002-03-30 Maciej Stachowiak <mjs@apple.com>
222 * JavaScriptCore.pbproj/project.pbxproj: Install some of the
225 2002-03-30 Maciej Stachowiak <mjs@apple.com>
227 Converted JavaScriptCore to build with Project Builder, in
228 preparation for B&I submission.
230 * English.lproj/InfoPlist.strings: Added.
231 * JavaScriptCore.pbproj/.cvsignore: Added.
232 * JavaScriptCore.pbproj/project.pbxproj: Added.
234 * .cvsignore: Update the set of ignored things.
236 * Makefile.am: Hand off to PB for the main build, but still handle
237 the generated files and the test program.
239 * kjs/Makefile.am: Don't build anything except the generated
242 * kjs/KWQDef.h, kjs/config.h: Added minimal versions of these
243 files to get kjs to build.
245 Check in all the genrated files, since Project Builder isn't up to
246 the task of handling built sources:
248 * kjs/array_object.lut.h: Added.
249 * kjs/date_object.lut.h: Added.
250 * kjs/grammar.cpp: Added.
251 * kjs/grammar.cpp.h: Added.
252 * kjs/grammar.h: Added.
253 * kjs/lexer.lut.h: Added.
254 * kjs/math_object.lut.h: Added.
255 * kjs/number_object.lut.h: Added.
256 * kjs/string_object.lut.h: Added.
258 * kjs/.cvsignore: Update set of ignored things.
260 2002-03-28 Maciej Stachowiak <mjs@apple.com>
262 * kjs/kjs-test.chk: Update output for new test results.
264 2002-03-26 Maciej Stachowiak <mjs@apple.com>
266 Set up kjs to build by itself into libJavaScriptCore.dylib.
269 * Makefile.am: Added.
271 * kjs/.cvsignore: Added.