Andreas Gal
4017bf1be3
str_match should use js_GetCurrentBytecodePC (484308, r=mrbkap).
2009-03-20 17:07:30 -07:00
Jim Blandy
debdb32ef3
Bug 480132: Clone lexical blocks only when needed. r=igor
...
Terminology:
A "script block" is an object of class Block allocated by the byte
compiler and associated with a script. Script blocks are never
modified, and may be used as a prototype for a "closure block":
A "closure block" is an object of class Block that holds variables
that have been closed over (although we actually leave the variables
on the stack until we leave their dynamic scope). A closure block is
a clone of a script block (its prototype is a script block).
Adjust the meanings of fp->blockChain and fp->scopeChain:
fp->blockChain is always the innermost script block in whose static
scope we're executing.
fp->scopeChain is the current scope chain, including 'call' objects
and closure blocks for those function calls and blocks in whose
static scope we are currently executing, and 'with' objects for with
statements; the chain is typically terminated by a global object.
However, as an optimization, the young end of the chain omits block
objects we have not yet needed to clone.
Closures need fully reified scope chains, so have js_GetScopeChain
reify any closure blocks missing from the young end of fp->scopeChain
by cloning script blocks as needed from fp->blockChain. Thus, if we
never actually close over a particular block, we never place a closure
block for it on fp->scopeChain.
Have JSOP_ENTERBLOCK and JSOP_LEAVEBLOCK always keep fp->blockChain
current. When JSOP_LEAVEBLOCK pops a block from fp->blockChain that
has been cloned on fp->scopeChain, pop fp->scopeChain as well.
Remove the JSFRAME_POP_BLOCKS flag, as it is no longer needed.
Ensure that the JIT won't have to create closure blocks or call
js_PutBlockObject; it can't handle those things yet. Note our current
script block when we begin recording. Abort recording if we leave
that block; we can't tell in advance whether it will need to be "put"
in future trace invocations. Leave trace if we call js_GetScopeChain
while in the static scope of lexical blocks. Remove JIT tests based
on JSFRAME_POP_BLOCKS.
Verify that generators capture the correct value for blockChain.
Add a constructor to JSAutoTempValueRooter for rooting JSObject
pointers.
2009-03-16 09:55:06 -07:00
Jim Blandy
74847db9cd
Back out 480132: orange on Linux ( http://tinderbox.mozilla.org/showlog.cgi?log=TraceMonkey/1237017748.1237029269.2403.gz&fulltext=1 )
2009-03-14 08:19:58 -07:00
Jim Blandy
bed3611385
Bug 480132: Clone lexical blocks only when needed. r=igor
...
Terminology:
A "script block" is an object of class Block allocated by the byte
compiler and associated with a script. Script blocks are never
modified, and may be used as a prototype for a "closure block":
A "closure block" is an object of class Block that holds variables
that have been closed over (although we actually leave the variables
on the stack until we leave their dynamic scope). A closure block is
a clone of a script block (its prototype is a script block).
Adjust the meanings of fp->blockChain and fp->scopeChain:
fp->blockChain is always the innermost script block in whose static
scope we're executing.
fp->scopeChain is the current scope chain, including 'call' objects
and closure blocks for those function calls and blocks in whose
static scope we are currently executing, and 'with' objects for with
statements; the chain is typically terminated by a global object.
However, as an optimization, the young end of the chain omits block
objects we have not yet needed to clone.
Closures need fully reified scope chains, so have js_GetScopeChain
reify any closure blocks missing from the young end of fp->scopeChain
by cloning script blocks as needed from fp->blockChain. Thus, if we
never actually close over a particular block, we never place a closure
block for it on fp->scopeChain.
Have JSOP_ENTERBLOCK and JSOP_LEAVEBLOCK always keep fp->blockChain
current. When JSOP_LEAVEBLOCK pops a block from fp->blockChain that
has been cloned on fp->scopeChain, pop fp->scopeChain as well.
Remove the JSFRAME_POP_BLOCKS flag, as it is no longer needed.
Ensure that the JIT won't have to create closure blocks or call
js_PutBlockObject; it can't handle those things yet. Note our current
script block when we begin recording. Abort recording if we leave
that block; we can't tell in advance whether it will need to be "put"
in future trace invocations. Leave trace if we call js_GetScopeChain
while in the static scope of lexical blocks. Remove JIT tests based
on JSFRAME_POP_BLOCKS.
Verify that generators capture the correct value for blockChain.
Add a constructor to JSAutoTempValueRooter for rooting JSObject
pointers.
2009-03-14 00:58:27 -07:00
Jim Blandy
d72dff994b
Back out 480132 fix; static analysis red
2009-03-14 00:57:54 -07:00
Jim Blandy
4778b96a85
Bug 480132: Clone lexical blocks only when needed. r=igor
...
Terminology:
A "script block" is an object of class Block allocated by the byte
compiler and associated with a script. Script blocks are never
modified, and may be used as a prototype for a "closure block":
A "closure block" is an object of class Block that holds variables
that have been closed over (although we actually leave the variables
on the stack until we leave their dynamic scope). A closure block is
a clone of a script block (its prototype is a script block).
Adjust the meanings of fp->blockChain and fp->scopeChain:
fp->blockChain is always the innermost script block in whose static
scope we're executing.
fp->scopeChain is the current scope chain, including 'call' objects
and closure blocks for those function calls and blocks in whose
static scope we are currently executing, and 'with' objects for with
statements; the chain is typically terminated by a global object.
However, as an optimization, the young end of the chain omits block
objects we have not yet needed to clone.
Closures need fully reified scope chains, so have js_GetScopeChain
reify any closure blocks missing from the young end of fp->scopeChain
by cloning script blocks as needed from fp->blockChain. Thus, if we
never actually close over a particular block, we never place a closure
block for it on fp->scopeChain.
Have JSOP_ENTERBLOCK and JSOP_LEAVEBLOCK always keep fp->blockChain
current. When JSOP_LEAVEBLOCK pops a block from fp->blockChain that
has been cloned on fp->scopeChain, pop fp->scopeChain as well.
Remove the JSFRAME_POP_BLOCKS flag, as it is no longer needed.
Ensure that the JIT won't have to create closure blocks or call
js_PutBlockObject; it can't handle those things yet. Note our current
script block when we begin recording. Abort recording if we leave
that block; we can't tell in advance whether it will need to be "put"
in future trace invocations. Abort recording if we call
js_GetScopeChain while in the static scope of lexical blocks. Remove
JIT tests based on JSFRAME_POP_BLOCKS.
Verify that generators capture the correct value for blockChain.
Add a constructor to JSAutoTempValueRooter for rooting JSObject
pointers.
2009-03-13 23:43:32 -07:00
Robert Sayre
8e061e35da
Backout patch for Bug 480132. Debug only nit fix busts static analysis compile.
2009-03-14 02:20:45 -04:00
Jim Blandy
40e8a7d560
Bug 480132. SpiderMonkey clones too many blocks into the heap. r=igor
2009-03-14 02:09:28 -04:00
Igor Bukanov
4b95050fe2
Backed out changeset 57de81309176 - bug 437325 - due to mochitest leaks on tinderbox
2009-03-13 18:36:46 +01:00
Igor Bukanov
3de011b9cd
bug 437325 - JSThread is no longer shared between runtimes. r=brendan
2009-03-13 12:36:21 +01:00
Igor Bukanov
75640ecce1
Backed out changeset 4159ebdfe31e to fix some typos in the patch
2009-03-13 12:21:04 +01:00
Igor Bukanov
8eeedd9647
bug 437325 - JSThread is not shared between runtimes. r=brendan
2009-03-13 12:10:34 +01:00
Igor Bukanov
4ccdead266
bug 480700 - no more static asserts in headers. r=brendan
2009-03-05 12:12:50 +01:00
Andreas Gal
8c3223aab5
Browser spuriously sets runtime->anyArrayPrototypeHasElement and makes perf bad (481251, r=mrbkap).
2009-03-03 18:04:15 -08:00
Jason Orendorff
2f464f3348
Bug 479826 - Remove cx->pcHint. r=gal.
...
--HG--
extra : rebase_source : caf9fef929fe161fad2f6a98b53cb3d00e43f31f
2009-02-23 17:29:40 -06:00
Benjamin Smedberg ext:(%2C%20Jason%20Orendorff%20%3Cjorendorff%40mozilla.com%3E)
d40f9751c8
Bug 476643 - JS_REQUIRES_STACK errors in nsXPCWrappedJSClass::CallMethod. Mozilla code uses some JS-internal APIs and needs to bail off trace before doing so. This shouldn't affect performance now becuase XPConnect methods are not traceable yet. r=mrbkap, sr=mrbkap.
2009-02-18 12:47:16 -06:00
Jason Orendorff
c9b0918474
Bug 477142 - _FAIL builtins need to be GC-safe. r=brendan.
...
--HG--
extra : rebase_source : 10515f7d1f5a85c1965c812f55d91d3d0f49a28e
2009-02-11 13:33:17 -06:00
Andreas Gal
93eb39269d
Substitute operation counting with a watchdog thread (477187, 3nd attempt, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-10 14:07:01 -08:00
Andreas Gal
474d0d308f
Backout bug 477187.
2009-02-10 09:54:14 -08:00
Andreas Gal
f796bcd60a
Substitute operation counting with a watchdog thread (477187, 2nd attempt, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-10 03:45:36 -08:00
Andreas Gal
7ea402f38c
Merge.
2009-02-09 22:54:41 -08:00
Andreas Gal
2a20c2a6de
Backing out bug 477187. Breaks xpcshell.
2009-02-09 22:54:05 -08:00
Andreas Gal
2e46d80547
Merge.
2009-02-09 18:21:15 -08:00
Andreas Gal
cbfbbd3cac
Substitute operation counting with a watchdog thread (477187, r=brendan/mrbkap/jst, sr=brendan/jst).
2009-02-09 18:20:50 -08:00
Jeff Walden
31fdce5e81
Bug 467747 - JS version/option unsyncing results in JS modules not being loaded with the very latest JS version, resulting in syntax errors when loading modules that use new JS syntax. r=brendan
2009-02-07 23:23:01 -08:00
Igor Bukanov
61cd533870
bug 476934 - JS_(Set|Clear)ContextThread() must wait bfor the GC. r=brendan
2009-02-07 05:05:32 +01:00
Jason Orendorff
1a135641c5
Bug 462042 - TM: Allow GC with traced machine code on stack. r=brendan.
2009-02-03 18:25:18 -06:00
Jason Orendorff
e4c1fb1cfd
Bug 462027 - Bail off trace when reentering interpreter. r=gal.
2009-02-03 18:25:12 -06:00
Jason Orendorff
4e3f2cfd40
Revert to 07be1f190a3d. Revision 5f5c1cd63641 should not have been pushed.
2009-02-03 12:38:44 -06:00
Jason Orendorff
df4d8addef
Bug 462042 - TM: Allow GC with traced machine code on stack. r=brendan.
2009-02-02 20:49:53 -06:00
Jason Orendorff
f6ffd1d380
[mq]: bug-462027-v9
2009-02-02 20:42:46 -06:00
Andreas Gal
68e8901a4a
Bake the value of fp->imacpc into the trace and report it at recording time when detecting inside JSOP_GETELEM (follow-up for 476238, r=brendan,jorendorff).
2009-02-02 18:21:28 -08:00
Andreas Gal
3682914dfd
Leave a hint for GetProperty in the context so it can figure out the current bytecode location without de-optimizing (476238, r=jorendorff).
2009-02-02 17:25:59 -08:00
Jason Orendorff
37f2985bdf
Bug 476177 - TM: cx->stackPool must not be accessed on trace. r=brendan.
...
--HG--
extra : rebase_source : 746d61b54aa38cbe18fe31bce4efcbbad4629678
2009-01-30 17:40:05 -06:00
Graydon Hoare
5219181495
Bug 475474 - Maintain globalSlots per global, not just one per JIT instance, r=danderson.
2009-01-29 15:59:52 -08:00
Jason Orendorff
2ba2f5d3ed
Bug 475761 - TM: js_Any_GetProp and friends can reenter. r=brendan. Note that this patch alone does not fix the bug. The rest of the fix comes in bug 462027.
2009-01-29 00:13:03 -06:00
Jason Orendorff
6142999fde
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter (relanding with a bug fix). r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
2009-01-28 09:24:35 -06:00
Andreas Gal
3aa2396acf
Merge.
2009-01-27 16:42:29 -08:00
Andreas Gal
3361accf0e
Merge.
2009-01-27 16:42:10 -08:00
Andreas Gal
1bbc35daad
Backed out changeset d50d3681b94e (attempted re-landing of 474771).
2009-01-27 16:41:43 -08:00
Brendan Eich
60770fa5b5
Bug 454184 - Implement eval caching (r=mrbkap).
2009-01-27 16:40:40 -08:00
Brendan Eich
914f4ef313
Back out due to Mac Tp orange (454184).
2009-01-27 15:52:10 -08:00
Brendan Eich
335791e844
Bug 454184 - Implement eval caching (r=mrbkap).
2009-01-27 13:53:31 -08:00
Andrei Saprykin
7b91b30052
bug 474801 - Checking for MaybeGC conditions when allocating GC things in JS shell. r=igor
2009-01-27 18:21:51 +01:00
Igor Bukanov
65cda4b280
Backed out changeset 39b1c9f21064 - the patch again has triggered the crashtest timeout.
2009-01-27 15:11:47 +01:00
Andreas Gal
f17d7cf056
Set on-trace flag only during trace execution, not recording (474771, r=brendan, patch has failed before, please back out at the earliest sign of trouble).
2009-01-27 01:55:31 -08:00
Andreas Gal
868cf7c72c
Backed out changeset ece63b96379b
2009-01-27 00:10:38 -08:00
Jason Orendorff
c0cc74fa99
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter. r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
2009-01-27 00:19:58 -06:00
Graydon Hoare
170e5b5921
Bug 473688 - provide a 2-level hash map (global, pc) -> tree, r=gal.
2009-01-26 19:53:19 -08:00
Robert Sayre
b5cd4ca3dc
Backout c0b2c82a524e.
2009-01-25 22:36:46 -08:00
Andreas Gal
e481ee3eb8
Only set onTrace flag while running native code, not when recording (474771, r=brendan).
2009-01-25 20:24:25 -08:00
Brendan Eich
c13882a292
Bug 470187 - TM: "Assertion failure: entry->kpc == (jsbytecode*) atoms[index]" with valueOf, regexp (r=jorendorff).
2009-01-23 14:33:42 -08:00
Andreas Gal
184fc63cd1
Backout bug 468782. Confirmed to leak.
2009-01-25 16:38:31 -08:00
Jason Orendorff
c9961fe054
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter. r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
2009-01-22 16:39:26 -06:00
Andreas Gal
1d277bc633
Backout all patches since last mozilla-central merge (Thu Jan 22 19:14:02 2009 -500 by sayrer).
2009-01-25 02:58:22 -08:00
Andreas Gal
1baff988de
Only set onTrace flag while running native code, not when recording (474771, r=brendan).
2009-01-23 20:22:23 -08:00
Andreas Gal
1b154f72a6
Merge.
2009-01-23 15:15:34 -08:00
Andreas Gal
920ecc2113
Backed out changeset 17663da1b840 (bug 462027).
2009-01-23 15:14:46 -08:00
Brendan Eich
94412bc214
Bug 470187 - TM: "Assertion failure: entry->kpc == (jsbytecode*) atoms[index]" with valueOf, regexp (r=jorendorff).
2009-01-23 14:33:42 -08:00
Jason Orendorff
9ff9140ae0
Bug 468782 - TM: js_FastValueToIterator and js_FastCallIteratorNext can reenter. r=brendan. Note that this changeset alone does not fix the bug; an upcoming patch in bug 462027 completes the fix.
...
--HG--
extra : rebase_source : 585d590aace159914629a786489b0883d23cf2a8
2009-01-22 16:39:26 -06:00
David Anderson
b3ff178462
Specialize trees to global types, so global type instability does not flush the cache (bug 469044, r=gal,brendan).
2009-01-22 01:45:19 -05:00
Igor Bukanov
348de1aa60
Backed out changeset a0e1d4a2404f - the patch for the bug 474586 causes timeouts in crash tests on Mac and Windows.
2009-01-21 20:22:42 +01:00
Andrei Saprykin
375373bb9b
bug 453432 - Checking for MaybeGC conditions when allocating GC things
2009-01-21 16:47:17 +01:00
Igor Bukanov
0d085b6a80
Backed out changeset e74857ea8248 - this caused unit test failures on Mac
2009-01-20 17:11:09 +01:00
Andrei Saprykin
63a490ceb1
bug 453432 - Checking for MaybeGC conditions when allocating GC things
2009-01-20 15:50:39 +01:00
Blake Kaplan
390a28ac59
Bug 473709 - Protect |str| across the call to js_NewRegExp. r=jwalden
2009-01-15 17:54:05 -08:00
Igor Bukanov
c032867e33
bug 472702 - using watchdog thread in js shell to trigger operation callback
2009-01-14 18:23:51 +01:00
Benjamin Smedberg
2e26c94375
Bug 472461 part 2 - jsgc crashes with !JS_TRACER, r=jorendorff for immediate bustage fix, and I'll get ex-post-facto review from Igor
2009-01-08 10:44:16 -05:00
Jason Orendorff
be00149c86
Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 4 of 4, rename recoveryDoublePool to reservedDoublePool, r=brendan)
...
--HG--
extra : rebase_source : d865549cb727aada20fbaa78286de37a97b85bca
2009-01-06 13:39:14 -06:00
Jason Orendorff
b20c028359
Bug 462021 - TM: Make JSStackFrame reconstitution infallible (part 3 of 4, call objects, r=brendan)
...
--HG--
extra : rebase_source : 14a82b2b08c8b7dbae5e72623685b7c3947df603
2008-12-11 17:53:05 -06:00
Andreas Gal
135f143d10
Backed out changeset adbe8e4b21dc due to tinderbox failures/timeouts (453157).
2009-01-05 16:22:42 -08:00
Andrei Saprykin
9f7c96f36f
bug 453157 - watchdog thread as an alternative to operation count. r=myself,mrbkap
2009-01-05 22:09:23 +01:00
Andreas Gal
a59109830e
Use a single lirbuf for the tracer and rewind lirbuf during GC (471821, r=danderson).
2009-01-02 10:55:02 -08:00
David Mandelin
90baccb99f
Bug 471602 part 1: make regexp compiler use one shared LIR buffer, r=gal
2008-12-31 16:41:33 -08:00
Igor Bukanov
81c3a2b632
Backed out changeset 2d5e6b1c7254 - busted the WINNT 5.1 talos tracemonkey.
2008-12-23 19:24:09 +01:00
Andrei Saprykin
11dac3f234
bug 453157 - watchdog thread as an alternative to operation count. r=igor,mrbkap
2008-12-23 16:12:11 +01:00
Igor Bukanov
136838d60b
Backed out changeset 7184e014cd05 - the patch for bug 453157 bursted tgfx test on Windows.
2008-12-21 21:49:06 +01:00
Andrei Saprykin
c68c632137
bug 453157 - watchdog thread as an alternative to operation count
2008-12-21 17:16:09 +01:00
Igor Bukanov
1a1341cdb4
bug 465032 - operationCount as the first field in JSContext. r=brendan
2008-12-18 16:24:34 +01:00
Jason Orendorff
b7fb9bc849
Bug 460865 - Read barrier for cx->fp. r=mrbkap, r=dmandelin.
...
--HG--
extra : rebase_source : 19963188b2f9f96336ce6ca28dbaefccf3a639b7
2008-12-09 10:38:32 -06:00
David Mandelin
37e098bf53
Bug 464828 fixed: make sure js_ThreadDestructorCB is called on main thread
2008-12-02 13:12:43 -08:00
David Anderson
321ce0dc05
Deep abort recorders outer recorders if we need to flush the JIT cache early (bug 463829, r=brendan,gal).
2008-11-15 18:54:24 -06:00
Andreas Gal
533b7866b1
Add back typedef for JSTraceMonitor (compilation fix for legacy C use of JS engine includes, no bug).
2008-11-07 16:58:36 -08:00
Andreas Gal
e609f0bb95
Cleanup GuardRecord, SideExit, and InterpStruct and extract VM-dependant fields (463313, r=danderson).
2008-11-07 15:23:43 -08:00
David Mandelin
c92c2000cc
Bug 461050 WIP: compiling simple regexps, r=danderson,agal
2008-11-04 14:51:51 -08:00
Andreas Gal
25404443ff
GC no longer flushes the JIT cache. Instead just make sure the shape of the global object will mismatch next time we try to record or execute code, which in turn will force a flush of the code cache (458288, r=brendan/danderson).
2008-10-28 16:22:08 -07:00
David Anderson
bf1a78f4fe
Implemented multiple type specialized trees per entry point (bug 450833, r=gal)
2008-10-27 20:42:49 -07:00
David Anderson
590d3d2443
Fixed crash from JIT cache flushes when js_Interpret was holding TraceRecorders (bug 458288, r=brendan).
2008-10-24 10:47:59 -07:00
Blake Kaplan
76e8be0e68
Bug 457310 - Don't potentially run code with an exception still on cx. r+sr=jst
2008-10-13 15:53:33 -07:00
Blake Kaplan
54cdbe81ec
Merge mozilla-central -> tracemonkey
2008-10-13 11:05:05 -07:00
Igor Bukanov
db18f808c9
Bug 408539 - Storing XPCContext inside JSContext
2008-10-11 19:35:39 +02:00
Brendan Eich
19e9638dc3
Bug 457920 - regexp-dna.js and generality want JSOP_GETELEM(dense array, "0") (r=mrbkap/gal).
2008-10-06 22:30:36 -07:00
Andreas Gal
83ea7eb834
Merge.
2008-09-30 16:35:52 -07:00
igor
19701dd91b
When replenishing the recovery double pool, detect if a GC happens (follow up work for 456826, r=gal).
2008-09-26 14:16:11 -07:00
Andreas Gal
7bb0a663e6
Use a pre-allocated pool of doubles to make sure we can safely recover in case of OOM or out of doubles (456826, r=brendan).
2008-09-25 19:11:48 -07:00
Jason Orendorff
c35bfc3682
Bug 389034 - JS_SetProperty() ends up resolving w/o JSRESOLVE_ASSIGNING (r=brendan, sr=bzbarsky)
2008-09-25 11:13:31 -05:00
Igor Bukanov
82f9c64e29
bug 378918 - scalable thread-local GC free lists
2008-09-25 15:27:59 +02:00
Robin Bate Boerop
2082181641
Bug 412866 - Reuse regexp arena, original patch by Robin Bate Boerop <moz@shorestreet.com>, refreshed by Ryan VanderMuelen <ryanvm@gmail.com>, r=crowder
2008-09-12 15:11:48 -07:00
Arpad Borsos
9b6f558fee
Bug 398946 - Remove JS_STATIC_DLL_CALLBACK and JS_DLL_CALLBACK from the tree; r=(benjamin + bent.mozilla)
2008-09-07 00:21:43 +02:00
Ben Turner
1e5c70827f
Bug 451729 - " Allow runtime's security callbacks to be overridden by a context". r=brendan.
2008-09-05 16:24:53 -07:00
Jim Blandy
90bf6a2d1e
Bug 97954: Give jsconfig.h a better name, and make room for the new js-config.h. r=bsmedberg
...
We'd like the SpiderMonkey configure script to generate a header file
named js-config.h to hold #definitions chosen at configure time that
affect the SpiderMonkey API, like JS_THREADSAFE. However, that name
is very similar to that of an existing header file, jsconfig.h. This
patch renames the existing header file, and updates all references to
it.
--HG--
rename : js/src/jsconfig.h => js/src/jsversion.h
2008-09-05 10:19:17 -07:00
Brendan Eich
4fa7c5195d
Put the trace-recording/executing flag in the trace monitor to handle many contexts per thread (451666, r=gal).
2008-09-03 00:38:24 -07:00
David Anderson
be89898254
Merge with mozilla-central.
2008-09-02 14:17:19 -07:00
Brendan Eich
45ea54d2d1
Don't let GC run when recording.
2008-08-29 16:04:54 -07:00
Brendan Eich
43b25b3c09
Rename gcDontBlock to runningJittedCode, and assert it's false on entry to js_Interpret (for 451657, but not the fix, just prolog).
2008-08-25 23:08:21 -07:00
Brendan Eich
9cd8e5a539
Upvar, v0.1 (limited to looking up from eval in a function, to the function's args and vars).
2008-08-21 03:47:33 -07:00
Brendan Eich
4a25cf5a32
Defer eval'ed script destruction to next GC; expose js_obj_eval for tracing.
2008-08-20 22:18:42 -07:00
Andreas Gal
f3972bfb84
Backed out changeset be63a51a0a3b. Breaks tofte if run from ./time.sh.
2008-08-20 14:57:49 -07:00
Brendan Eich
6bc330ef33
Don't disable property caching in eval (this requires GC'ing eval scripts). Do tolerate active Call object at head of scope chain in record_JSOP_CALLNAME, and go straight to the stack slots.
2008-08-20 14:04:37 -07:00
shaver@mozilla.org
5d3ad68bbe
merge from mozilla-central
2008-08-20 08:17:17 -07:00
Jason Orendorff
f9365c3994
Backing out changeset cf6c811e1272 (bug 407216) due to debug assertions.
2008-08-19 22:28:26 -05:00
Jason Orendorff
4b74677d5e
Bug 407216 - DOM quick stubs - faster paths for top N DOM methods (r+sr=jst, security r=mrbkap, build r=bsmedberg)
...
* * *
* * *
* * *
2008-08-19 21:38:24 -05:00
Igor Bukanov
bafd289e60
bug 445705 - eliminate Namespace and QName GC things. r=brendan
2008-08-29 10:10:34 +02:00
Peter Weilbacher
a39ac3faf1
[OS/2] Bug 451686: fix build break and fastcall warnings in js/src, r=shaver
2008-08-22 11:53:26 +03:00
Jason Orendorff
fe99024391
Bug 407216 - DOM quick stubs - faster paths for top N DOM methods (r+sr=jst, security r=mrbkap, build r=bsmedberg)
...
* * *
* * *
2008-08-19 21:38:24 -05:00
Andreas Gal
dfb94ccec1
Add a global type map to the monitor and rename slotList to globalSlots.
2008-08-18 21:08:35 -07:00
Andreas Gal
f1b353f1c2
Add a place to store the current shape of the global object as we add slots it the global slot list.
2008-08-18 13:14:19 -07:00
Andreas Gal
ad4bfa3b5b
Add a global slot list to the trace monitor.
2008-08-18 13:12:19 -07:00
Brendan Eich
13cfac8f97
Rework GCF_DONT_BLOCK to be cx->gcDontBlock, assert it's set, set before entering trace and clear on exit.
2008-08-11 11:18:16 -07:00
Brendan Eich
9a1bab4473
Restore C compilation support to jscntxt.h, used by liveconnect (only one file now: jsj_JavaClass.c had no need to include jscntxt.h).
2008-08-09 22:25:54 -07:00
Brendan Eich
eaf4254c15
Merge from mozilla-central.
2008-08-08 18:58:04 -07:00
Igor Bukanov
b16852c1cd
bug 412296 - removal of minarg support for fast native
2008-08-08 18:02:50 +02:00
Igor Bukanov
0818d2b656
bug 417131 - caching enumerators to speedup for-in loops. r=brendan
2008-08-19 13:00:14 -04:00
Brendan Eich
da42a8c6f7
Strength-reduced unsigned modulus in the fragment quick cache, don't use signed % which requires a branch and less-than-zero test.
2008-08-03 22:35:15 -07:00
Andreas Gal
6df2ea22c9
Add a fragment cache data structure. This will be used to accelerate the fragment lookup during branching.
2008-08-01 22:33:05 -07:00
shaver@mozilla.org
6a5deaf550
Decouple jscntxt.h from jstracer.h so that xpconnect doesn't try to include all of
...
nanojit.
2008-07-10 17:29:16 -04:00
Andreas Gal
f4e8e89333
Sync with mozilla-central.
2008-07-09 01:18:56 -07:00
Igor Bukanov
e1c0b7d628
Bug 443746 – Optimizing the enumeration state allocation. r=brendan
2008-07-06 21:02:44 +02:00
Andreas Gal
ea9279b6d0
Sync with mozilla-central.
2008-07-03 21:45:09 -07:00
Brendan Eich
d0966c0fc0
Clean up for-in ops and naming nit (443039, r=igor).
2008-07-01 18:59:18 -07:00
shaver@mozilla.org
d571eaac32
Merge with mozilla-central as of c5dc9d84d476, and restore obj-to-boolean fixes
...
from 2b107c27dedf (accidentally backed out during an earlier merge). 22 test
suite failures for -L lc2 lc3 spidermonkey-n slow-n, probably needs some guard
work in TRY_BRANCH_AFTER_COND.
2008-06-29 10:01:59 -04:00
bcrowder@mozilla.com
942878bc17
Fixing a comment spacing nit.
2008-06-25 14:18:12 -07:00
Andreas Gal
a1bf0819b2
Removed JSOP_HEADER code. Its too costly. This patch restore essentially the same performance as unmodified SM.
2008-06-10 14:44:51 -07:00
bcrowder@mozilla.com
595df96804
Bug 440473 - Crash [@ Decompile][@ js_GetSrcNoteOffset] with firebug/jQuery, r=igor
2008-06-25 13:50:26 -07:00
Igor Bukanov
5d6bef81d3
[Bug 378918] backing out to investigate the tinderbox leak problem
2008-06-24 18:55:06 +02:00
Igor Bukanov
855f22f5c4
Updating for mozilla-central
...
--HG--
branch : scalable_gc_free_lists_378918
2008-06-18 14:24:19 +02:00
Brendan Eich
894dd03e2a
First stage of loop table work; bitmap free space management and GC hook-up still to come.
2008-06-03 23:52:28 -07:00
Brendan Eich
946fa41d8c
Fiddle loop table slot interface and impl in hope of freeing slots over time.
2008-06-02 18:06:33 -07:00
Brendan Eich
01514c4b16
No JS_TRACER ifdefs, keep line len < 80, reparameterize jstracer.cpp functions, js_OpLength helper.
2008-06-02 17:19:41 -07:00
Andreas Gal
e461a72736
The table is now per-thread in a multi-threaded environment, and per-runtime otherwise. During code generation we merely allocate a loop table slot to each loop. Each thread will enlarge the table as needed in JSOP_HEADER.
2008-05-30 18:58:43 -07:00
Andreas Gal
de3107d2ee
Add a per-runtime loop attribute table that associates a jsval attribute with every loop in the code. The jsval is used initially as a counter until a certain threshold is reached, at which point the loop is traced and compiled and the resulting native code object is stored in the jsval to be executed for future encounters of the loop.
2008-05-30 10:11:56 -07:00
Brendan Eich
ed4274e179
Instrument loop headers with jsvals above fp->vars and below fp->spbase.
2008-05-28 19:07:32 -07:00
reed@reedloden.com
888518dda2
Bug 410606 - "AIX linker error for trunk build xpconnect module : ERROR: Undefined symbol: .JSAutoTempValueRooter::operator delete(void*,unsigned long)" [p=shailen.n.jain@gmail.com (Shailen) r+sr=mrbkap a1.9=beltzner]
2008-05-07 03:26:52 -07:00
igor@mir2.org
f1f0e7b6db
bug=427185 r=brendan a1.9=mtschrep
2008-04-14 23:29:06 -07:00
igor@mir2.org
6c1a48770b
backing out bug 427185 to investigate tinderbox orange
2008-04-14 02:33:05 -07:00
igor@mir2.org
ec3d5ccdf8
bug=427185 r=brendan a1.9=mtschrep
2008-04-14 01:01:39 -07:00
igor@mir2.org
e82307a73c
[Bug 425828] clearing property cache when thread gets the first context. r=brendan a1.9=blocking1.9
2008-04-02 02:14:59 -07:00
igor@mir2.org
303ea3000c
[Bug 423874] Allocating functions together with JSObject. r=brendan a1.9=blocking1.9
2008-04-02 00:46:12 -07:00
igor@mir2.org
bf88fe6798
bug=422348 r,a1.9=shaver proper overflow error reporting
2008-03-12 16:07:47 -07:00
igor@mir2.org
0490d5e5c8
bug=400902 r,a1.9=brendan Specialized GC arena for double values
2008-02-26 13:01:42 -08:00
jag@tty.nl
36cdf867ff
Backing out bug 400902. Something's still screwy :-(
2008-02-24 08:46:20 -08:00
igor@mir2.org
4e3cb1c91c
Bug 400902: specialized arena for doubles
2008-02-24 06:14:45 -08:00
shaver@mozilla.org
7550157d62
Bug 416675: refactor JSScope locking for reuse on non-native objects. r+a=brendan.
2008-02-14 16:44:46 -08:00
brendan@mozilla.org
23c36b84f4
Return of the property cache (365851, r=shaver).
2008-02-07 15:18:45 -08:00
igor@mir2.org
43ba6ec933
Bug 400902: Backing out due to test failures.
2008-02-03 19:41:31 -08:00
igor@mir2.org
0bed6fb140
Bug 400902: specialized arena for fast allocation of double values.r,a=brendan ab3=mtschrep
2008-02-03 18:37:22 -08:00
igor@mir2.org
b57a98b51e
Bug 400902: backing out due to test failures.
2008-02-01 11:59:59 -08:00
igor@mir2.org
ea03e8c6f0
Bug 400902: using a specialized GC arena for doubles. r,a=brendan a1.9b3=mtschrep
2008-02-01 10:39:23 -08:00
igor@mir2.org
b80ad65983
Bug 354135: protect against oo recursion in e4x. r,a=brendan, a1.9b3=mtschrep
2008-01-31 22:01:17 -08:00
brendan@mozilla.org
0fb54b4f78
Move serialized cycle detector for __proto__ and __parent__ into js_GC (414452, r=igor+shaver).
2008-01-29 22:29:49 -08:00
crowder@fiverocks.com
52337e9048
Bug 408113: allocate stackPools less often, r=brendan, a=blocking1.9 (schrep)
2008-01-29 18:11:30 -08:00
igor@mir2.org
3d870e0a9e
Bug 413744: JS_GCMETER requires to recompile just js/src, not the whole browser. r,a=brendan
2008-01-29 14:17:25 -08:00
brendan@mozilla.org
a4625d2c2b
Revert last checkin (414452).
2008-01-29 00:45:14 -08:00
brendan@mozilla.org
f4f2be6738
Move guts of js_SetProtoOrParent to jsgc.c, unifying serialization and deadlock avoidance machinery (414452, r=igor).
2008-01-28 23:18:21 -08:00
igor@mir2.org
70aa979d4f
Bug 411025: temp rooting implemenation cleanup, r,a=brendan
2008-01-19 16:46:37 -08:00
brendan@mozilla.org
d56e272e19
* Menu of -D flags for enabling instrumentation, as a commented-out CFLAGS += setting for convenient testing. * js_FindProperty and js_LookupPropertyWithFlags return indexes into the scope and prototype chains, respectively, to support internal instrumentation, and to pave the way for the return of the property cache (bug 365851).. * jsutil.[ch] JSBasicStats struct and functions for computing mean/sigma/max and auto-scaling histogram. * JS_SCOPE_DEPTH_METER instrumentation for compile- and run-time scope chain length instrumentation: + At compile time, rt->hostenvScopeDepthStats and rt->lexicalScopeDepthStats meter scope chains passed into the compile and evaluate APIs. + At runtime, rt->protoLookupDepthStats and rt->scopeSearchDepthStats track steps along the prototype and scope chains until the sought-after property is found. * JS_ARENAMETER uses JSBasicStats now. * Added rt->liveScopePropsPreSweep to fix the property tree stats code that rotted when property tree sweeping moved to after the finalization phase. * Un-bitrotted some DEBUG_brendan code, turned some off for myself via XXX. * Mac OS X toolchain requires initialized data shared across dynamic library member files, outlaws common data, so initialize extern metering vars. * Old HASHMETER code in jshash.[ch] is now JS_HASHMETER-controlled and based on JSBasicStats. * DEBUG_scopemeters macro renamed JS_DUMP_SCOPE_METERS; uses JSBasicStats now. * Disentangle DEBUG and DUMP_SCOPE_STATS (now JS_DUMP_PROPTREE_STATS) and fix inconsistent thread safety for liveScopeProps (sometimes atomic-incremented, sometimes runtime-locked). * Compiler-modeled maxScopeDepth will propagate via JSScript to runtime for capability-based, interpreter-inlined cache hit qualifier bits, to bypass scope and prototype chain lookup by optimizing for common monomorphic get, set, and call site referencing a prototype property in a well-named object (no shadowing or mutation in 99.9% of the cases).
2008-01-12 16:31:31 -08:00
igor@mir2.org
7bc03fee82
Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst
2008-01-10 07:39:02 -08:00
igor@mir2.org
1a974d67e5
Bug 409109: backing the checking as the tree was closed.
2008-01-09 07:31:13 -08:00
igor@mir2.org
f8145c5e61
Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst
2008-01-09 07:20:39 -08:00
brendan@mozilla.org
4bef2e90ac
64-bit fixes for problems reported by edwin@cheatah.nl (many thanks to Edwin; 410941, r=igor).
2008-01-07 00:41:06 -08:00
igor@mir2.org
7cb5b01011
Bug 409109: Backing out once again to figure out the reason for talos regressions.
2008-01-05 17:20:16 -08:00
igor@mir2.org
9bb5aae331
Bug 409109: using the new operation counting JS API for monitoring long-running scripts. a,r=brendan
2008-01-05 03:25:49 -08:00
igor@mir2.org
a9fa67b981
Bug 364776: New operation counter API to replace branch callback. r,a=brendan
2008-01-03 01:28:40 -08:00
jruderman@hmc.edu
91424bc51f
Backing out igor's fixes for bug 409109 and bug 364776 in an attempt to fix Tinderbox tgfx failures that are keeping talos red
2007-12-26 11:19:17 -08:00
igor@mir2.org
aa66348a18
Bug 364776: new operation callback API to replace branch callback. a,r=brendan
2007-12-25 02:12:26 -08:00
igor@mir2.org
e46dc99233
Bug 394941: report exhausting of the script memory quota as ordinary runtime exceptions. r=brendan, a1.9=beltzner
2007-11-22 14:21:18 -08:00
igor@mir2.org
1831710dfa
Bug 403678: GC thing callback is removed. r,a=brendan
2007-11-19 02:57:04 -08:00
reed@reedloden.com
f79a9b57ed
Bug 401188 - "Thread-unsafe updates to sub-atomic rt->gc{Poke,Zeal}" [p=crowder r=igor a1.9=brendan]
2007-11-13 02:44:08 -08:00
reed@reedloden.com
b4a5976379
Bug 353116 - ""has no properties" is misleading and should be replaced with "is null or undefined"" [p=rich@rd.gen.nz (Rich Dougherty) r=brendan r=crowder a1.9=damons]
2007-11-12 21:23:22 -08:00
igor@mir2.org
9bd984356d
Bug 402087: fixing iteraction between gczeal mode and scripts. r,a=brendan, aM9=beltzner
2007-11-06 03:05:00 -08:00
jst@mozilla.org
858f753261
Landing patch for bug 401687. Stop reference counting JS objects in the cycle collector. Patch by peterv@propagandism.org, r+sr=dbaron@mozilla.com,igor@mir2.org, a=dsicore@mozilla.com
2007-11-01 15:51:57 -07:00
brendan@mozilla.org
19b6fcc0f0
Back-out due to test failure.
2007-09-17 18:22:20 -07:00
brendan@mozilla.org
2260fcfe2e
Make GCF_SYSTEM immutable per object (396487, r=igor).
2007-09-17 17:47:42 -07:00
igor@mir2.org
f058abee03
Bug 392263: using mmap/VirtualAlloc for GC arenas. r=brendan
2007-09-16 06:03:17 -07:00
igor@mir2.org
f3d30850c6
Bug 392263: taking out the patch due to bug 396299.
2007-09-16 05:02:56 -07:00
igor@mir2.org
5855f137e7
Bug 392263: using mmap/VirualAlloc for GC arenas. r=brendan
2007-09-15 10:19:32 -07:00
igor@mir2.org
9343ce4a2c
Bug 392263: taking out the patch due to Mac build problems.
2007-09-15 08:26:30 -07:00
igor@mir2.org
43e3bb8cc3
Bug 392263: using mmap/VirualAlloc for GC arenas. r=brendan
2007-09-15 08:11:41 -07:00
igor@mir2.org
8f31883e5a
Bug 393368: new API to limit heap consumption by stack-like data structures used by compiler, decompiler and interpreter.
2007-08-27 15:21:55 -07:00
igor@mir2.org
4d68066c7e
Bug 387481, bug 389063: multithreading atom fixes and cleanups. r=brendan
2007-08-07 00:29:32 -07:00
brendan@mozilla.org
ba3ad2ce7a
Fast (frame-less) native call optimizations (385393, r=igor).
2007-08-01 21:33:52 -07:00
brendan@mozilla.org
18e7692117
Backing out, see bug 389122 and orange or red tinderboxes.
2007-07-21 16:21:20 -07:00
brendan@mozilla.org
5f038f69ae
Fast natives and related optimizations (385393, r=igor).
2007-07-21 14:39:42 -07:00
igor@mir2.org
79f3a28c2d
Bug 380469: Calling close on unreachable generators from GC is no longer supported. r=brendan
2007-07-13 00:28:47 -07:00
crowder@fiverocks.com
b41a2f79a8
Bug 357016: follow-up to fix another void* nit, patch by Edward Lee edilee@mozilla.com, r=crowder
2007-07-12 17:04:23 -07:00
igor@mir2.org
ab560f0cb7
Bug 385729: objects and regexps are stored in separated tables in JSScript. r=brendan,mrbkap
2007-07-08 02:03:34 -07:00
crowder@fiverocks.com
daa4556abc
Bug 357016: spidermonkey should be buildable by a C++ compiler, patch by
...
crowder/Jason Orendorff, r=brendan
2007-07-05 13:37:47 -07:00
igor@mir2.org
bc0a21a243
Bug 378793: Patch from Mike Moening and me to implement per-context debug hooks. r=brendan
2007-06-14 23:44:18 -07:00
igor@mir2.org
ac5551e88a
Bug 378793: removal of the previous commit.
2007-06-14 13:20:37 -07:00
igor@mir2.org
758bc9b1cf
Bug 378793: Patch from Mike Moening to implement per-context debug hooks. r=me,brendan
2007-06-14 13:04:09 -07:00
crowder@fiverocks.com
c66619c8af
Bug 308429: make tooMuchGC dynamic (runtime gczeal option), r=brendan
2007-05-15 16:27:20 -07:00
igor@mir2.org
7f6e92e7d2
Bug 379146: New API to register application-specific GC roots. r=brendan
2007-05-01 03:09:46 -07:00
igor@mir2.org
904650319a
Bug 375270: API to trace GC things graph without running the GC. r=brendan
2007-04-16 23:53:37 -07:00
hg@mozilla.com
465265d0d4
Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT,
2007-03-22 10:30:00 -07:00