Commit Graph

107 Commits

Author SHA1 Message Date
brendan@mozilla.org
8f651d834f Fix bogus assertion with compensating code (419803, r=shaver, a=beltzner). 2008-02-27 11:39:27 -08:00
brendan@mozilla.org
bfaa992a1b Backing out to fix orange on Windows fx/tb/sm... 2008-02-26 22:57:28 -08:00
brendan@mozilla.org
42caf6cd7e Landing shaver's patch for 419743, r/a=me. 2008-02-26 21:54:02 -08:00
brendan@mozilla.org
da4792dd55 Optimize object initialisers via property cache; remove JSOP_SET{NAME,PROP} cache hazards (129496, r=shaver). 2008-02-26 17:59:36 -08:00
brendan@mozilla.org
d04ec07f23 Fix regression from 419152 to test for 58274 (r/a=shaver). 2008-02-26 09:01:52 -08:00
brendan@mozilla.org
31995f2bdb Shaver's huge patch for 419152 (Huge, I say; r=me). 2008-02-25 16:59:36 -08:00
benjamin@smedbergs.us
b79e3a1d26 Bug 419079 - cast void* in js/src for C++ compatibility, r+a=crowder 2008-02-22 12:41:27 -08:00
brendan@mozilla.org
c6f32f4ba6 ASSERT_VALID_PROPERTY_CACHE_HIT must be for ST spidermonkey only (417817, r=shaver). 2008-02-21 12:50:39 -08:00
brendan@mozilla.org
a76138b7d2 Beware non-native objects along scope and proto chains in property cache hit testing (418540, r=shaver). 2008-02-20 21:51:12 -08:00
gavin@gavinsharp.com
3106b6c27f Back out bug 418069 because it causes a crash on startup for Camino 2008-02-20 18:06:26 -08:00
crowder@fiverocks.com
d7bbfe4d1d Bug 418069 - js1_5/Regress/regress-379245.js FAIL - browser - bad this, patch by mrbkap, r=brendan, sr=jst, a1.9=brendan 2008-02-20 15:28:18 -08:00
igor@mir2.org
236038958e bug=418614 r=mrbkap a1.9=brendan fixing JSOP_EXPORTALL regression spotted by mrbkap 2008-02-20 12:36:52 -08:00
igor@mir2.org
c94ca494bf Bug 416439. Using goto error in the interpreter to shrink code size. r,a1.9=brendan 2008-02-19 04:16:26 -08:00
brendan@mozilla.org
ac5e7eec95 Property-cache dense array methods in JSOP_CALLPROP (418239, r=shaver). 2008-02-18 23:04:00 -08:00
mrbkap@gmail.com
f1ecb4b0a4 Avoid calling js_ComputeThis when we don't have to from js_Invoke. bug 417947, r+a=brendan 2008-02-18 19:34:02 -08:00
shaver@mozilla.org
8ef681ab63 Implement optimized object-ops for dense arrays, b=322889, r+a=brendan. 2008-02-18 13:01:47 -08:00
brendan@mozilla.org
f337b63afc Guard property cache tests with native ops or obj guards (417981, r=shaver). 2008-02-18 11:32:01 -08:00
brendan@mozilla.org
404002f4ae Use JS_PropertyStub for in-language bindings, for best property cache hit rates (416931, r=mrbkap). 2008-02-17 22:31:57 -08:00
brendan@mozilla.org
fc623a24eb Optimize ComputeGlobalThis (395993, r=mrbkap). 2008-02-15 18:46:46 -08:00
igor@mir2.org
f86e5a86d2 Bug 416601: property cache is properly disabled under with statements with generators. r=brendan a1.9=blocking1.9 2008-02-15 03:38:40 -08:00
shaver@mozilla.org
08cc7ed6d6 back out for mochitest failures in prototype 2008-02-15 02:31:38 -08:00
shaver@mozilla.org
19f85281c0 Bug 322889: implement specialized storage and operations for JS arrays; r+a=brendan. 2008-02-15 01:48:53 -08:00
gavin@gavinsharp.com
be5dd93507 Back out bug 322889 due to jQuery unit test failures 2008-02-14 18:41:18 -08:00
shaver@mozilla.org
4b517f103c Bug 322889: implement specialized storage and operations for JS arrays; r+a=brendan 2008-02-14 17:07:53 -08:00
igor@mir2.org
5a2b665446 Bug 416354: optimizing switch cases in the inetrpreter, r,a1.9=brendan 2008-02-14 07:36:39 -08:00
igor@mir2.org
ac22737548 Bug 309894: non-recursive XML-filtering implementation. r,a1.9=brendan 2008-02-13 06:32:31 -08:00
brendan@mozilla.org
4e2eefd3a3 Cope with GC under js_{Find,Lookup}Property in ASSERT_VALID_PROPERTY_CACHE_HIT (417033, r=shaver). 2008-02-12 18:26:16 -08:00
brendan@mozilla.org
1bad15affa Export js_CheckForStringIndex from jsobj.c for use by assert in jsinterp.c (416460, r=shaver). 2008-02-10 17:12:29 -08:00
brendan@mozilla.org
cca60ec58a Missing unlock in propcache setprop/setname code, plus two cleanups (416478, r=shaver, mad props to jorendorff). 2008-02-08 19:02:57 -08:00
igor@mir2.org
98c2a791fd Attachment 302122: optimizing JSOP_NEG, r=brendan a=blocking1.9 2008-02-08 14:01:09 -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
igor@mir2.org
5c7d98ca57 Attachment 300249: better handling of numeric conversions. r,a=brendan 2008-01-29 21:35:34 -08:00
mrbkap@gmail.com
cc6a72a011 Outerize this when we're computing it. bug 394012, r=brendan 2008-01-29 18:16:56 -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
jst@mozilla.org
5be0f146b4 Fixing bug 413045. Make some JS API functions faster by accessing obj->fslots[] directly when possible. r=brendan@mozilla.org, r=igor@mir2.org. 2008-01-23 14:05:43 -08:00
igor@mir2.org
5732653d7d Bug 412340: avois rehashing of alreday atomized strings. r,a=brendan 2008-01-23 05:17:47 -08:00
igor@mir2.org
d8ee415593 Bug 410649: function statement and destructuring parameter name clash now favours the function. r,a=brendan 2008-01-20 02:34:06 -08:00
jwalden@mit.edu
84e3a1e6db Bug 409476 - js_ValueToBoolean is pure, remove cx and out parameters and just return a boolean value for better perf. r+a=brendan 2008-01-19 16:56: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
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
brendan@mozilla.org
c02dbef876 XML/XMLList need toSource love (410192, r=mrbkap). 2008-01-02 12:25:59 -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