Commit Graph

587 Commits

Author SHA1 Message Date
Andreas Gal
966cb32879 Don't re-run resolve hooks after a standard class was delete (569306, r=mrbkap). 2010-06-02 01:18:50 -07:00
Jason Orendorff
d0251b679e Bug 568070 - jsapi.cpp refactoring. Part 7, Compile, Execute, and Evaluate functions, etc. r=Waldo.
--HG--
extra : rebase_source : af19ff0811379622bd15c0abf4ec41c12a6c6543
2010-06-02 00:32:47 -07:00
Jason Orendorff
2de0da668b Bug 568070 - jsapi.cpp refactoring. Part 6, Get Set and Delete functions. r=Waldo.
--HG--
extra : rebase_source : 472d8e670ca30e05e9ee4ae5adead13b19b0ccf8
2010-06-02 00:32:09 -07:00
Jason Orendorff
985627641f Bug 568070 - jsapi.cpp refactoring. Part 5, AttrsGetterAndSetter functions. r=Waldo.
--HG--
extra : rebase_source : a473a81fab118ba6a331a0609642f2490a37d3a0
2010-06-02 00:31:29 -07:00
Jason Orendorff
36455669c8 Bug 568070 - jsapi.cpp refactoring. Part 4, eliminate redundancy in Define functions. r=Waldo.
--HG--
extra : rebase_source : 2fdce2843e83f73892a19387ae2e8c7280f63e1b
2010-06-02 00:30:36 -07:00
Jason Orendorff
7a82abbc1b Bug 568070 - jsapi.cpp refactoring. Part 3, eliminate redundancy in Lookup, Has, and AlreadyHas functions. r=Waldo.
--HG--
extra : rebase_source : 7ac0bcdd4cbfc43398afed590588945d9968936f
2010-06-02 00:29:27 -07:00
Jason Orendorff
b776dfabce Bug 568070 - jsapi.cpp refactoring. Part Q, CHECK_REQUEST in js_Atomize and js_AtomizeChars, as requested in reviews.
--HG--
extra : rebase_source : 33f35f7723315a96ccf15d72d23df00e5dd9a238
2010-06-02 00:23:43 -07:00
Jason Orendorff
c0a1052f82 Bug 568070 - jsapi.cpp refactoring. Part 2, whitespace changes. r=Waldo.
--HG--
extra : rebase_source : 8d3c5411ea4bb54c10c5fb00da08474390f1a7eb
2010-06-01 21:50:54 -07:00
Jason Orendorff
36e472fba8 Bug 568070 - jsapi.cpp refactoring. Part 1, rearrange functions. No behavior change. r=Waldo.
--HG--
extra : rebase_source : 88efb983301501cbb648611e4f8d6c87ebffa2a3
2010-06-01 21:39:48 -07:00
Andreas Gal
c84cee0514 Don't use tinyids in jsxml.cpp (569114, r=jorendorff). 2010-05-30 17:02:09 -07:00
Igor Bukanov
8a9dacca13 Backed out changeset 1070cd7a9da0 2010-05-28 14:19:20 +02:00
Igor Bukanov
28c45dfff3 bug 516832 - temporaral landing to get tinderbox stats 2010-05-28 14:09:25 +02:00
Andreas Gal
22db0647cc Implement iterate trap for proxy handlers (568413, r=brendan). 2010-05-27 12:03:25 -07:00
Igor Bukanov
f362c01610 bug 561657 - Replacing js_CountThreadRequests with an explicit counter. r=jorendorff 2010-05-27 16:57:55 +02:00
Igor Bukanov
735d63b45a Backed out changeset c78751701c46 - wrong commit 2010-05-27 16:56:34 +02:00
Igor Bukanov
b4468fa229 bug 561657 - Replacing js_CountThreadRequests with an explicit counter. r=jorendorff 2010-05-27 16:51:44 +02:00
Igor Bukanov
823bff32f4 Backed out changeset 7ebdbaba843a - that was temporary commit 2010-05-26 14:04:15 +02:00
Igor Bukanov
ef5bf20abd bug 516832 - temporary landing to collect tinderbox logs 2010-05-26 13:40:49 +02:00
Brendan Eich
5679f25545 Fix getter vs. method pointer issues (567066, r=jwalden). 2010-05-24 10:48:32 -07:00
Luke Wagner
b50352b41c Tighten checking with JSID, fix bug 2010-05-21 14:11:15 -07:00
Jason Orendorff
40d0fb0842 Bug 513065 - Part 3, Stay on trace when calculating scope in thisObject hook. r=mrbkap. 2010-05-21 07:27:00 -05:00
Luke Wagner
926bf1e82a Passing trace-tests 2010-05-20 18:39:06 -07:00
mozilla@buildmonkey-left.mv.mozilla.com
88fadd2d53 Fix some things so this builds on 64-bit and OS X 2010-05-19 09:55:27 -07:00
Luke Wagner
d3a3926b34 Fix bugs 2010-05-18 17:25:12 -07:00
Igor Bukanov
442b99542f bug 237006 - automatic detection of the native thread stack base. The patch is based on the initial patches for bug 516832 by gal and gregor. r=gregor 2010-05-19 10:29:05 +02:00
Andreas Gal
efd9bd790e Implement ES Harmony Proxies (bug 546590, r=mrbkap). 2010-05-18 19:21:43 -07:00
Luke Wagner
e374a37e1c Remove explicit copy, ObjPtr 2010-05-17 22:15:51 -07:00
Luke Wagner
d1c3253e19 It compiles and links. Time to make it run 2010-05-17 21:21:44 -07:00
Luke Wagner
b3c6d771b1 Fixing shell/js 2010-05-17 18:49:58 -07:00
Luke Wagner
98a19c517d finish jsxml 2010-05-17 16:52:38 -07:00
Luke Wagner
6d87e93eef 30% through jsstr 2010-05-13 18:55:25 -07:00
Luke Wagner
db5b99989b convert jsnum, touch up jsobj 2010-05-13 02:03:08 -07:00
Luke Wagner
588e08228c jsiter 2010-05-12 19:05:43 -07:00
Luke Wagner
4e6c52c52b New Tag scheme, no SetObject silliness 2010-05-12 16:36:10 -07:00
Luke Wagner
bd3571c1b5 Still recovering from rebase 2010-05-11 19:00:59 -07:00
Luke Wagner
6c0883c94f Merge from tracemonkey 2010-05-11 00:41:08 -07:00
Luke Wagner
4e71f5312b (unrebased) fat value patch 2010-05-10 22:01:31 -07:00
timeless@mozdev.org
3530aac334 Bug 555686 scope is never used in JS_NextProperty
r=jorendorff

