211 Commits

Author SHA1 Message Date
igor%mir2.org
c1ab4e6b85 bug=427185 r=brendan a1.9=mtschrep
git-svn-id: svn://10.0.0.236/trunk@250245 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-15 06:29:06 +00:00
igor%mir2.org
a98ca35d52 backing out bug 427185 to investigate tinderbox orange
git-svn-id: svn://10.0.0.236/trunk@250194 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-14 09:33:05 +00:00
igor%mir2.org
6901feaa4c bug=427185 r=brendan a1.9=mtschrep
git-svn-id: svn://10.0.0.236/trunk@250189 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-14 08:01:39 +00:00
igor%mir2.org
2357239d6b [Bug 423874] Allocating functions together with JSObject. r=brendan a1.9=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@248998 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-02 07:46:13 +00:00
igor%mir2.org
088bbf6cb0 [bug 423874] backing out as a simpler patch would do the job with less code.
git-svn-id: svn://10.0.0.236/trunk@248816 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-29 10:34:31 +00:00
igor%mir2.org
0c1130d3fd [bug 424376] backing out - too much compatibility problems.
git-svn-id: svn://10.0.0.236/trunk@248801 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-28 22:27:37 +00:00
igor%mir2.org
aa3205441f bug=424376 r=brendan a1.9b5=beltzner
Compile-time function objects are no longer exposed through SpiderMonkey API.


git-svn-id: svn://10.0.0.236/trunk@248445 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-23 10:04:39 +00:00
igor%mir2.org
99df75fa8a bug=423874 r=brendan a1.9b5=dsicore
Allocating native functions together with JSObject


git-svn-id: svn://10.0.0.236/trunk@248353 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-21 08:19:27 +00:00
igor%mir2.org
7c207155cb bug=421274 r=brendan a=beltzner
Eliminating SAVE_SP_AND_PC() macro


git-svn-id: svn://10.0.0.236/trunk@247972 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-17 08:58:29 +00:00
igor%mir2.org
988d79a946 bug 421274: backing out again due to crashes on 64 bit Linux.
git-svn-id: svn://10.0.0.236/trunk@247745 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 18:03:02 +00:00
igor%mir2.org
3e33b57170 bug=421274 r=brendan a1.9=mtschrep
eliminating SAVE_SP_AND_PC and friends from the interpreter loop


git-svn-id: svn://10.0.0.236/trunk@247716 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 06:48:23 +00:00
igor%mir2.org
45ee880fc5 backing out bug 421274
git-svn-id: svn://10.0.0.236/trunk@247715 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 06:23:09 +00:00
igor%mir2.org
22a66cf4d4 bug=421274 r=brendan a1.9=mtschrep
eliminating SAVE_SP_AND_PC and friends from the interpreter loop


git-svn-id: svn://10.0.0.236/trunk@247714 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-13 05:52:54 +00:00
igor%mir2.org
bd9f77b978 bug=422348 r,a1.9=shaver
proper overflow error reporting


git-svn-id: svn://10.0.0.236/trunk@247697 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-12 23:07:47 +00:00
igor%mir2.org
22af3421c7 bug=419632 r=brendan a1.9=blockin1.9
avoiding weak roots for doubles


git-svn-id: svn://10.0.0.236/trunk@247492 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-10 19:27:44 +00:00
igor%mir2.org
253a301606 bug=421154 r=brendan a1.9=blockin1.9
Faster number conversions


git-svn-id: svn://10.0.0.236/trunk@247257 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 23:24:09 +00:00
igor%mir2.org
8963ee5f83 bug=421314 r=myself a1.9=beltzner
Patch from Mike Moening to fix VC2005 warnings that my recent changes introduced.


git-svn-id: svn://10.0.0.236/trunk@247252 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 22:51:14 +00:00
igor%mir2.org
41038847e1 bug=415455 r=brendan a1.9=blocking1.9
git-svn-id: svn://10.0.0.236/trunk@247239 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 21:40:43 +00:00
benjamin%smedbergs.us
80c6df3d0a Bug 419079 - cast void* in js/src for C++ compatibility, r+a=crowder
git-svn-id: svn://10.0.0.236/trunk@246318 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-22 20:41:28 +00:00
crowder%fiverocks.com
948336d1cc Bug 418515 - Better management of parent-finding, needed for new arrays implementation, r/a+=brendan
git-svn-id: svn://10.0.0.236/trunk@246035 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-20 05:05:24 +00:00
brendan%mozilla.org
1707246c5d Lazy ComputeGlobalThis required now in fast native implementations (417893, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@245885 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-18 00:12:34 +00:00
igor%mir2.org
fa7ad87fd7 Bug 309894: non-recursive XML-filtering implementation. r,a1.9=brendan
git-svn-id: svn://10.0.0.236/trunk@245608 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-13 14:32:32 +00:00
igor%mir2.org
49571861af Bug 354135: protect against oo recursion in e4x. r,a=brendan, a1.9b3=mtschrep
git-svn-id: svn://10.0.0.236/trunk@244654 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-01 06:01:17 +00:00
jwalden%mit.edu
e7bd30d30a Bug 409476 - js_ValueToBoolean is pure, remove cx and out parameters and just return a boolean value for better perf. r+a=brendan
git-svn-id: svn://10.0.0.236/trunk@243567 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-20 00:56:09 +00:00
igor%mir2.org
fbcea9f305 Bug 411025: temp rooting implemenation cleanup, r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@243566 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-20 00:46:37 +00:00
igor%mir2.org
43a3a6bc41 Bug 413104: access to JSString is hidden behind macros even for a flat string.
git-svn-id: svn://10.0.0.236/trunk@243552 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-19 21:15:08 +00:00
reed%reedloden.com
bfe255f250 Back out Igor's patch from bug 412340 due to consistent orange on fxdbug-win32-tb.
git-svn-id: svn://10.0.0.236/trunk@243533 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-19 08:06:45 +00:00
igor%mir2.org
e9ec449017 Bug 412340: JString stores a flag to indicate that it was atomized. r=brendan a=blocking1.9+
git-svn-id: svn://10.0.0.236/trunk@243520 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-19 02:56:51 +00:00
brendan%mozilla.org
efa68f7304 Fixes and improvements for property instrumentation (411630, r=igor).
* 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).


