Commit Graph

632 Commits

Author SHA1 Message Date
David Mandelin
2d74ccfb40 Backed out changeset d1d52f7820f2 due to Mochitest crashes. 2010-07-22 17:11:10 -07:00
Luke Wagner
3a499b8646 Bug 579183 - CallStack was a confusing name, CallStackSegment is more accurate (r=dvander) 2010-07-22 13:46:43 -07:00
Sean Stangl
05cbb86f23 [JAEGER] Fix building without --enable-methodjit. 2010-07-21 17:25:04 -07:00
Andrew Drake
3f3b764d82 [JAEGER] Implement trap part of debug API. r=dvander, b=570650 2010-07-21 03:04:39 -07:00
Sean Stangl
5abdc6ec59 [JAEGER] Fix mac build: inlineCallCount is a uintN, not uintptr_t. 2010-07-20 23:41:46 -07:00
David Anderson
fa4e27c745 [JAEGER] Basic integration of tracing JIT and method JIT (bug 578727). 2010-07-20 18:01:16 -07:00
David Anderson
cf5a8cf505 [JAEGER] Merge from tracemonkey. 2010-07-19 20:49:26 -07:00
Blake Kaplan
de74d9d8f4 Bug 563106 - Tie XPConnect to compartments. r=jorendorff/gal/jst 2010-07-19 13:36:49 -07:00
Peter Van der Beken
72204735c9 Fix for bug 582649 (Too-much-recursion crash with setUserData [@ * | XPCConvert::JSArray2Native]). r=mrbkap, a=bsmedberg. 2010-08-24 15:50:15 +02:00
Brendan Eich
1813531fe8 Back out patch for bug 577648, need to fix a leak. 2010-07-23 14:21:50 -07:00
Chris Leary
1834523ed5 Bug 577708: Remove Algol-like display optimization. (r=dvander) 2010-07-11 00:57:13 -07:00
Brendan Eich
72e638d9ef arguments.callee.caller does not work in FF 4 under certain circumstances (577648, r=jwalden). 2010-07-10 11:48:00 -07:00
Jason Orendorff
cdfa6b4210 Fix debug non-threadsafe builds. rs=brendan. 2010-07-23 11:32:50 -05:00
Igor Bukanov
6eb0fa7807 bug 552266 - - asserting that autorooters are used only under a request. r=mrbkap 2010-07-23 13:33:15 +02:00
Igor Bukanov
8e449d33fb bug 580458 - trigger operation callback once per thread, not once per cx. r=gal,mrbkap 2010-07-22 22:59:59 +02:00
Andreas Gal
817e9fe04a Remove hole count from dense arrays (580846, r=njn). 2010-07-22 18:45:21 -07:00
David Anderson
64fd3377e9 [JAEGER] Merge from fatval & TM. 2010-07-05 18:07:39 -07:00
Luke Wagner
4859d6f3af Fix build bust. Remove upper/lower case diagnostic in xpconnect 2010-07-05 14:02:41 -07:00
Luke Wagner
97d36215fd Change asX to toX, asXRef to getXRef, XTag to XValue 2010-07-05 13:44:59 -07:00
Luke Wagner
d119486317 Merge from TM
--HG--
rename : js/src/xpconnect/src/wrappers/AccessCheck.cpp => js/src/xpconnect/wrappers/AccessCheck.cpp
2010-07-04 14:49:39 -07:00
Luke Wagner
a190b35d3a Browser build fixes (stuff still broken) 2010-07-04 12:35:21 -07:00
Luke Wagner
d52a11e637 Get merge building js shell and passing trace/ref tests. Still need to fix up browser 2010-07-04 00:12:06 -07:00
Andreas Gal
38966949eb Implement remaining cross compartment wrappers (574924, r=mrbkap). 2010-07-02 13:54:53 -07:00
Luke Wagner
15a253d499 Merge 2010-07-01 23:10:37 -07:00
Igor Bukanov
d7aedab4b6 bug 552266 - Allow for only one JSContext to be in a request on a given thread. r=mrbkap 2010-06-26 22:31:54 +02:00
Andreas Gal
4e11d941dd Disentangle cycle collector and JS GC (549806, r=peterv/igor). 2010-07-15 17:58:36 -07:00
Andreas Gal
f8afdf22b4 Backed out bug 549806. Very frustrating. 2010-07-15 15:39:06 -07:00
Andreas Gal
a148529929 Disentangle cycle collector and JS GC (549806, r=peterv, igor). 2010-07-15 10:21:34 -07:00
Luke Wagner
99411cc93d Bug 549143 - fatvals 2010-07-14 23:19:36 -07:00
Luke Wagner
05a3a958d0 Move jsprvtd.h above jshashtable.h include in jscntxt.h to hopefully fix msvc bustage 2010-07-26 21:52:00 -07:00
Igor Bukanov
248a67333b bug 579100 - various GC cleanups. r=anygregor 2010-07-26 20:44:04 +02:00
David Anderson
a3709f170d [JAEGER] Merge from fatval branch. 2010-06-24 11:18:01 -07:00
Andrew Drake
73b4caf315 [JAEGER] Facilitate iteration over all JSStackFrames in the current stack. r=dvander 2010-06-23 21:59:23 -07:00
David Anderson
76bce82fed Backed out changeset 283566427469 2010-06-23 23:21:46 -07:00
Andrew Drake
8619e4fd69 [JAEGER] Facilitate iteration over all JSStackFrames in the current stack. r=luke 2010-06-23 21:59:23 -07:00
David Anderson
884b494c29 [JAEGER] Re-added Dave Mandelin's polymorphic inline caches for GETPROP (bug 572310). 2010-06-19 21:58:55 -07:00
Luke Wagner
ab09c2952d Switch jsids back to pointer-sized and fix a bunch of broken assumptions 2010-06-16 18:21:34 -07:00
Andreas Gal
7c91c2898c Fix warnings (no bug, r=mrbkap). 2010-06-25 17:57:53 -05:00
Andreas Gal
1efe5e2ec6 Implement runtime-wide wrap hook (574299, r=mrbkap). 2010-06-24 16:45:32 -05:00
Andreas Gal
69df940a4e Back out bug 580803. 2010-07-28 11:20:19 -07:00
Jason Orendorff
c1a1fb9be1 Bug 563099 - Compartments and wrappers API. r=gal.
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Brendan Eich
e672f52623 Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal). 2010-06-18 17:43:02 -07:00
Gregor Wagner
80ca0e83eb Bug 519949 - TM: remove LocalRootScopes r=igor 2010-06-23 11:37:35 -05:00
David Anderson
858278d975 [JAEGER] Merge from fatval branch. 2010-06-10 14:01:11 -07:00
Luke Wagner
1bb5128ab0 Merge with TraceMonkey 2010-06-09 21:59:18 -07:00
David Anderson
dfa571f425 [JAEGER] Added JSOP_EXCEPTION, JSOP_SETLOCALPOP. 2010-06-09 01:32:40 -07:00
Andrew Drake
eba8539f0d Merge. 2010-06-07 23:58:42 -07:00
Andrew Drake
3f53cbb073 [JAEGER] Generalize operation callback mechanism and implement for methodjit, r=dvander 2010-06-07 23:55:13 -07:00
David Anderson
ad6f6ffb02 [JAEGER] Merge from fatval branch. 2010-06-07 19:29:40 -07:00
Luke Wagner
9814243213 xpconnect builds 2010-06-07 13:57:40 -07:00
Igor Bukanov
24dee0ab53 bug 557538 - custom GC chunk allocation. r=gal,jorendorff 2010-06-07 11:17:15 +02:00
David Anderson
8e4fe7b3e9 [JAEGER] Merge from fatval branch. 2010-06-03 23:04:57 -07:00
Luke Wagner
8f6c06b148 Remove jsboxedword, change jsid to be a jsval 2010-06-02 19:09:04 -07:00
Brendan Eich
734c3a1ba9 Back out a81f2aed9c9b due to orange. 2010-06-18 17:39:22 -07:00
Brendan Eich
157c408713 Eliminate JSClass::reserveSlots and reserve fixed-per-class slots lazily (535416, r=gal). 2010-06-15 10:06:40 -07:00
Jason Orendorff
6472e34dba Bug 570169 - Part 1, preparation. Rearrange some code. r=gal. 2010-06-16 16:13:01 -05:00
Igor Bukanov
7cf58c5d22 bug 516832 - conservative stack scanning. This is based on the initial work by Anreas Gal and Gregor Wagner. r=brendan,gal 2010-06-04 16:22:28 +02:00
Robert Sayre
09e6a02419 Merge mozilla-central to tracemonkey. 2010-06-06 11:28:04 -04:00
Andreas Gal
70617110b8 Add an API for compartments (570040, r=jorendorff). 2010-06-04 16:32:10 -07:00
Andreas Gal
64497c9a69 Suppress deleted properties during iteration (569735, r=brendan). 2010-06-03 21:41:01 -07:00
Andreas Gal
3a5ff09808 Don't allow proxies to be fixed while handler traps execute (568473, r=igor). 2010-06-03 18:12:01 -07:00
David Anderson
38d6c177d7 [JAEGER] Merge from fatval. 2010-05-25 16:22:37 -07:00
David Anderson
0c7a8cdb75 [JAEGER] Merge from fatval. 2010-05-25 14:17:37 -07:00
Luke Wagner
5cbf1c02f9 Merge 2010-05-25 11:31:47 -07:00
Luke Wagner
2a81dc5df9 Use nan-boxing, only working on 32-bit 2010-05-25 11:20:59 -07:00
David Mandelin
8aa596de26 Fix most MSVC warnings. 2010-05-24 13:26:38 -07:00
Jason Orendorff
a1e58bc1c7 Back out changeset 96dbe8a784f1 (bug 569735) due to failing tests. 2010-06-02 23:48:22 -07:00
Andreas Gal
c7677875dc Rip out proto cache and store prototypes in the global object (569537, r=jorendorff). 2010-06-02 20:30:45 -07:00
Andreas Gal
a17cfb3b61 Suppress deleted properties during iteration (569735, r=brendan). 2010-06-02 20:11:56 -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
Brendan Eich
9c5f58d3ca Call instances uniquely shaped at birth due to lack of runtime-shared empty scope (569391, r=jorendorff). 2010-06-01 15:01:11 -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
Jeff Walden
e98ca56524 Bug 563938 - Refactor DST offset computation to pave the way for caching the DST offset when possible. No functionality change. r=sayrer
--HG--
extra : rebase_source : ad70045b70cc23dd7578e594490a10b4fc6fc7ef
2010-05-26 17:00:28 -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
Igor Bukanov
e496ace8f3 bug 566141 r=brendan 2010-05-25 12:54:55 +02:00
David Anderson
9f1aa534da Import method JIT 'outer' framework. 2010-05-22 17:09:52 -07:00
Luke Wagner
aac51d75b6 Turns out implicit conversion from JSString to Value is also dangerous (NULL). 2010-05-18 19:05:30 -07:00
Gregor Wagner
53e42ad125 Bug 566635 - TM: Change gcRootsHash and gcLocksHash to HashMap r=lw 2010-05-20 13:50:08 -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
98a19c517d finish jsxml 2010-05-17 16:52:38 -07:00
Luke Wagner
36fb0452a3 fix jsiter, convert jsmath 2010-05-12 22:58:11 -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
Chris Jones
84a3655756 Bug 551071: Suppress valgrind-reported "mismatched free()" (false alarm) of chromium objects by using mozalloc there (complements STL wrappers). Add a gross hack to prevent mozalloc macros from conflicting with methods in jscntxt.h. r=bent r=bsmedberg dependent-r=brendan 2010-06-04 18:16:34 -05:00
Luke Wagner
fb7ceb4c78 Bug 547851 - remove JSStackFrame::regs, JSStackFrame::callerFrame.sp (r=dvander) 2010-03-03 18:10:13 -08:00
Igor Bukanov
97039b9427 bug 561364 - removal of JSRuntime::gcLevel. r=jorendorff 2010-05-14 15:55:17 +02:00
Luke Wagner
bddd202c18 (unrebased) remove regs 2010-03-03 18:10:13 -08:00
Luke Wagner
24a4486456 (fake) remove-regs patch 2010-03-03 18:10:13 -08: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
Andreas Gal
b0f31bea3f No need to lookup parent/proto for iteration objects used for enumeration, and cache the last free iteration object for re-use (558058, r=brendan). 2010-04-08 10:55:58 -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
Andreas Gal
ecdd402081 Backed out changeset 61de331861af (bug 558058). 2010-04-08 09:02:34 -07:00
Andreas Gal
0eaa2c4331 No need to lookup parent/proto for iterator objects, and cache the last free one (bug 558058, r=brendan). 2010-04-08 07:53:09 -07:00
Andreas Gal
b0126e4074 Backed out changeset 687d1e4c213e (bug 557914). 2010-04-07 18:34:05 -07:00
Andreas Gal
d0f2401879 Remove gcIteratorTable (557914, r=Waldo). 2010-04-07 17:14:38 -07:00
Luke Wagner
81d7c2cbea Vector::resize should initialize new elements always; fixes AutoValueVector bug (r=Waldo) 2010-04-06 16:40: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
Jeff Walden
00f6066393 Bug 552560 - Remove support for __parent__. r=mrbkap 2010-04-11 13:51:00 -07:00
Luke Wagner
d0cd28412f Bug 562991 - Change JS_SetTrap closure argument type from void* to jsval (r=brendan) 2010-04-30 17:34:54 -07:00
Nicholas Nethercote
deb78e392f Bug 562553 - TM: cache double-to-string conversions to speed up v8-splay.js. r=cdleary. 2010-04-29 17:17:24 -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
fd7877710b bug 561539 - renaming AutoSaveRestoreWealRoots into AutoPreserveWeakRoots. r=brendan 2010-04-28 14:34:02 +02:00
Mike Moening
6531928c72 Bug 549532 - Allow custom memory allocator use in spidermonkey. Part 2. r=dvander 2010-04-27 14:17:11 -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
Dan Witte
fdcf03a939 Backing out due to bustage. 2010-04-26 15:16:05 -07:00
Mike Moening
b37862b231 Bug 549532 - Allow custom memory allocator use in spidermonkey. Part 2. r=dvander 2010-04-26 14:15:18 -07:00
Igor Bukanov
45a0a3043e bug 560471 - followup to fix restoration of weak roots 2010-04-24 20:35:50 +02:00
Igor Bukanov
8a04b0f372 bug 559141 - replacing GC chunk doubly linked list with js::vector. r=gal 2010-04-23 08:58:44 +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 Anderson
ab155f0037 Renamed InterpState to TracerState (bug 560988, r=luke). 2010-04-22 11:54:11 -07:00
David Anderson
e87d0a0586 Backed out changeset 4a28bd424400 (tinderbox red). 2010-04-21 16:30:06 -07:00
Mike Moenig
c846c95336 Support custom allocators (bug 549532 relanding, r=dvander). 2010-04-21 13:59:33 -07:00
Mike Moening
061831a072 Bug 559067 - Silence MSVC warnings in js/src. r=jorendorff 2010-04-16 16:00:51 -05:00
Gregor Wagner
fb425ba8b2 Bug 541140 - TM: don't return GCChunks immediately 2010-04-13 20:14:10 -07:00
Robert Sayre
ec12d7736d Backed out changeset c9faf5a2bc75 2010-04-13 18:15:20 -04:00
Mike Moenig
7cb366214a [JAEGER] Allow custom memory allocator use in spidermonkey (bug 549532, r=dvander). 2010-04-12 18:51:25 -07:00
Robert Sayre
0bc0ee1ad3 Merge mozilla-central to tracemonkey. 2010-04-12 09:45:24 -04:00
Dave Herman
ed6c552bb7 Bug 558437 - rename JSCompiler to js::Parser (r=brendan). 2010-04-10 21:15:35 -07:00
Andreas Gal
f39c969eaa Remove gcIteratorTable (557914, r=brendan). 2010-04-10 16:08:14 -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
bcf510f2ff Backed out changeset 60c4693a80ef 2010-05-11 16:37:18 -04:00
Igor Bukanov
e5c32894ce bug 563345 - using js::HashMap for JSRuntime::threads. r=lw 2010-05-11 09:49:28 +02:00
Ben Turner
50d613eab8 Bug 558675. 2010-04-11 15:05:07 -07:00
Jeff Walden
9fbb700478 Make the code prettier. r=style-police
--HG--
extra : rebase_source : 3bd513d15e315dcabf4d69e95e3ded5764a50363
2010-04-05 10:43:49 -07:00
Jason Orendorff
d354a0998c No bug: fix visibility warnings in GCC, no_r=me 2010-04-01 11:01:14 -05:00
Jason Orendorff
33d9cdc537 Bug 556315 part 1 - Remove GCReachableFrame. r=gal.
--HG--
extra : rebase_source : 1db26956cf3f73f1213ab222f4c3ee12637265c5
2010-03-31 17:17:20 -05:00
Jeff Walden
570eb3ecf8 Bug 538690 - js::AutoValueVector for auto-managed rooting and storage of an indefinite number of jsvals. r=igor 2010-03-01 14:46:15 -08:00
Nicholas Nethercote
07c2f920b4 Bug 555881 - TM: remove dead fields from TraceMonitor. r=waldo. 2010-03-30 18:06:38 -07:00
Jeff Walden
ed2243cc54 Remove all remnants of JSTempValueRooter. WIN! 2010-03-30 11:14:47 -07:00
Brendan Eich
34b1a91d97 Fix arguments objects to share a runtime-wide empty scope, instead of each getting a differently shaped own scope at birth (554626, r=igor). 2010-03-30 00:44:28 -07:00