--HG--
extra : rebase_source : 65aaf4e7c50880e467fec4397bf9a514eee5dd38
2010-05-25 04:11:48 +03:00
Igor Bukanov
97039b9427 bug 561364 - removal of JSRuntime::gcLevel. r=jorendorff 2010-05-14 15:55:17 +02:00
Luke Wagner
9b49d62378 Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo) 2010-03-03 17:52:26 -08:00
Igor Bukanov
307503fef7 bug 563345 - using js::HashMap for JSRuntime::threads. r=lw 2010-05-13 19:50:43 +02:00
Luke Wagner
6a6afd60ce Backed out changeset 23efaeb8652b 2010-05-13 02:21:27 -07:00
Luke Wagner
c82711e2b5 (unrebased) contiguous patch 2010-03-03 17:52:26 -08:00
Luke Wagner
777b935aea Bug 558144 - un-macroize OBJ_SCOPE, OBJ_SHAPE, LOCKED_OBJ_SET_SLOT, LOCKED_OBJ_GET_SLOT (r=Waldo) 2010-04-08 11:22:04 -07:00
Jason Orendorff
08bfa47c56 Bug 553671 part 4 - RAII for JS_{LOCK,UNLOCK}_GC and JS_{KEEP,UNKEEP}_ATOMS. r=luke.
--HG--
extra : rebase_source : dfdfcdd3a602e12de1836068e2c9f16fce46d7b2
2010-04-08 07:54:18 -05:00
Luke Wagner
b9f8c249e6 Bug 552574 - de-mystify js_ValueToNumber API (r=igor) 2010-04-07 13:18:50 -07:00
Nicholas Nethercote
26d8277a75 Bug 413730 - Replace all OBJ_GET_CLASS() macro calls with JSObject::getClass() calls. r=gal. 2010-04-07 16:09:49 -07:00
Luke Wagner
0e23d73f7a (fake) contiguous patch 2010-03-03 17:52:26 -08:00
Andreas Gal
2004c301c3 fast object iteration (558754, r=brendan, CLOSED TREE). 2010-05-07 17:52:52 -07:00
Blake Kaplan
5acba45793 Fix bug 563243. r=jorendorff
--HG--
extra : rebase_source : 4d0b7a62b0b1c458e2bb7f109e98da604ecba03a
2010-05-03 15:23:01 -07:00
Jeff Walden
00f6066393 Bug 552560 - Remove support for __parent__. r=mrbkap 2010-04-11 13:51:00 -07:00
Andreas Gal
7bf56e15a7 Follow-up for 560358, poke the GC when overwriting the value of RegExpStatics.input (fix leak). 2010-04-28 18:49:36 -07:00
Andreas Gal
2173a6b94c Optimize static RegExp state (560358, r=brendan). 2010-04-28 16:35:12 -07:00
Jeff Walden
2dabf26a83 Backed out changeset 1da2bbf6cfaf, turned tree red. 2010-04-28 15:18:38 -07:00
Andreas Gal
6fe4800714 Optimize static RegExp state (560358, r=brendan). 2010-04-28 13:33:21 -07:00
Igor Bukanov
63f9c2e3d5 bug 553033 - replacing the background free list with a vector. r=jwalden 2010-04-27 15:46:24 +02:00
Andreas Gal
3579b2b1fb Merge. 2010-04-26 19:07:10 -07:00
Andreas Gal
492ea75049 Backed out changeset 35c25547a135 (bug 560358). 2010-04-26 19:06:51 -07:00
Igor Bukanov
d14ffdc7bb bug 560471 - remove GC_LAST_DITCH and GC_KEEP_ATOMS. r=jorendorff 2010-04-24 00:15:42 +02:00
Andreas Gal
d7cc7de1f9 Don't save static RegExp state across lambda replace calls (560358, r=brendan). 2010-04-21 22:39:05 -07:00
David Mandelin
e0c8df3e9e Bug 558531: fix typo in JS_ResolveStandardClass, r=waldo 2010-04-21 11:37:18 -07:00
Andreas Gal
4f28c42447 Remove lingering defaultValue calls with hint JSTYPE_OBJECT or JSTYPE_FUNCTION (554550, r=brendan). 2010-04-11 20:55:22 -07:00
Dave Herman
ed6c552bb7 Bug 558437 - rename JSCompiler to js::Parser (r=brendan). 2010-04-10 21:15:35 -07:00
Andreas Gal
a887d81302 Inline the object allocation path (558003, r=sayrer). 2010-04-10 16:16:35 -07:00
Luke Wagner
98a7dc9ea6 Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo) 2010-03-03 17:52:26 -08:00
Robert Sayre
0821fc2de4 Merge. 2010-05-11 16:37:47 -04:00
Robert Sayre
bcf510f2ff Backed out changeset 60c4693a80ef 2010-05-11 16:37:18 -04:00
Robert Sayre
2777416cca Merge. 2010-05-11 11:52:40 -04:00
Robert Sayre
a354ba1cfc Backed out changeset 919950c7f0f0 2010-05-11 11:52:17 -04:00
Igor Bukanov
e5c32894ce bug 563345 - using js::HashMap for JSRuntime::threads. r=lw 2010-05-11 09:49:28 +02:00
Chris Leary
299dd52ca1 Bug 559408: Arena pool macros to methods. (r=gal) 2010-05-10 21:46:52 -07:00
Nicholas Nethercote
795d4b8ad2 Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan. 2010-03-31 22:13:51 -07:00
Jason Orendorff
24aa3470aa Bug 556315 part 2 - JSObject::getGlobal() and JSStackFrame::getThisObject(). r=gal.
--HG--
extra : rebase_source : 103e73537d3c2f537a914b69a620136451a664ba
2010-03-31 17:57:03 -05:00
Blake Kaplan
387907ce9f Bug 515496 - Eliminate extra security check when computing this. r=jorendorff. 2010-02-11 17:04:42 -08:00
Nicholas Nethercote
684396fb91 Bug 555631 - Convert STOBJ_* macros to inline functions. r=gal. 2010-03-30 14:42:48 -07:00
Jeff Walden
09969174d8 Readd bug 548702's changes to jsapi.cpp, jsexn.cpp, jsfun.cpp, jsnum.cpp, and jsstr.cpp. 2010-03-28 22:05:50 -07:00
Jeff Walden
34f9abcc39 Merge². 2010-03-26 22:10:39 -07:00
Jeff Walden
0973dfd6ab Merge. 2010-03-26 21:53:40 -07:00
Luke Wagner
13df6efbae Bug 555104 - remove JS_ExecuteScriptPart (r=brendan) 2010-03-26 19:37:45 -07:00
Jeff Walden
95422c65a3 Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\ 2010-03-26 18:01:54 -07:00
Andreas Gal
06be8164da Public JS API for new ES5 Object functions (551595, r=jwalden). 2010-03-24 12:36:42 -07:00
timeless@mozdev.org
11d3079664 Bug 552905 - JS_DefineUCFunction seems to be missing a CHECK_REQUEST. r=jorendorff. 2010-03-23 09:41:43 -05:00
Jason Orendorff
60d5805e46 Bug 509857 - Get rid of DTOA_LOCK. r=jwalden.
--HG--
extra : rebase_source : bec4d9441aa2af8488a04aa8604a65b7387cda6d
2010-03-22 18:21:10 -05:00
Brendan Eich
f819b36cf4 Use direct object shape instead of identity as key for deep property cache hits (497789, r=jorendorff). 2010-03-22 11:11:44 -07:00
Jason Orendorff
a9e5d5980e Bug 480850 - Add JSAPI function JS_New. r=mrbkap.
--HG--
extra : rebase_source : bb808cedea84d20dfa6e2b3ab6d11b5491aa9058
2010-03-17 10:22:13 -05:00
Jason Orendorff
289a8b3513 Bug 530583 - Delete silly JS_INT32_TO_PTR etc. macros. r=jwalden.
--HG--
extra : rebase_source : ccd52d3c33a3fd984fb5588ef12cbf9a6a80c423
2010-03-16 10:41:28 -05:00
Igor Bukanov
6231f35ccd bug 551680 - replacing JS_(Suspend|Resume)Request with JSAutoSuspendRequest. r=mrbkap 2010-03-17 10:29:37 +03:00
Igor Bukanov
90d5fa7237 bug 519476 - replacing JSSTRING_DEFLATED with scanning of the deflated cache. r=jwalden,dmandelin 2010-03-16 21:28:33 +03:00
Vladimir Vukicevic
77502e8e24 Backed out changeset 0b28c109c213; r=waldo,dmandelin 2010-03-15 16:03:57 -07:00
Jeff Walden
ee34aa693a Bug 551007 - Make JSScopeProperty::attrs private, hide information behind accessor methods. r=jorendorff 2010-03-08 15:44:59 -07:00
Jeff Walden
e2df507656 Bug 551529 - Remove __count__. r=shaver 2010-03-12 17:09:49 -08:00
Igor Bukanov
6d3a27abc3 bug 519476 - replacing JSSTRING_DEFLATED with scanning of the deflated cache. r=jwalden,dmandelin 2010-03-13 10:01:09 +03:00
Jeff Walden
106fbd8085 Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
David Mandelin
71634c4850 Bug 549509: jsval representation profiling, r=lw
--HG--
extra : rebase_source : e0e6c19db20d2e469066b5f9433c96c05bbff1c1
2010-03-05 11:45:28 -08:00
Igor Bukanov
9d1cbd468c bug 549010 - folowup to replace PROTO access macros with the inlne function 2010-03-04 23:52:52 -08:00
Mike Moening
0373a2437d bug 549010 - fixing and silencing MSVC warnings. r=brendan,igor 2010-03-04 20:44:09 -08:00
Luke Wagner
fdc3899884 Bug 543057 - Drop the Script object (r=brendan) 2010-03-04 00:33:57 -08:00
Jeff Walden
23f47cabac Bug 547087 - JS_EnumerateStandardClasses uses non-configurable, not non-configurable/non-writable, as attributes for global.undefined. r=jorendorff 2010-02-18 19:51:57 -08:00
Andreas Gal
9d5b1c0316 Disallow embeddings reaching into our guts (part 1: jsnum.h, bug 548205, r=brendan). 2010-03-01 13:30:23 -08:00
Jason Orendorff
ad75218737 Bug 539170 - Encapsulate JSScopeProperty::{getter,setter} and move assertions to init-time. r=Waldo. 2010-02-24 17:40:28 -08:00
Brendan Eich
d60c92f837 Another followup, deferred nit-pick for 547314. 2010-02-24 14:05:36 -08:00
Andreas Gal
7fc1c8efb0 Introduce ObjectOps for typeOf and make trace a mandatory ObjectOp (547314, r=brendan). 2010-02-22 16:30:22 -08:00
Igor Bukanov
debaa592f7 bug 545529 - caching Class.prototype lookups. r=brendan 2010-02-19 20:44:23 +03:00
Gregor Wagner
dc4711d401 BUG 545303: TM: non API function for JS_CallTracer r=igor 2010-02-18 13:16:02 -08:00
Luke Wagner
87a5e61db3 Bug 546491 - fix tracevis (r=jorendorff) 2010-02-16 13:41:40 -08:00
Jason Orendorff
095bd890ef Bug 539829 - Encapsulate JSScope::flags. r=Waldo.
--HG--
extra : rebase_source : ced4f057e715075d8e4eff343e824d8934152a7e
2010-02-05 18:11:13 -06:00
Jeff Walden
b7423ebf62 Bug 545275 - Remove JS_HAS_FILE_OBJECT support as it's rather broken (and unlikely to be fixed soon) and the presented API isn't very good. r=mrbkap 2010-02-09 17:27:02 -08:00
Robert Sayre
f146d11898 Merge mozilla-central to tracemonkey. 2010-02-09 13:08:35 -05:00
Luke Wagner
9dabae3069 Bug 542091 - remove JS_PushArguments[VA] (r=mrbkap,dveditz) 2010-02-06 12:26:24 -08:00
Vladimir Vukicevic
df2ba5c148 b=534467; implement Uint8ClampedArray for CanvasPixelArray; part 1; r=jorendorff 2010-02-04 16:33:40 -08:00
Vladimir Vukicevic
c33756956c b=542402; add FLOAT64 to typed arrays; r=jorendorff 2010-02-04 15:31:40 -08:00
Luke Wagner
7714144859 Bug 535656 - remove JSStackFrame::dormantNext and varobj (r=waldo) 2010-01-29 18:25:16 -08:00
Luke Wagner
2645ecd2da Bug 541452 - put jstracer.cpp in namespace js (r=jorendorff) 2010-01-22 14:49:18 -08:00
Luke Wagner
4f05b945eb Bug 458421 - dead stuff in spidermonkey (r=jorendorff) 2010-01-22 11:52:17 -08:00
Vladimir Vukicevic
ae1559c751 b=532774; add native typed arrays to JavaScript; r=brendan,jorendorff 2010-01-09 13:01:37 -08:00
Jeff Walden
46907ab8ed Bug 537863 - Make various global properties (NaN, Infinity, undefined) readonly per ES5. r=jorendorff 2010-01-04 23:10:36 -06:00
Mounir Lamouri
335de1dc4f Bug 345512 - Implement pattern attribute for input elements. f=ajvincent r=sicking,jorendorff sr=smaug a2.0=blocking 2010-08-18 21:26:22 +02:00
Jeff Walden
ad6a89209e Bug 517580 - Unconditionally build with support for getters and setters, remove support for the deprecated { x getter: function() {}} and x getter= function() {} getter syntaxes (mutatis mutandis for setter) now that ES5 provides Object.getOwnPropertyDescriptor and Object.defineProperty and { get x() { } } syntax, and provide __{define,lookup}{G,S}etter__ only if a preprocessor variable is defined (unconditionally provided for the moment). r=luke 2009-10-06 12:35:33 -07:00
Chris Leary
2ebc323e9d Bug 558002 - Convenience methods for TokenStream flags. r=jwalden 2010-04-09 18:54:51 -07:00
Luke Wagner
bca83949d6 Bug 543558 - Make sure we're in a request when calling JS_SaveFrameChain/JS_RestoreFrameChain. r=mrbkap 2010-02-04 16:37:43 -08:00
Robert Sayre
6a3b57172b Bustage fix for non-JIT builds. Following up bug 474500. 2009-12-19 07:46:35 -05:00
Andreas Gal
2943a7a949 Bug 474500 - TM: Need an API to flush and (optionally?) deallocate the code cache per thread. 2009-12-28 09:46:50 -08:00
Benjamin Smedberg
f92278ab68 Backed out changeset 94561cb0f0bd, bug 474500 because of static-analysis bustage. 2009-12-21 09:55:45 -05:00
gal@uci.edu
d8d110c024 Bug 474500 - TM: Need an API to flush and (optionally?) deallocate the code cache per thread. r=dvander 2009-12-18 21:34:20 -05:00
Jason Orendorff
dfd362fddd Bug 535703 - JS_SealObject crash with deep=true. r=mrbkap.
--HG--
extra : rebase_source : 7760d40bb23ab439c030943ab781ab5b10259da8
2009-12-17 21:09:50 -06:00
Andreas Gal
8015385480 Backed out changeset 94ddd33fc137 to see whether that makes the tree green. 2009-12-17 17:43:40 -08:00
Andreas Gal
4c8dc43072 Efficient Implementation of JSDOUBLE_IS_INT using SSE2 (original patch by Moh Haghighat/Intel, bug 530896, r=dvander) 2009-12-17 14:03:45 -08:00
Robert Sayre
b18f03ada4 Merge m-c to tm. 2009-12-17 04:26:12 -05:00
Robert Sayre
38011bea9f Merge mozilla-central rev a732c6d3c078 to tracemonkey. This is just prior to the e10s plugins landing. 2009-12-16 10:17:45 -05:00
Robert Sayre
e7f09943fc Merge. 2009-12-15 22:35:15 -05:00
Robert Sayre
fa15ebcadc Backed out changeset eae07941000e. Andreas Gal — Efficient Implementation of JSDOUBLE_IS_INT using SSE2 (original patch by Moh Haghighat/Intel, bug 530896, r=dvander). 2009-12-15 22:34:35 -05:00
Igor Bukanov
da4f40e4dc bug 528486 - eliminating GCF_CHILDREN. r=brendan 2009-12-14 10:55:17 +03:00
Andreas Gal
3ded1d4c80 Efficient Implementation of JSDOUBLE_IS_INT using SSE2 (original patch by Moh Haghighat/Intel, bug 530896, r=dvander). 2009-12-05 12:46:46 -08:00
Robert Sayre
4ea539c658 Relanding: Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). Backed out changeset ee7bfc1923ad 2009-12-01 15:49:15 -05:00
Robert Sayre
8be5b171b9 Backed out changeset c03ebf340688. Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). 2009-12-01 09:56:16 -05:00
Brendan Eich
c731045c51 Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). 2009-11-20 16:14:42 -08:00
Jason Orendorff
3f11018c72 Bug 519719 - TM: crash [@ JS_GetFrameThis] - SynthesizeFrame passes partly-uninitialized JSStackFrame to callHook. r=mrbkap. 2009-11-13 11:04:23 -06:00
Jim Blandy
34a27f0c88 Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
Jim Blandy
ae0ff5874f Bug 514585: Remove macro wrappers for js_NewPrinter and JS_InitArenaPool. r=igor
These macros were intended to help avoid passing unused parameters
when JS_ARENAMETER is not defined, but they're not worth the trouble.
The unused parameter doesn't elicit warnings, and the performance
impact of passing the unneeded argument is negligible.

