Commit Graph

349 Commits

Author SHA1 Message Date
sayrer%gmail.com
fa1890d897 Bug 418051. Patch by Blake Kaplan <mrbkap@gmail.com>
git-svn-id: svn://10.0.0.236/trunk@255742 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-07 04:52:01 +00:00
crowder%fiverocks.com
c7554a28cd Bug 451906 - Array index has different results between number and numeric-string, patch by brendan, r=shaver, a=ss
git-svn-id: svn://10.0.0.236/trunk@253843 18797224-902f-48f8-a5cc-f745e15eee43
2008-08-26 20:49:04 +00:00
brendan%mozilla.org
691198f536 Fix 433279, r=mrbkap+shaver, a=schrep.
git-svn-id: svn://10.0.0.236/trunk@251771 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-23 05:06:09 +00:00
igor%mir2.org
dcc7fdc503 [Bug 427798] faster js_PutBlockObject(), r=brendan a1.9=shaver
git-svn-id: svn://10.0.0.236/trunk@251063 18797224-902f-48f8-a5cc-f745e15eee43
2008-05-01 21:59:52 +00:00
igor%mir2.org
a496b660d5 [Bug 428706] Making sure that all let blocks has non-zero stack depth. r=brendan a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250792 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-25 17:28:36 +00:00
igor%mir2.org
ad43aa5d01 [Bug 428706] Backing out to investigate startup failures
git-svn-id: svn://10.0.0.236/trunk@250440 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-18 07:59:48 +00:00
igor%mir2.org
aa37882ebb [Bug 428706] Making sure that all let blocks has non-zero stack depth. r=brendan a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@250435 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-18 07:31:48 +00:00
brendan%mozilla.org
4528353ed6 Fix regression in patch for bug 346902 (387951, r=mrbkap, a=dsicore).
git-svn-id: svn://10.0.0.236/trunk@250021 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-10 23:02:00 +00:00
igor%mir2.org
48d15b6de1 [Bug 389605] r=brendan a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@249980 18797224-902f-48f8-a5cc-f745e15eee43
2008-04-10 15:50:03 +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
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
mrbkap%gmail.com
a242cf1cfd Protect |accum| from being collected in js_ConcatStrings. bug 393874, r=igor a=beltzner
git-svn-id: svn://10.0.0.236/trunk@247233 18797224-902f-48f8-a5cc-f745e15eee43
2008-03-06 20:16:42 +00:00
brendan%mozilla.org
4161c2397c Relaxd ES4-like yield parsing for JS1.8 (384991, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@245945 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-19 04:49:02 +00:00
brendan%mozilla.org
83e65a3dd5 Avoid O(n^2) hazard under JS_ARENA_RELEASE, simplifying arena-pool usage and eliminating debug code (416628, r=igor).
git-svn-id: svn://10.0.0.236/trunk@245389 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-11 08:55:03 +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
brendan%mozilla.org
7980b3bafb Final js1.8 feature: sugar for object destructuring (404734, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@244500 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 06:27:13 +00:00
igor%mir2.org
bdcf8f462f Bug 413241: fixing bogus assertion in Statements() from jsparse.c. r=brendan,mrbkap a=brendan
git-svn-id: svn://10.0.0.236/trunk@243623 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-20 20:55:42 +00:00
igor%mir2.org
3357de22b8 Bug 410649: function statement and destructuring parameter name clash now favours the function. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@243600 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-20 10:34:06 +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
mrbkap%gmail.com
cef3dfa65f Don't call js_PopStatement if there was a parse error. bug 410852, r=brendan
git-svn-id: svn://10.0.0.236/trunk@243146 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-15 22:24:54 +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
8cd0c0578b Support let in switch-case statement lists, scoped by switch body (411279, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@242655 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-09 00:49:35 +00:00
brendan%mozilla.org
b14b83c510 Require explicit body block in 'for (let x ...) let y...' (410981, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@242553 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-07 09:41:28 +00:00
brendan%mozilla.org
6c17cc375b Track ES4 proposal by restricting let declaration to be direct child of block (408957, r=mrbkap).
git-svn-id: svn://10.0.0.236/trunk@242391 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-05 01:34:12 +00:00
igor%mir2.org
ccb7de4920 Bug 410653: make sure that the generator cleanup code is called on all code paths. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@242308 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-03 18:13:42 +00:00
sayrer%gmail.com
774329f1db Bug 409324. js_DoubleToECMA(u)Int32 should return jsdouble, not a useless always-true JSBool. r/a=brendan
git-svn-id: svn://10.0.0.236/trunk@241988 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 22:06:37 +00:00
igor%mir2.org
40123f2d24 Bug 408271: check for missing return when parsing a function body in one place. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@241959 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 19:11:46 +00:00
sayrer%gmail.com
0eaa266ae9 Bug 409302. js_DoubleToECMA(u)Int32 has an unused cx param. r/a=brendan
git-svn-id: svn://10.0.0.236/trunk@241878 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-21 01:43:50 +00:00
igor%mir2.org
208ad97e07 Bug 398219: avoid storing references to the global scope in the compiled scripts. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@241756 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-19 13:20:45 +00:00
igor%mir2.org
fc55de0571 Bug 398219: backing out the check in due to regression failures.
git-svn-id: svn://10.0.0.236/trunk@240934 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 20:08:24 +00:00
igor%mir2.org
1185f28fac Bug 398219: avoid storing references to the global scope in the compiled scripts. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@240929 18797224-902f-48f8-a5cc-f745e15eee43
2007-12-12 18:47:56 +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
e5ed9c657f Bug 394941: report exhausting of the script memory quota as ordinary runtime exceptions. r=brendan, a1.9=beltzner
git-svn-id: svn://10.0.0.236/trunk@239845 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-22 22:21:19 +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
brendan%mozilla.org
0d37bcd863 Propagate end position in all cases parsing a parenthesized expression (402386, r=mrbkap/a=schrep).
git-svn-id: svn://10.0.0.236/trunk@239374 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-14 02:07:28 +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
mrbkap%gmail.com
9947bb7226 Restore dynamic indirect eval code. bug 383682, r=brendan/igor a=brendan
git-svn-id: svn://10.0.0.236/trunk@237490 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-09 22:42:42 +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