187 Commits

Author SHA1 Message Date
igor%mir2.org
bd9f77b978 bug=422348 r,a1.9=shaver
proper overflow error reporting


git-svn-id: svn://10.0.0.236/trunk@247697 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 23:07:47 +00:00
brendan%mozilla.org
d50120aeb8 Unregress perf in wake of 418069 (420426, r=mrbkap, a=mconnor).
git-svn-id: svn://10.0.0.236/trunk@246853 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-01 22:15:21 +00:00
reed%reedloden.com
cf73037c1b Bug 412985 - "Provide stubs for JS_THREADSAFE APIs in non-JS_THREADSAFE builds" [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan]
git-svn-id: svn://10.0.0.236/trunk@246076 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-20 11:22:06 +00:00
brendan%mozilla.org
1707246c5d Lazy ComputeGlobalThis required now in fast native implementations (417893, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@245885 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-18 00:12:34 +00:00
brendan%mozilla.org
7cc395aa7a Optimize wrapper creation via JS_NewObjectWithGivenProto, and avoid cycle-check overhead in JS_Set{Prototype,Parent} (408871, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@245672 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-14 05:10:43 +00:00
brendan%mozilla.org
5ea4994939 Return of the property cache (365851, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@245186 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-07 23:18:45 +00:00
reed%reedloden.com
f37b77ecd2 Bug 412985 - "Provide stubs for JS_THREADSAFE APIs in non-JS_THREADSAFE builds" [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan]
git-svn-id: svn://10.0.0.236/trunk@245043 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-06 21:33:44 +00:00
crowder%fiverocks.com
f2d4bbe349 Bug 408113: allocate stackPools less often, r=brendan, a=blocking1.9 (schrep)
git-svn-id: svn://10.0.0.236/trunk@244435 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:11:30 +00:00
igor%mir2.org
ec09e4350b Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst
git-svn-id: svn://10.0.0.236/trunk@242830 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-10 15:39:03 +00:00
igor%mir2.org
25fc30bffe Bug 409109: backing the checking as the tree was closed.
git-svn-id: svn://10.0.0.236/trunk@242729 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-09 15:31:13 +00:00
igor%mir2.org
6f149b35da Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst
git-svn-id: svn://10.0.0.236/trunk@242728 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-09 15:20:39 +00:00
igor%mir2.org
fd1f31b43b Bug 409109: Backing out once again to figure out the reason for talos regressions.
git-svn-id: svn://10.0.0.236/trunk@242462 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-06 01:20:16 +00:00
igor%mir2.org
ed1706e5be Bug 409109: using the new operation counting JS API for monitoring long-running scripts. a,r=brendan
git-svn-id: svn://10.0.0.236/trunk@242447 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-05 11:25:50 +00:00
igor%mir2.org
517af6b580 Bug 364776: New operation counter API to replace branch callback. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@242291 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-03 09:28:40 +00:00
brendan%mozilla.org
027d6bfc0f XML/XMLList need toSource love (410192, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@242263 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-02 20:25:59 +00:00
jruderman%hmc.edu
ac3ce7194f Backing out igor's fixes for bug 409109 and bug 364776 in an attempt to fix Tinderbox tgfx failures that are keeping talos red
git-svn-id: svn://10.0.0.236/trunk@242098 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-26 19:19:18 +00:00
igor%mir2.org
d4d9688dca Bug 364776: new operation callback API to replace branch callback. a,r=brendan
git-svn-id: svn://10.0.0.236/trunk@242083 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-25 10:12:26 +00:00
mrbkap%gmail.com
5a85369625 Give the JS engine some knowledge of wrappers so that they can compare equal and be noticed when they take part in __proto__ cycles; this was supposed to land before. bug 397855, r=brendan sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@241889 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 09:11:02 +00:00
brendan%mozilla.org
874ad9d353 Don't fix typename bindings without JS2 opt-in (409252, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@241869 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 23:29:32 +00:00
mrbkap%gmail.com
62dec600b5 Give the JS engine some knowledge of wrappers so that they can compare equal and be noticed when they take part in __proto__ cycles. bug 397855, r=brendan sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@241866 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 22:59:44 +00:00
igor%mir2.org
f501ec7c60 Bug 397215: Runtime option to switch to UTF-8 encoding in byte <-> jschar conversiions. Patch from Sam Ruby with some changes by me. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@240819 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-11 10:09:58 +00:00
jwalden%mit.edu
680af8da29 Bug 376957 - Prevent data leaks from cross-site JSON loads (JavaScript literals), by making the global name bindings ReadOnly/DontDelete and making [] and {} use the global bindings. Still more that can be done here, but this covers a lot of the fix. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@240378 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-04 03:05:24 +00:00
igor%mir2.org
7ee1c0f9a5 Bug 403678: GC thing callback is removed. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@239642 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-19 10:57:04 +00:00
reed%reedloden.com
f14deb8533 Bug 400793 - "Need JS_AlreadyHasOwnProperty (UCProperty, Element)" [p=crowder r+a1.9=brendan]
git-svn-id: svn://10.0.0.236/trunk@239291 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 08:28:47 +00:00
reed%reedloden.com
2f766e9547 Bug 401298 - "Including jsapi.h generates many warnings with certain compiler configurations (e.g. gcc 3.4 -Wstrict-prototypes)" [p=wes@page.ca (Wesley W. Garland) r=mrbkap a1.9=brendan]
git-svn-id: svn://10.0.0.236/trunk@238893 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-07 09:17:35 +00:00
timeless%mozdev.org
6828cd3837 Bug 397239 ActionMonkey: Remove "extra" parameter to JS_FN
patch by Jason Orendorff <jorendorff@mozilla.com> r=igor a=brendan


git-svn-id: svn://10.0.0.236/trunk@237716 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-13 20:09:48 +00:00
mrbkap%gmail.com
790f1eae4d Implement an iterator hook for cross origin wrappers to avoid wrongly walking up the prototype chain during enumeration. bug 390947, r+a=brendan sr=jst
git-svn-id: svn://10.0.0.236/trunk@236962 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 00:31:22 +00:00
mrbkap%gmail.com
6511484952 Create a JSClass hook to allow object classes to easily support custom iteration without having to override __iterator__ in a resolve hook. bug 393306, r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@236036 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-15 16:58:45 +00:00
igor%mir2.org
a6d0dcb96f Bug 393368: new API to limit heap consumption by stack-like data structures used by compiler, decompiler and interpreter.
git-svn-id: svn://10.0.0.236/trunk@233163 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-27 22:21:55 +00:00
jst%mozilla.org
4e9236c3d7 Fixing bug 390275. Make setTimeout() always register the timeout on the right inner window, and add a new JS_GetGlobalForObject() JS API to eliminate some code duplication. r=mrbkap@gmail.com/brendan@mozilla.org, sr=bzbarsky@mit.edu
git-svn-id: svn://10.0.0.236/trunk@231754 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-09 22:19:59 +00:00
brendan%mozilla.org
1625a24bdd Fast (frame-less) native call optimizations (385393, r=igor).
git-svn-id: svn://10.0.0.236/trunk@231255 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 04:33:52 +00:00
brendan%mozilla.org
7050bb0c78 Backing out, see bug 389122 and orange or red tinderboxes.
git-svn-id: svn://10.0.0.236/trunk@230578 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 23:21:20 +00:00
brendan%mozilla.org
18ee45583c Fast natives and related optimizations (385393, r=igor).
git-svn-id: svn://10.0.0.236/trunk@230576 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-21 21:39:42 +00:00
crowder%fiverocks.com
38b3370b46 Bug 357016: changing this back to (void *) for now to fix burning tree
git-svn-id: svn://10.0.0.236/trunk@229379 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:54:44 +00:00
crowder%fiverocks.com
2e9c5abf21 Bug 357016: spidermonkey should be buildable by a C++ compiler, patch by
crowder/Jason Orendorff, r=brendan


git-svn-id: svn://10.0.0.236/trunk@229375 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-05 20:37:48 +00:00
jwalden%mit.edu
969270016e Typo fixes
git-svn-id: svn://10.0.0.236/trunk@227761 18797224-902f-48f8-a5cc-f745e15eee43
2007-06-10 22:08:17 +00:00
igor%mir2.org
bf3284b71a Bug 379885: JS_GetGCMarkingTracer is removed. r=brendan
git-svn-id: svn://10.0.0.236/trunk@226493 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-16 01:13:28 +00:00
crowder%fiverocks.com
d2bda4f82e Bug 308429: make tooMuchGC dynamic (runtime gczeal option), r=brendan
git-svn-id: svn://10.0.0.236/trunk@226487 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-15 23:27:20 +00:00
brendan%mozilla.org
79f35b65fa Fix some assertions to avoid re-evaluating macro args; tweak comments.
git-svn-id: svn://10.0.0.236/trunk@225593 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-04 18:34:56 +00:00
igor%mir2.org
783df8de1f Bug 379146: New API to register application-specific GC roots. r=brendan
git-svn-id: svn://10.0.0.236/trunk@225359 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-01 10:09:46 +00:00
igor%mir2.org
5857116860 Bug 379165: Simplifing JS_DimpHeap while fixing BeOS build problems. r=brendan
git-svn-id: svn://10.0.0.236/trunk@225236 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-29 21:49:01 +00:00
igor%mir2.org
f92cdfb6ca Bug 378261: Replacing GC_MARK_DEBUG by DumpHeap. r=brendan
git-svn-id: svn://10.0.0.236/trunk@225006 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-25 13:43:18 +00:00
igor%mir2.org
72a404f1bc Bug 377831: patch from Martijn Wargers <martijn.martijn@gmail.com> to fix JS_TraceChildren declarataion. r=myself
git-svn-id: svn://10.0.0.236/trunk@224681 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-18 05:59:10 +00:00
igor%mir2.org
7a52439c68 Bug 377754: fixing JS_CLASS_TRACE macro and misspellings. r=brendan
git-svn-id: svn://10.0.0.236/trunk@224651 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-17 21:14:18 +00:00
igor%mir2.org
4bb4c414fe Bug 375270: API to trace GC things graph without running the GC. r=brendan
git-svn-id: svn://10.0.0.236/trunk@224614 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-17 06:53:39 +00:00
mrbkap%gmail.com
45b6223230 Add an API to set aside and restore cx->fp. bug 377090, r=brendan
git-svn-id: svn://10.0.0.236/trunk@224501 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-13 19:20:22 +00:00
brendan%mozilla.org
a9dc8e4a74 Add -o <option> to shell; add JSOPTION_ANONFUNFIX and test it for ECMA conformance (376052, r=igor).
git-svn-id: svn://10.0.0.236/trunk@224290 18797224-902f-48f8-a5cc-f745e15eee43
2007-04-07 01:20:28 +00:00
mrbkap%gmail.com
153c0b37e6 Implement ES4's /y option on regular expressions. This is useful for scripts that want to use regular expressions for lexical scanning and don't want to have to chop the input string and use ^ to avoid O(n^2) lexing time. bug 371932, r=crowder
git-svn-id: svn://10.0.0.236/trunk@221753 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-11 19:36:59 +00:00
crowder%fiverocks.com
dacc7f0cde Bug 330569: Heuristic for short-circuiting exponential regexp which adds a JS option for throwing an exception on O(n^3) backtracking behavior. r=brendan
git-svn-id: svn://10.0.0.236/trunk@220472 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-17 06:33:09 +00:00
crowder%fiverocks.com
7525642524 Bug 365048: JSRuntime threadTPIndex should be a static, r=brendan
git-svn-id: svn://10.0.0.236/trunk@219748 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-08 19:49:35 +00:00