This also removes support for JS_ARENA_CONST_ALIGN_MASK, which is not
used.
2009-11-18 13:33:53 -08:00
Jason Orendorff
c26c16cb0c Bug 528414 - JS_IsRunning can be wrong. r=brendan.
--HG--
extra : rebase_source : 4fca5efd5f558c1b64b0e86580d2c42af7e61e34
2009-11-13 09:24:12 -06:00
David Mandelin
5ee0760ca7 Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw 2009-11-09 16:57:47 -08:00
Jim Blandy
b76416cc57 Bug 514585: Move 'grouped' to explicit param of JS_NEW_PRINTER. r=igor
Make all the JSPrinter status bits explicit flags to JS_NEW_PRINTER.
Only in public-facing functions like JS_DecompileFunction should we be
peeling bits out of indent values and turning them into flags;
internally, we can change interfaces to make more sense.

This is preparation for adding another flag to JS_NEW_PRINTER.
2009-11-05 14:34:39 -08:00
Robert Sayre
e08b99cf18 bustage fix 2009-10-29 11:48:18 -07:00
Igor Bukanov
0d38a472cc bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-28 14:57:31 +03:00
David Mandelin
6378284cae Backed out changeset 723a2622ad4a: tracemonkey tinderbox build failures 2009-10-27 17:46:09 -07:00
Jim Blandy
48cec69361 Bug 514585: Move 'grouped' to explicit param of JS_NEW_PRINTER. r=igor
Make all the JSPrinter status bits explicit flags to JS_NEW_PRINTER.
Only in public-facing functions like JS_DecompileFunction should we be
peeling bits out of indent values and turning them into flags;
internally, we can change interfaces to make more sense.