git-svn-id: svn://10.0.0.236/trunk@242973 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-13 00:31:32 +00:00
brendan%mozilla.org
1227a2dcbb 64-bit fixes for problems reported by edwin@cheatah.nl (many thanks to Edwin; 410941, r=igor).
git-svn-id: svn://10.0.0.236/trunk@242552 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-07 08:41:06 +00:00
brendan%mozilla.org
027d6bfc0f XML/XMLList need toSource love (410192, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@242263 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-02 20:25:59 +00:00
brendan%mozilla.org
874ad9d353 Don't fix typename bindings without JS2 opt-in (409252, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@241869 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-20 23:29:32 +00:00
brendan%mozilla.org
10759c8c4f JSCLASS_FIXED_BINDING only on Namespace, for better backward and forward compat (407323, r=jwalden).
git-svn-id: svn://10.0.0.236/trunk@240678 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-09 06:14:26 +00:00
jwalden%mit.edu
680af8da29 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
git-svn-id: svn://10.0.0.236/trunk@240378 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-04 03:05:24 +00:00
igor%mir2.org
f54fd20d96 Bug 404935: No compiler pseudo-frames when compiling functions. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@240106 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-29 14:49:43 +00:00
igor%mir2.org
733a007291 Bug 399544: using custom storage for function argument and variable names. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@239971 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-27 08:38:47 +00:00
igor%mir2.org
db5133bf70 Bug 398609: simpler handling of hidden properties, r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@239660 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-19 17:15:45 +00:00
igor%mir2.org
6c8e3eaa97 Bug 398609: backing out due to test failures.
git-svn-id: svn://10.0.0.236/trunk@239619 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-19 00:58:46 +00:00
igor%mir2.org
778ffb85c1 Bug 398609: cleanup of hidden properties support. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@239618 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-19 00:36:50 +00:00
igor%mir2.org
4bb91702f9 bug 397289: removing JSParseNode.pn_ts. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@239363 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 22:18:17 +00:00
igor%mir2.org
0541de0428 Bug 398609: Backing out due to mochi test failure.
git-svn-id: svn://10.0.0.236/trunk@239325 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 15:47:28 +00:00
igor%mir2.org
2e65d4ff36 Bug 398609: cleanup of hidden properties. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@239322 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-13 14:56:18 +00:00
timeless%mozdev.org
6828cd3837 Bug 397239 ActionMonkey: Remove "extra" parameter to JS_FN
patch by Jason Orendorff <jorendorff@mozilla.com> r=igor a=brendan


git-svn-id: svn://10.0.0.236/trunk@237716 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-13 20:09:48 +00:00
igor%mir2.org
1d235bcf1e Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan
git-svn-id: svn://10.0.0.236/trunk@237113 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 23:10:09 +00:00
igor%mir2.org
27b680de93 Backing out the patch 397210.
git-svn-id: svn://10.0.0.236/trunk@237017 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 20:46:10 +00:00
igor%mir2.org
bab33931e0 Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan
git-svn-id: svn://10.0.0.236/trunk@237014 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 20:25:26 +00:00
igor%mir2.org
fed9f64bb2 Bug 391290: mutability flag for strings is stored inside strings. r=brendan
git-svn-id: svn://10.0.0.236/trunk@232204 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-16 06:23:06 +00:00
igor%mir2.org
8c7384c4bc Bug 387481, bug 389063: multithreading atom fixes and cleanups. r=brendan
git-svn-id: svn://10.0.0.236/trunk@231579 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-07 07:29:32 +00:00
brendan%mozilla.org
1625a24bdd Fast (frame-less) native call optimizations (385393, r=igor).
git-svn-id: svn://10.0.0.236/trunk@231255 18797224-902f-48f8-a5cc-f745e15eee43
2007-08-02 04:33:52 +00:00
igor%mir2.org
9bd77eaa76 Bug 389880: removal of redundant gcflags argument from string-allocation functions. r=brendan
git-svn-id: svn://10.0.0.236/trunk@231131 18797224-902f-48f8-a5cc-f745e15eee43
2007-07-28 16:57:30 +00:00