Commit Graph

79 Commits

Author SHA1 Message Date
igor@mir2.org
28f999de16 Bug 413104: access to JSString is hidden behind macros even for a flat string. 2008-01-19 13:15:08 -08:00
reed@reedloden.com
34fb42c02c Back out Igor's patch from bug 412340 due to consistent orange on fxdbug-win32-tb. 2008-01-19 00:06:45 -08:00
igor@mir2.org
d4e057f519 Bug 412340: JString stores a flag to indicate that it was atomized. r=brendan a=blocking1.9+ 2008-01-18 18:56:51 -08:00
reed@reedloden.com
e84a13e51f Bug 411968 - "Finishing JS_AlreadyHasOwnProperty" (CHECK_REQUEST(cx) in JS_AlreadyHasOwn{,UC}Property) [p=jorendorff@mozilla.com (Jason Orendorff) r+a1.9=brendan] 2008-01-17 02:28:57 -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
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
reed@reedloden.com
72d65ef27e Bug 407000 - "Tearing down rt->unitStrings too early leads to incorrect free later" [p=jorendorff@mozilla.com (Jason Orendorff) r=igor a1.9=brendan a=blocking1.9+] 2007-12-11 02:40:29 -08:00
igor@mir2.org
93e67f0a7c 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 2007-12-11 02:09:58 -08:00
jwalden@mit.edu
d3b11a2cbf 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 2007-12-03 19:05:24 -08:00
igor@mir2.org
22c2a33a75 Bug 403878: No compiler pseudo-frames when compiling functions. r,a=brendan 2007-11-29 06:49:42 -08:00
igor@mir2.org
a0d8d9194e Bug 399544: using custom storage for function argument and variable names. r,a=brendan 2007-11-27 00:38:47 -08:00
igor@mir2.org
a4162380a8 Bug 398609: simpler handling of hidden properties, r,a=brendan 2007-11-19 09:15:45 -08:00
igor@mir2.org
1831710dfa Bug 403678: GC thing callback is removed. r,a=brendan 2007-11-19 02:57:04 -08:00
igor@mir2.org
7d6e57125d Bug 398609: backing out due to test failures. 2007-11-18 16:58:46 -08:00
igor@mir2.org
64dc5b1984 Bug 398609: cleanup of hidden properties support. r,a=brendan 2007-11-18 16:36:49 -08:00
reed@reedloden.com
dff4bb8d6e Bug 402653 - "xpcshell core dump when shutdown" [p=solar@netease.com (Solar) r=igor a=blocking1.9+] 2007-11-15 01:01:17 -08:00
reed@reedloden.com
4c5746dc93 relanding bug 400687 since it doesn't look to be the source of the Ts regression 2007-11-14 20:16:35 -08:00
gavin@gavinsharp.com
939757e2f4 Back out the patch for bug 400687 to see whether it caused the Ts regression, a=sicking 2007-11-14 16:17:28 -08:00
igor@mir2.org
ca808e133e Bug 400687: removal of dependency of xpconnect on internal JS GC thing types. r,a=brendan 2007-11-13 13:23:07 -08:00
igor@mir2.org
837c046912 Bug 398609: Backing out due to mochi test failure. 2007-11-13 07:47:28 -08:00
igor@mir2.org
6c43fd5702 Bug 398609: cleanup of hidden properties. r,a=brendan 2007-11-13 06:56:18 -08:00
reed@reedloden.com
0352b51ca8 Bug 400793 - "Need JS_AlreadyHasOwnProperty (UCProperty, Element)" [p=crowder r+a1.9=brendan] 2007-11-13 00:28:47 -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
bclary@bclary.com
fe8084d1ef Update JS_GetImplementationVersion to 1.8.0 on trunk, bug 380901, ra=brendan 2007-10-03 06:48:01 -07:00
igor@mir2.org
fa98070cd2 Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan 2007-10-02 16:10:09 -07:00
igor@mir2.org
91ee82b969 Backing out the patch 397210. 2007-10-01 13:46:10 -07:00
igor@mir2.org
9ffab6a112 Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan 2007-10-01 13:25:25 -07:00
igor@mir2.org
6360c6c769 Bug 396758: the system flag is moved from GC flags to JSObject itself. r=brendan 2007-10-01 12:11:41 -07:00
mrbkap@gmail.com
3b183e4e87 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 2007-09-30 17:31:22 -07:00
sayrer@gmail.com
8bcd5fb9f2 Bug 396452. Enforce SpiderMonkey request model with assertions. r=mrbkap, sr/a=brendan 2007-09-18 17:26:39 -07:00
igor@mir2.org
cc6784b030 Bug 394551: no JS frames for fast native calls. r=brendan 2007-09-18 00:34:54 -07:00
igor@mir2.org
aacdc13f0f Bug 394551: taking out the last patch as broke Windows build. 2007-09-17 12:28:14 -07:00
igor@mir2.org
065a93dd1c Bug 394551: no JS frames for fast native calls. r=brendan 2007-09-17 12:08:46 -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
4773ca1cae Bug 391290: mutability flag for strings is stored inside strings. r=brendan 2007-08-15 23:23:06 -07:00
igor@mir2.org
b9bdaf6628 Bug 392305: restoring pinning of the lazy atoms to fix various regressions. r=brendan 2007-08-15 11:57:44 -07:00
igor@mir2.org
202af28de4 Bug 391851: JS_ResolveStandardClass now does nothing on shutdown. r=brendan 2007-08-12 15:11:38 -07:00
igor@mir2.org
14e3457a58 Bug 386265: using double kashing for atoms. r=brendan 2007-08-11 13:25:16 -07:00
dbaron@dbaron.org
8e42a71665 Finish the deflated string cache after uninterning atoms, so we don't leak their associated strings. b=391587 r+a=brendan 2007-08-10 14:30:13 -07:00
jst@mozilla.org
64193de21c 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 2007-08-09 15:19:59 -07:00
mrbkap@gmail.com
191a54c63d Try harder to find a scope chain so that we can report exceptions when there is no code running currently. bug 390160, r=brendan sr=jst a=brendan 2007-08-07 19:24:52 -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
igor@mir2.org
1499d581c1 Bug 389880: removal of redundant gcflags argument from string-allocation functions. r=brendan 2007-07-28 09:57:30 -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
mrbkap@gmail.com
fdc7ef43dc Bad millisecond resolution for (new Date).getTime() / Date.now() on Windows. bug 363258, patch from Rob Arnold <robarnold@mozilla.com>, r=brendan 2007-07-16 14:29:57 -07:00