This is preparation for adding another flag to JS_NEW_PRINTER.
2009-10-27 16:38:09 -07:00
Jim Blandy
fb80546171 Bug 523139: Add an ECMAScript 5 value to the JSVersion type. r=brendan 2009-10-27 14:17:01 -07:00
Igor Bukanov
8785797ba7 Backed out changeset 14c76164f4c2 - patch for bug 524346 caused test fails 2009-10-27 19:21:47 +03:00
Igor Bukanov
ed4f6edf7f bug 524346 - using jsval, not jsdouble *, for nan and +-oo. r=brendan 2009-10-27 13:26:57 +03:00
Brendan Eich
02c0dc3df2 Factor jsscopeinlines.h out, clean up #include order (524267, r=gal/jorendorff). 2009-10-26 13:39:39 -07:00
Jason Orendorff
326aa1d148 Bug 522590 - FF 3.7 crash on startup with chromebug. r=brendan. 2009-10-21 15:27:35 -05:00
Andreas Gal
09041f31f7 Explicitly call destructor instead of delete (follow-up for 521859, r=dvander). 2009-10-20 20:11:32 -07:00
Dan Witte
89be48b3cc Bug 518621 - JS_ReportErrorNumber ignores exception type for user-generated messages. r=mrbkap 2009-12-15 14:20:48 -08:00
Ben Turner
69627562c5 Bug 534051, r=jorendorff+jst, sr=jst. 2009-12-11 12:50:54 -08:00
Andreas Gal
ebb3f8e3e1 Replace JSPtrTable with js::Vector (523463, r=luke). 2009-10-20 15:08:28 -07:00
Brendan Eich
9f9a05b0c3 Don't build a stack frame to execute empty scripts (516827, r=igor). 2009-10-18 17:41:24 -07:00
Igor Bukanov
d615c5e729 bug 521390 - avoid checking for malloc memory pressure when allocating GC things from free lists. r=brendan 2009-10-18 19:40:19 +04:00
Igor Bukanov
af1a5810f7 bug 505315 - constructing GC free lists during finalization. r=brendan 2009-10-16 10:10:54 +04:00
Igor Bukanov
9212853abd Backed out changeset 487b81c753c0 - landing of bug 505315 caused talos crashes across platforms. 2009-10-15 13:53:40 +04:00
Igor Bukanov
0d37930589 bug 505315 - constructing GC free lists during finalization. r=brendan 2009-10-15 11:41:08 +04:00
David Mandelin
dbad0b0f5d Bug 519363 - topcrash [@ js_Interpret], change some code to aid in debugging efforts. r=brendan
--HG--
extra : rebase_source : 51c16011f74f154bee8d124b2dedfd5f2f5a5a62
2009-10-07 17:30:34 -07:00
Jason Orendorff
8e3f26b19f Bug 518463 - Alternative APIs to JS_GetStringBytes/Chars with saner out-of-memory handling. Any code using the old APIs that attempts to handle OOM at all should switch to these. r=brendan. 2009-10-02 12:42:02 -05:00
Igor Bukanov
79b9eab8cb bug 520046 - eliminating "uintN flags" parameter from js_NewSomeGCThing functions. r=brendan 2009-10-02 12:21:19 +04:00
Igor Bukanov
3fa86d4157 Backed out changeset 19b4c1cacdb8 - everything related to bug 517199. 2009-10-01 16:10:42 +04:00
Igor Bukanov
fed9242625 bug 517199 - typed GC free lsists - newborn refactoring. r=brendan 2009-10-01 08:13:04 +04:00
Igor Bukanov
27c2d57074 bug 517749 - removal of weakRoots.newborn = null. r=mrbkap 2009-09-25 16:30:11 +04:00
David Mandelin
6b652df63e Bug 516458 followup: adding the terminator to improve accuracy for short strings, rs=brendan 2009-09-21 17:00:25 -07:00
David Mandelin
328ad0c965 Bug 514071: count external strings as malloc'd memory for JS GC scheduling, r=igor
--HG--
extra : rebase_source : b2888a1705c49deabaf4aeac9be23c4ed06132d7
2009-09-21 11:01:09 -07:00
Igor Bukanov
8da9fad53a bug 512046 - avoid maintaing a per-runtime iterator list. r=brendan 2009-09-19 13:40:43 +04:00
Blake Kaplan
afba815d74 Merge tracemonkey to mozilla-central. 2009-09-16 16:15:59 -07:00
Brendan Eich
eaabbf253c Bug 516075 - Move shape into JSObjectMap from JSScope, const-ipate and use LIR_ldc* to get to it (r=jorendorff). 2009-09-14 20:29:46 -04:00
Luke Wagner
854c0294df Bug 412571 - replace thisp with thisv (r=brendan,mrbkap) 2009-09-11 19:07:00 -07:00
Jeff Walden
9d39c0d549 Bug 515285 - Implement JS_SameValue, and make assertEq use it rather than JS_StrictlyEqual. r=jorendorff 2009-09-09 11:51:52 -07:00
Ben Newman
e5a024bacf Bug 500644 - PAC: crash when using PAC-based manual proxy config and the attached testcase. r=mrbkap sr=brendan
--HG--
extra : rebase_source : 68dbf79d8e257f3915b817723ca51deb840e4298
2009-08-27 18:07:44 -07:00
Luke Wagner
3cf8a59c01 Bug 503952 - Use JSTempVector in scanner/parser; remove JSStringBuffer (r=brendan) 2009-08-14 16:10:59 -07:00
David Mandelin
6e0758faf2 Trailing whitespace cleanup, no_r=me 2009-08-20 15:21:14 -07:00
Andreas Gal
c09eb5d1a9 Remove debug printfs (no bug). 2009-08-19 15:29:56 -07:00
Andreas Gal
81c28c4fe8 Notify JS_CommenceRuntimeShutdown from CycleCollector (511522, r=graydon). 2009-08-19 15:13:02 -07:00
Luke Wagner
1f36a4f0c2 Bug 503952 - Use JSTempVector in jsstr.cpp (r=waldo)
--HG--
extra : rebase_source : ac955b5d784ca8fc9a61129e580c2751beb4109f
2009-08-14 16:10:59 -07:00
Andreas Gal
c438241025 Backout bug 506125. 2009-08-18 17:30:05 -07:00
Andreas Gal
57285268f7 Schedule GC based on process memory pressure (506125, r=igor,waldo). 2009-08-18 16:38:02 -07:00
Andreas Gal
ebc6f01967 Add an API to notify the JS engine that we are about to destroy the runtime (511252, r=brendan). 2009-08-18 16:31:20 -07:00
Luke Wagner
94a2c2cadd Bug 503952 - replace JSStringBuffer with JSTempVector in json.cpp 2009-08-13 17:22:55 -07:00
Jason Orendorff
8384b1e239 Bug 509098 - Remove JS_HAS_LVALUE_RETURN support. r=brendan. 2009-08-13 16:18:33 -05:00
Luke Wagner
fa2f83712c Bug 507458 - clear the waters a bit regarding JSVAL_BOOLEAN 2009-08-12 16:39:23 -07:00
Jason Orendorff
9dc4a54a5d Bug 498488 - Change some JSObject macros to methods. r=Waldo. 2009-08-11 15:05:44 -05:00
Blake Kaplan
adf434e70c Bug 513428 - Ignore transparent wrappers when deciding if something is an array or not. r=brendan 2009-09-10 14:51:45 -07:00
Igor Bukanov
3c4beac4d9 bug 515199 - js_GetGCThingTraceKind must check for JSString::isStatic and return JSTRACE_STRING if so. r=brendan 2009-09-10 15:13:59 +04:00
Jason Orendorff
b53824855d Bug 513119 - Change JSScript macros to methods. r=Waldo. 2009-09-09 18:52:55 -05:00
Brendan Eich
7a412f40b3 JSTempValueRooter JSTVU_SINGLE over-constrains GC-thing against static allocation (515000, r=gal). 2009-09-07 00:35:27 -07:00
Brendan Eich
098462c563 Check (without regressing hot paths) where needed to avoid treating static JSStrings like gc-things in the heap (514819, r=gal). 2009-09-05 21:48:30 -07:00
Igor Bukanov
6bfe4771cc bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff 2009-09-05 19:59:11 +04:00
Gregor Wagner
2e1104b40f Cache result of Number2String (bug 513530, r=brendan). 2009-09-04 16:28:30 -07:00
Luke Wagner
6bfe9f9329 Bug 460904 - rename/tweak JSTraceableFunction (take 2) 2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d Backed out changeset 94da2f68afdb 2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2 Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff) 2009-09-03 11:57:14 -07:00
Brendan Eich
cce4dce512 Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff). 2009-09-03 14:41:19 -07:00
Jeff Walden
5670ca5621 Bug 514309 - Object.prototype.hasOwnProperty mishandles non-primitive property name. r=brendan
--HG--
extra : rebase_source : 56a59bf5d25f0c7303cac96b90fb4bababdf8e53
2009-09-02 21:13:51 -07:00
Igor Bukanov
b919139e8d bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan 2009-08-28 09:53:26 +04:00
Jason Orendorff
dafc9b5d2a Bug 508685 - Remove last parameter of defineProperty op. r=brendan. 2009-08-26 14:28:36 -07:00
Brendan Eich
b063d31520 Back out changeset aff171a8c4f0 (bug 471214). 2009-08-26 09:34:41 -07:00
Brendan Eich
bd8f55c0ad Join function objects where possible (471214, r=igor). 2009-08-25 23:42:37 -07:00
Andreas Gal
030a8114b2 Backed out changeset 9b6b17a275ec (bug 506125). 2009-08-25 14:42:42 -07:00
Andreas Gal
f808b9ca98 Memory-pressure based GC scheduler (506125, r=igor,jwalden). 2009-08-24 18:24:52 -07:00
Andreas Gal
9c938dd547 Backout bug 506125 due to talos failures. 2009-08-04 18:42:53 -07:00
Andreas Gal
06ad033ff2 Memory-pressure based GC scheduler (506125, r=igor). 2009-08-04 14:58:21 -07:00
Igor Bukanov
ef90f6f522 bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden 2009-08-04 23:06:55 +02:00
Robert Sayre
99a0962393 Backed out changeset e09130fcb013 2009-07-28 18:51:35 -04:00
Brendan Eich
8d27b07ec5 Bug 471214 - Join function objects transparently, clone via read barrier to satisfy de-facto standard (r=igor). 2009-07-28 13:20:14 -07:00
Jason Orendorff
eb14203c0c Bug 506786 - JSScope::trace method. r=brendan. 2009-07-28 04:00:35 -05:00
Andreas Gal
e7f2714ea1 When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
David Mandelin
cfb0d1fd1b Bug 506821: clean up trailing whitespace, r=brendan 2009-07-27 18:40:12 -07:00
Igor Bukanov
bfbac69d3f bug 506243 - eliminate GC thread-local lists pools. r=brendan 2009-07-26 18:24:39 +02:00
Igor Bukanov
1c7dc7ec8c bug 505460 - followup to fix misspellings 2009-07-26 08:54:54 +02:00
Igor Bukanov
1fcf4af3b3 bug 505460 - preallocating reserved slots. r=brendan 2009-07-24 12:01:37 +02:00
Robert Sayre
9e0ade7287 Backed out changeset b3d459d23452 2009-07-24 00:01:37 -04:00
Andreas Gal
eb711234db Use a background thread to free() memory while sweeping (505612, r=brendan,bent). 2009-07-23 15:12:34 -07:00
Jason Orendorff
a31f80165c Bug 503080 - Remove prototype-scope-sharing. r=brendan. 2009-07-21 16:25:11 -05:00
Andreas Gal
f8892ed21b Shrink slots during GC only, split ReallocSlots into Alloc/Grow/ShrinkSlots (504478, r=igor). 2009-07-16 18:42:54 -07:00
Andreas Gal
241532b53a Inline malloc accounting functions (504219, r=jwalden). 2009-07-16 18:36:19 -07:00
Andreas Gal
1af8dfb112 Avoid integer division in NewGCThing path (503157, r=jwalden). 2009-07-14 17:06:09 -07:00
Andreas Gal
88cf1d87c6 Avoid integer math for GC trigger factor calculation in allocation path, take 2 (503463, r=dmandelin). 2009-07-14 17:03:20 -07:00
Peter Van der Beken
166204d6c0 Backed out changeset 2073d5aae8b6 (Avoid integer math for GC trigger factor calculation in allocation path (bug 503463)). 2009-07-14 11:49:43 +02:00
Peter Van der Beken
cf914cb140 Backed out changeset 2073d5aae8b6 (Avoid integer math for GC trigger factor calculation in allocation path (bug 503463)). 2009-07-14 11:49:15 +02:00
Andreas Gal
f552010935 Make js_ValueToString inline (503669, r=jwalden). 2009-07-13 14:55:04 -07:00
Andreas Gal
0c6942b658 Avoid integer math for GC trigger factor calculation in allocation path (503463, r=dmandelin). 2009-07-13 13:24:25 -07:00
Andreas Gal
d788e5a1d4 Make CHECK_FOR_STRING_INDEX an inline function (503666, r=jwalden). 2009-07-11 15:41:32 -07:00
Brendan Eich
f60779aef5 Bug 503343 - Change JSScope macros to methods. r=jorendorff 2009-07-09 15:27:21 -05:00
Andreas Gal
84b0735487 js_GetMethod shouldn't detect (501229, r=jorendorff). 2009-06-29 15:19:37 -07:00
Igor Bukanov
795af78c24 bug 499570 - fixing shutdown leak of not-yet-closed JSNativeEnumerator instances. r=brendan 2009-06-23 18:52:03 +02:00
Nicholas Nethercote
e2a97e3f4c Bug 496448: TraceVis TraceMonkey performance visualization, r=brendan 2009-06-16 09:30:01 +01:00
Jason Orendorff
52fe5a97ba Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
Brendan Eich
77da9d75ed Bug 494235: wrap escaping optimized closures for the debugger API (r=igor/mrbkap). 2009-06-04 18:58:47 -07:00
Jason Orendorff
5504115d71 Bug 491646 - Expose js_StrictlyEqual() to consumers. r=mrbkap.
--HG--
extra : rebase_source : 620a67bca11c2e04692d3f72df8739028d0dbd21
2009-05-15 14:51:02 -05:00
Igor Bukanov
92f94e451c bug 491126 - sharing object map for non-native objects. r=brendan 2009-05-14 12:35:23 +02:00
Robert Sayre
8b3982769a Bug 442059 - [native JSON] allow to blacklist keys by name when encoding to JSON. r=brendan 2009-05-07 13:28:21 -07:00
Igor Bukanov
3597961095 bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-06 20:33:10 -02:30
jorendorff
93c6d226d3 Record all calls to native functions (487134, r=gal, brendan). 2009-05-05 14:26:06 -07:00
Andreas Gal
fe1ed6adb9 Backed out changeset 6534f8b9aa74 (bug 491013, assert on startup). 2009-05-04 15:07:53 -07:00
Igor Bukanov
d77b8664fb bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-03 20:43:55 -04:00
Igor Bukanov
35116060a2 bug 489501 - consolidating
js_SetProto must mutate the prototype chain. r=brendan
2009-05-01 13:48:27 -07:00
Graydon Hoare
bb4177dccd Bug 490044 - TM: Add deep-bailing write barrier to global shape change code, r=brendan. 2009-04-24 17:47:32 -07:00
Andreas Gal
a89bbaad23 Stay on trace when reading holes from dense arrays (489899, r=brendan). 2009-04-24 16:28:21 -07:00
Andreas Gal
9471e12092 Fix burning PowerPC builds. 2009-04-22 17:16:26 -07:00
Andreas Gal
a51f22dbdf Need an API exposed to control code cache size (474497, r=bent,brendan, sr=mrbkap). 2009-04-22 16:52:59 -07:00
jorendorff
e1b8077e65 Leaving outermost request should js_LeaveTrace (480301, r=brendan). 2009-04-20 18:22:00 -07:00
igor
48c3925a9a js_SetPropertyHelper does not null *entryp for read-only properties (489171, r=gal,brendan). 2009-04-20 17:00:59 -07:00
Blake Kaplan
f3d1280a04 Bug 488925 - Check for string indexes in the API entry points. r=brendan 2009-04-20 12:21:44 -07:00
Igor Bukanov
4ad2e764fa bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal 2009-04-20 12:10:29 +02:00
Igor Bukanov
fd49b19773 Backed out changeset f4662701526b (bug 488414) to fix !JS_THREADSAFE compilation errors 2009-04-20 11:59:36 +02:00