Jason Orendorff
68642d97db
Bug 547274 - js_InitArrayClass is not thread-safe. r=brendan.
...
--HG--
extra : rebase_source : 4b9ca0af846d7b77601ebbbf642941ffd136c9c8
2010-02-19 13:05:00 -06:00
Igor Bukanov
debaa592f7
bug 545529 - caching Class.prototype lookups. r=brendan
2010-02-19 20:44:23 +03:00
Gregor Wagner
dc4711d401
BUG 545303: TM: non API function for JS_CallTracer r=igor
2010-02-18 13:16:02 -08:00
Luke Wagner
6cc06f3b7b
Bug 546668 - obj_eval should still call js_GetScriptedCaller (r=mrbkap)
2010-02-17 11:16:11 -08:00
Luke Wagner
df420a425b
Bug 542797 - change obj_eval from JSNative to JSFastNative (r=mrbkap)
...
--HG--
extra : rebase_source : 5138b86418081cfa331b05947e5988c1f81065ef
2010-02-16 17:41:39 -08:00
Jason Orendorff
095bd890ef
Bug 539829 - Encapsulate JSScope::flags. r=Waldo.
...
--HG--
extra : rebase_source : ced4f057e715075d8e4eff343e824d8934152a7e
2010-02-05 18:11:13 -06:00
Igor Bukanov
75a3004377
bug 543839 - js_NonEmptyObject must lock the object. r=jorendorf
2010-02-05 10:41:54 +03:00
Igor Bukanov
f74b35769d
bug 538463 - caching only single-threaded objects. r=jorendorff
2010-02-03 13:42:07 +03:00
Igor Bukanov
008691b6f9
Backed out changeset b9700adc3951 - the landing for the bug 538463 had wrong changes
2010-02-03 13:37:56 +03:00
Igor Bukanov
7aafadcc76
bug 538463 - caching only single-threaded objects. r=jorendorff
2010-02-03 12:46:10 +03:00
Luke Wagner
7714144859
Bug 535656 - remove JSStackFrame::dormantNext and varobj (r=waldo)
2010-01-29 18:25:16 -08:00
Igor Bukanov
836b8a84eb
bug 540805 - using reference counting only for empty scopes. r=jorendorff
2010-01-27 09:50:17 +03:00
Igor Bukanov
450cf95e35
bug 538275 - ClaimTitle cleanup. r=brendan, jorendorff
2010-01-24 14:15:38 +03:00
Luke Wagner
2645ecd2da
Bug 541452 - put jstracer.cpp in namespace js (r=jorendorff)
2010-01-22 14:49:18 -08:00
Brendan Eich
3cf53a31d6
Bug 513291 - JSOP_INITPROP should insist obj has own scope (JSOP_NEWINIT knows to do this; r=jorendorff).
2010-01-07 11:47:16 -08:00
Brendan Eich
85a5badeef
ES5-conformance fix to make a new RegExp for each regexp literal evaluation (98409, r=igor/jwalden).
2010-01-06 15:12:54 -08:00
Jason Orendorff
e5ac8476fd
Backed out changeset 3862a7e48e79 due to tinderbox failures on js1_5/GC/regress-324278.js.
2010-01-05 12:48:09 -06:00
Brendan Eich
1b4fbd91e6
ES5-conformance fix to make a new RegExp for each regexp literal evaluation (98409, r=jwalden).
2010-01-04 12:25:44 -08:00
Jeff Walden
9b553541fa
Bug 537725 - Adjust some exception-throwing code to use the proper APIs for no-argument messages, and fix handling of some primitive values passed as the Properties argument to Object.defineProperties. r=jorendorff
2010-01-04 13:48:30 -06:00
Brendan Eich
45c0afef62
Merge.
2009-12-30 13:50:31 -08:00
Brendan Eich
398f5f3b9b
Bug 537204 - No more BOGUS_CX bogosities (r=jwalden).
2009-12-30 13:49:26 -08:00
Jeff Walden
e59ff3661d
Bug 492840 - Fix a conflict with myself in the previous push. Aaargh...
2009-12-30 15:20:21 -06:00
Ben Newman
0c4845ffec
Bug 553448 - nsScriptSecurityManager::ContentSecurityPolicyPermitsJSAction should return JS_TRUE when no subjectPrincipal exists. r=mrbkap sr=dveditz
...
--HG--
extra : rebase_source : c47d6d55063c115921ee89114c4439444883c37d
2010-03-18 17:27:39 -07:00
Brendan Eich
371b9215e0
NPOTB: fix #ifdef NARCISSUS code.
2010-03-14 15:26:55 -05:00
Sid Stamm
47a3291b46
bug 515443 CSP no-eval support. r=mrbkap,brendan
2010-03-08 00:24:50 -08:00
Jeff Walden
49c30c2502
Bug 492840 - ES5: Implement Object.create. r=mrbkap
2009-09-08 15:59:14 -07:00
Jeff Walden
9613c2771b
Bug 430133 - Address an overlooked review comment. r=sparky
2009-12-30 14:25:27 -06:00
Igor Bukanov
0553ca4a34
bug 536734 - more finalizer specializations. r=brendan
2009-12-30 14:06:26 +03:00
Jeff Walden
285792a4b4
Bug 430133 - Implement ES3.1's Object.defineProperty and Object.defineProperties. r=jorendorff
2009-06-05 12:56:45 -07:00
Blake Kaplan
a950e7cc20
Bug 536512 - Ignore security wrappers when computing instanceof. r=brendan
...
--HG--
extra : rebase_source : 685f05cbb79288a976242c2b4908023a7ed1b035
2009-12-23 14:09:08 -08:00
Jeff Walden
e9d69cbf2e
Bug 529404 - Assignments to a property that has a getter but not a setter should not throw a TypeError per ES5, except in strict mode. r=brendan
2009-12-08 17:00:42 -08:00
Jason Orendorff
8b449748c7
Fix "bug NNNNNN" in a comment to point to the actual bugzilla bug. r=nobody.
2009-12-17 14:24:39 -06:00
Brendan Eich
e3b2653ade
Bug 533705 - Lock proto-scope around canProvideEmptyScope/getEmptyScope; check for slot mismatch in js_AddProperty; don't optimize for slot mismatch in JSOP_SETPROP. r=jorendorff.
...
--HG--
extra : rebase_source : 4d49e9ef150286db93f2e5e1c77b217832263f83
2009-12-16 18:11:19 -06:00
Gregor Wagner
5d706bfc9a
fix JS_SCOPE_DEPTH_METER and enable in DEBUG mode
...
bug #528674 , r=gal
2009-12-14 18:36:58 -08:00
Andreas Gal
ab4554e731
Only consider an eval cache entry if the static level matches (532491, r=igor).
2009-12-03 12:12:39 -08:00
Igor Bukanov
969bdae222
bug 531682 - fixing eval(source, scope) to match 191, 192 semantics. r=mrbkap
2009-12-02 19:22:34 +03:00
Robert Sayre
3192563f6f
Reland bug 473228 and bug 530507
2009-12-01 16:02:09 -05:00
Robert Sayre
03f335335d
Relanding Tolerate race condition or broken resolve hook (530507, r=jorendorff). Backed out changeset fb34a7163a43
2009-12-01 15:54:01 -05:00
Robert Sayre
8dac81dafc
Merge
2009-12-01 15:51:22 -05:00
Robert Sayre
4ea539c658
Relanding: Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff). Backed out changeset ee7bfc1923ad
2009-12-01 15:49:15 -05:00
Robert Sayre
8be5b171b9
Backed out changeset c03ebf340688. Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff).
2009-12-01 09:56:16 -05:00
Robert Sayre
5d08f03267
Backed out changeset c696751593d6. Tolerate race condition or broken resolve hook (530507, r=jorendorff).
2009-12-01 09:54:38 -05:00
Robert Sayre
5d34830070
Backout bug 473228 and its follow-up, temporarily, to attempt a clean merge of other stuff.
2009-12-01 09:57:20 -05:00
Robert Sayre
708784babe
Merge backout.
2009-12-01 09:54:57 -05:00
Igor Bukanov
a3f5d5c07b
bug 531037 - eval fixes. r=brendan
2009-12-01 00:01:11 +03:00
Brendan Eich
5120898335
Tolerate race condition or broken resolve hook (530507, r=jorendorff).
2009-11-25 13:49:15 -08:00
Brendan Eich
c731045c51
Bye-bye middle-deletes and their O(n^2) worst case complexity; hello dictionary-mode scopes (473228, r=jorendorff).
2009-11-20 16:14:42 -08:00
Jim Blandy
e1243b3edc
Bug 514560: Forbid assignments to undeclared variables in strict mode code. r=jorendorff
...
--HG--
rename : js/src/tests/ecma_5/strict/shell.js => js/src/tests/js1_8_1/strict/shell.js
2009-11-19 12:35:55 -08:00
Jim Blandy
a1ea615b02
Bug 521868: Make code passed to a direct call to eval inherit the caller's strictness. r=jorendorff
2009-11-19 09:48:59 -08:00
Jason Orendorff
cd32782f94
Bug 505523 - Property cache can skip JSClass::resolve or JSClass::addProperty hooks. r=graydon, r=brendan.
...
--HG--
extra : rebase_source : a77b0e81203010aabe07b92b639762dce83200c0
2009-11-18 14:29:58 -06:00
Blake Kaplan
e4ee1ce1bf
Bug 528126 - Ensure the GC can see the new object. r=brendan
2009-11-18 15:54:27 +01:00
Jeff Walden
05bcc1bbb2
Backed out changeset 975b36c50d33; bug 478047's fix was misguided and contra ES5, and moving to ES5 semantics at this late date in the release cycle seems unwise. We'll move from old and busted directly to ES5 shortly after 3.6 so as to provide maximum time for ironing out incompatibilities in the wild. r=gal
2009-11-16 17:21:48 -08:00
Jeff Walden
926066f46d
Bug 520890 - obj_getOwnPropertyDescriptor nests object locks. r=jorendorff
2009-11-09 16:16:28 -08:00
Jeff Walden
e53d0c2e48
Backed out changeset 2fe1a3d6e672, enough philosophically-vexing orange that I'm unwilling to adjust all the tests without discussion (or, alternately, leave it in place until morning).
2009-11-12 00:57:18 -08:00
Jeff Walden
152d62d222
Bug 523846 - Assignments to a property that has a getter but not a setter should not throw a TypeError per ES5 (at least not until strict mode is supported). r=brendan
...
--HG--
extra : rebase_source : 7d47eb44d21f17bfa11aeadca2ff980336315eca
2009-11-10 18:03:41 -08:00
David Mandelin
5ee0760ca7
Bug 519363 debugging followup: strip diagnostic instrumentation, r=lw
2009-11-09 16:57:47 -08:00
Blake Kaplan
d313c0f49d
Bug 520164 - Protect the interpreter from non-expected scope chains and variable objects. r=igor
...
--HG--
extra : rebase_source : cd169a070e85100af7931864201da28effffcfec
2009-10-30 17:31:15 +01:00
Robert Sayre
8218769bc0
Merge mozilla-central to tracemonkey.
2009-10-29 08:48:15 -07:00
Brendan Eich
02c0dc3df2
Factor jsscopeinlines.h out, clean up #include order (524267, r=gal/jorendorff).
2009-10-26 13:39:39 -07:00
Robert Sayre
dd8b93c5d3
Merge mozilla-central to tracemonkey.
2009-10-26 13:29:48 -04:00
Jim Blandy
0c5e3d3554
Bug 522123: Don't reify lazy scope chain blocks twice in 'eval'. r=mrbkap
2009-10-21 14:34:55 -07:00
Blake Kaplan
229925b044
Bug 520511 - Add some tvrs. r=brendan
2009-10-21 11:46:07 -07:00
Brendan Eich
9f9a05b0c3
Don't build a stack frame to execute empty scripts (516827, r=igor).
2009-10-18 17:41:24 -07:00
Igor Bukanov
af1a5810f7
bug 505315 - constructing GC free lists during finalization. r=brendan
2009-10-16 10:10:54 +04:00
Igor Bukanov
9212853abd
Backed out changeset 487b81c753c0 - landing of bug 505315 caused talos crashes across platforms.
2009-10-15 13:53:40 +04:00
Igor Bukanov
0d37930589
bug 505315 - constructing GC free lists during finalization. r=brendan
2009-10-15 11:41:08 +04:00
Robert Sayre
8e2e9f852b
Merge tracemonkey to mozilla-central.
2009-10-10 20:42:24 -05:00
Jim Blandy
f4a407f114
Bug 515233: Make the static level its own parameter to JSCompiler::compileScript. r=igor
...
Pre-patch, the initial static level at which a script should be
compiled to run is passed in the upper sixteen bits of the tcflags
parameter to JSCompiler::compileScript; because JSTreeContext::tcflags
is a uint16, while the tcflags parameter is a uint32, we know the
parameter's upper bits are free.
However, we would like to enlarge JSTreeContext::tcflags to 32 bits,
as we already have a handful of new flags that belong there. This
patch moves the static level to its own parameter, which has a default
argument.
2009-10-08 10:29:03 -07:00
Jim Blandy
0d6cdd1921
Bug 514585: Use bitfields in JSScript instead of a flag word. r=brendan
...
This is behavior-neutral cleanup in preparation for the real patch.
2009-10-08 10:29:03 -07:00
David Mandelin
44ddeb70aa
Bug 519363: temporary instrumentation to understand object creation scope assignment for js_Interpret topcrash, r=lw
2009-10-22 19:06:20 -07:00
David Mandelin
fae21d7c3e
Bug 519363: more new diagnostic null pointers. r=gal
2009-10-08 19:00:21 -07:00
Brendan Eich
4034373007
Don't cache an 'adding' entry on a duplicate JSOP_INITPROP (520161, r=jorendorff).
2009-10-02 11:54:41 -07:00
Igor Bukanov
79b9eab8cb
bug 520046 - eliminating "uintN flags" parameter from js_NewSomeGCThing functions. r=brendan
2009-10-02 12:21:19 +04:00
David Mandelin
dbad0b0f5d
Bug 519363 - topcrash [@ js_Interpret], change some code to aid in debugging efforts. r=brendan
...
--HG--
extra : rebase_source : 51c16011f74f154bee8d124b2dedfd5f2f5a5a62
2009-10-07 17:30:34 -07:00
David Mandelin
17a4334966
Bug 519363: instrumentation to check for shape overflow on crash object, r=lw
2009-10-26 13:36:02 -07:00
Blake Kaplan
5845b2458a
Add a trace test and a requested comment for bug 519129.
2009-09-29 16:38:00 -07:00
Blake Kaplan
754d0cad8e
Fix Zimbra indirect eval crash. r=brendan
2009-09-29 10:03:42 -07:00
Blake Kaplan
eb16f9a84d
Bug 495325 - Follow ES about indirect eval being global eval. r=brendan/igor
...
--HG--
extra : rebase_source : 397bd79f787fc6d079fea1b2433a8e262626ca46
2009-08-17 18:08:20 -07:00
Robert Sayre
14ef91c61f
Merge mozilla-central to tracemonkey.
2009-09-25 11:55:38 -07:00
Igor Bukanov
27c2d57074
bug 517749 - removal of weakRoots.newborn = null. r=mrbkap
2009-09-25 16:30:11 +04:00
Jeff Walden
d13f5937b4
Bug 518731 - Ensure the count of non-hole elements in the array returned by Object.keys(O) is correct. r=mrbkap
2009-09-24 17:38:32 -07:00
David Mandelin
99fb23d064
Bug 511695: Fix JS warnings in MSVC8, r=brendan
2009-09-23 11:16:30 -07:00
Jeff Walden
3b1976c31a
Try to fix redness on one Mac tinderbox, r=red
...
--HG--
extra : rebase_source : cfaeae4518917131658367f4d9f7c98cf829f767
2009-09-22 16:46:13 -07:00
Jeff Walden
553915decf
Bug 307791 - Implement ES5's Object.keys(O). r=jorendorff
2009-09-08 15:59:14 -07:00
Jeff Walden
9c93800f2c
Bug 516329 - Defining a non-enumerable getter-or-setter property over an enumerable getter-or-setter property loses non-enumerability. r=brendan, hail=jorendorff for jsapi-tests
2009-09-14 13:02:36 -07:00
Igor Bukanov
8da9fad53a
bug 512046 - avoid maintaing a per-runtime iterator list. r=brendan
2009-09-19 13:40:43 +04:00
Jason Orendorff
b74384b5c8
Backed out changeset 3f508cfdfa36 (bug 500431) due to tinderbox orangeness
2009-09-18 08:55:01 -05:00
Jason Orendorff
b040e5c724
Bug 500431 - Encapsulate the property cache using C++ best practices - Part 2, refactoring. r=Waldo.
2009-09-17 18:24:38 -05:00
Andreas Gal
38b0ee0297
Backed out changeset 5f449dffdff5 (regressed tp4 private bytes, and we are not sure what the hell that means).
2009-09-17 15:40:37 -07:00
Andreas Gal
4b2f3150ab
Use one single GC heap chunk, avoiding frequent mmap and malloc calls (508707, r=igor,brendan).
2009-09-15 14:29:01 -07:00
Brendan Eich
eaabbf253c
Bug 516075 - Move shape into JSObjectMap from JSScope, const-ipate and use LIR_ldc* to get to it (r=jorendorff).
2009-09-14 20:29:46 -04:00
Luke Wagner
854c0294df
Bug 412571 - replace thisp with thisv (r=brendan,mrbkap)
2009-09-11 19:07:00 -07:00
Benjamin Smedberg
124c9c8007
Bug 517278 - JS_REQUIRES_STACK errors (jsobj.cpp and jstracer.cpp), r=jorendorff
2009-09-18 09:36:51 -04:00
Blake Kaplan
3ad62940d0
Backed out changeset 5f449dffdff5. Trying to fix Tp4 heap size regression.
2009-09-17 15:27:04 -07:00
Brendan Eich
706bd30498
Fix js*inlines.h harder (515628, r=jorendorff).
2009-09-10 10:23:52 -07:00
Jason Orendorff
4e3fc88ef8
Fix release-only linker error introduced by changeset 08ab547f6808 (having to do with jsscriptinlines.h). r=red.
2009-09-10 11:50:43 -05:00
Igor Bukanov
8b5938706b
bug 440834 - do not cache enumerators when object shape overflowed. r=brendan
2009-09-10 15:59:43 +04:00
Brendan Eich
016b0f207a
Bug 514981 - JSStackFrame::sharp{Array,Depth} should be locals allocated due to #n[#=] usage (r=igor).
2009-09-09 20:21:15 -07:00
Jeff Walden
9deeafc1b0
Fix filename in comment to kick a tinderbox, r=red
2009-09-09 17:23:42 -07:00
Jeff Walden
fcb571fda5
Fix initialization, r=bustage
2009-09-09 17:00:26 -07:00
Jason Orendorff
b53824855d
Bug 513119 - Change JSScript macros to methods. r=Waldo.
2009-09-09 18:52:55 -05:00
Jason Orendorff
1a7723b3aa
Fix compile bustage from changeset b7ee9263cf96. Trivial fix. r=red.
2009-09-09 18:52:40 -05:00
Jeff Walden
c8f686672d
Bug 505587 - Implement ES5 Object.getOwnPropertyDescriptor. r=mrbkap
2009-07-21 19:35:59 -07:00
Jason Orendorff
e170e4b573
Bug 511728 - Misc. cleanup from bug 503080. r=igor.
...
--HG--
extra : rebase_source : f4b7b385bbece2316912ce67c77a49ac8fca6e5c
2009-09-09 15:53:37 -05:00
Igor Bukanov
6bfe4771cc
bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff
2009-09-05 19:59:11 +04:00
Brendan Eich
b347b52323
Minimal fix for latent js_InferFlags bug where TR::snapshot calls js_InferFlags on arbitrary ops (514790, r=gal).
2009-09-04 17:47:23 -07:00
Luke Wagner
6bfe9f9329
Bug 460904 - rename/tweak JSTraceableFunction (take 2)
2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d
Backed out changeset 94da2f68afdb
2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2
Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff)
2009-09-03 11:57:14 -07:00
Brendan Eich
cce4dce512
Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff).
2009-09-03 14:41:19 -07:00
Jason Orendorff
d41212b7a6
Bug 514222 - js_GetMutableScope gives the scope a unique shape. r=brendan.
2009-09-02 17:58:25 -05:00
Igor Bukanov
932b904a7a
bug 511425 - followup to fix bogus assert
2009-08-30 22:07:19 +04:00
Andreas Gal
c85b53a42a
Backout bug 512617.
2009-08-29 18:46:27 -07:00
Andreas Gal
64328a8e94
Consolidate object creation on trace (512617, r=jorendorff).
2009-08-29 12:36:00 -07:00
Igor Bukanov
b919139e8d
bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan
2009-08-28 09:53:26 +04:00
Blake Kaplan
6060f8e476
No bug - Fix warning when tracing is not on. r=jorendorff
...
--HG--
extra : rebase_source : f1733190a19f19d37665eb8d3db2427fed69b5ee
2009-08-25 14:18:12 -07:00
Jason Orendorff
dafc9b5d2a
Bug 508685 - Remove last parameter of defineProperty op. r=brendan.
2009-08-26 14:28:36 -07:00
Brendan Eich
b063d31520
Back out changeset aff171a8c4f0 (bug 471214).
2009-08-26 09:34:41 -07:00
Brendan Eich
bd8f55c0ad
Join function objects where possible (471214, r=igor).
2009-08-25 23:42:37 -07:00
Andreas Gal
d2459a75f9
Merge.
2009-08-25 14:43:09 -07:00
Andreas Gal
030a8114b2
Backed out changeset 9b6b17a275ec (bug 506125).
2009-08-25 14:42:42 -07:00
David Anderson
e322e64001
Removed JSStackFrame::xmlNamespace (bug 512389, r=brendan).
2009-08-25 12:07:45 -07:00
Andreas Gal
f808b9ca98
Memory-pressure based GC scheduler (506125, r=igor,jwalden).
2009-08-24 18:24:52 -07:00
David Anderson
744033066f
Removed JSStackFrame::callee (bug 512029, r=brendan).
2009-08-24 17:09:44 -07:00
Robert Sayre
86100e21e2
Merge mozilla-central to tracemonkey.
2009-08-20 18:02:17 -04:00
Jason Orendorff
5418886640
Bug 511418 - static-analysis error in jsobj.cpp:4257: cannot access JS_REQUIRES_STACK variable JSContext::fp and another trivial error in jstracer.cpp. r=gal.
...
--HG--
extra : rebase_source : 9ee93b34fbf656437932a4f3c8b373a11911cffd
2009-08-20 14:13:21 -05:00
Jason Orendorff
88e3edcd5e
Bug 506491 - Download Manager opens 'Blank' - intermittent - Error: gStr.timeUnits is undefined and download is null. r=brendan.
...
--HG--
extra : rebase_source : 22338610bff62f5aefca99a07f4f54621d18a680
2009-08-20 12:25:09 -05:00
Andreas Gal
c438241025
Backout bug 506125.
2009-08-18 17:30:05 -07:00
Andreas Gal
57285268f7
Schedule GC based on process memory pressure (506125, r=igor,waldo).
2009-08-18 16:38:02 -07:00
Jim Blandy
d73272bc1a
Bug 509510: Make Object.getPrototypeOf reject primitives, not coerce them. r=mrbkap
2009-08-17 14:54:52 -07:00
Igor Bukanov
7e607aac4d
bug 495061 - js_PutArgsObject and js_PutCallObject that never fail. r=brendan
2009-08-14 20:43:16 +02:00
Jason Orendorff
7de8690fbc
Bug 510091 - Fennec crash on mousedown on an iframe. r=Waldo.
2009-08-13 16:07:13 -05:00
Luke Wagner
fa2f83712c
Bug 507458 - clear the waters a bit regarding JSVAL_BOOLEAN
2009-08-12 16:39:23 -07:00
Jason Orendorff
9dc4a54a5d
Bug 498488 - Change some JSObject macros to methods. r=Waldo.
2009-08-11 15:05:44 -05:00
Graydon Hoare
fd8a117e2f
Bug 503694 - TM: Code run off an event handler is never traced, r=brendan.
...
--HG--
extra : rebase_source : da2e900baac68f88f06eaa8554b245f7d403153f
2009-08-06 12:40:51 -07:00
Robert Sayre
94c5688746
Backed out changeset 70b3b23c948a
2009-08-06 11:16:20 -07:00
Andreas Gal
af827d73f8
Memory-pressure based GC scheduler (506125, r=igor).
2009-08-05 17:27:20 -07:00
Andreas Gal
9c938dd547
Backout bug 506125 due to talos failures.
2009-08-04 18:42:53 -07:00
Andreas Gal
06ad033ff2
Memory-pressure based GC scheduler (506125, r=igor).
2009-08-04 14:58:21 -07:00
Igor Bukanov
ef90f6f522
bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden
2009-08-04 23:06:55 +02:00
Robert Sayre
99a0962393
Backed out changeset e09130fcb013
2009-07-28 18:51:35 -04:00
Brendan Eich
8d27b07ec5
Bug 471214 - Join function objects transparently, clone via read barrier to satisfy de-facto standard (r=igor).
2009-07-28 13:20:14 -07:00
Jason Orendorff
eb14203c0c
Bug 506786 - JSScope::trace method. r=brendan.
2009-07-28 04:00:35 -05:00
Andreas Gal
e7f2714ea1
When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).
2009-07-27 21:10:12 -07:00
Jason Orendorff
a22e8a6032
Bug 505932 - Shape regeneration does not touch most empty scopes. r=brendan.
2009-07-27 16:29:02 -05:00
Brendan Eich
b4a10de944
Bug 488731 - Avoid shape regeneration and property cache purge during the GC (r=mrbkap).
2009-07-24 06:55:28 -07:00
Igor Bukanov
1fcf4af3b3
bug 505460 - preallocating reserved slots. r=brendan
2009-07-24 12:01:37 +02:00
Robert Sayre
6968ea2205
Merge backout.
2009-07-24 00:02:02 -04:00
Robert Sayre
9e0ade7287
Backed out changeset b3d459d23452
2009-07-24 00:01:37 -04:00
Robert Sayre
3722b48ae2
Merge backout.
2009-07-23 22:08:05 -04:00
Robert Sayre
d71c6818a0
Backed out changeset 047b9102dddb
2009-07-23 22:06:31 -04:00
Brendan Eich
cf4a2c7921
Avoid shape regeneration and property cache purging from the GC unless the shape generator overflows (488731, r=jorendorff).
2009-07-23 17:59:49 -07:00
Andreas Gal
eb711234db
Use a background thread to free() memory while sweeping (505612, r=brendan,bent).
2009-07-23 15:12:34 -07:00
Igor Bukanov
9534c3d315
bug 504033 - avoiding calling JSFinalizeStub. r=brendan
2009-07-22 18:23:21 +02:00
Jason Orendorff
a31f80165c
Bug 503080 - Remove prototype-scope-sharing. r=brendan.
2009-07-21 16:25:11 -05:00
Andreas Gal
f8892ed21b
Shrink slots during GC only, split ReallocSlots into Alloc/Grow/ShrinkSlots (504478, r=igor).
2009-07-16 18:42:54 -07:00
Brendan Eich
b1cf17d802
Bug 501230 - TM: fast path for String.toString (r=gal).
2009-07-15 17:36:24 -07:00
Andreas Gal
1af8dfb112
Avoid integer division in NewGCThing path (503157, r=jwalden).
2009-07-14 17:06:09 -07:00
Robert Sayre
b172ec27fd
Merge tracemonkey to mozilla-central.
2009-07-13 18:19:51 -04:00
Andreas Gal
f552010935
Make js_ValueToString inline (503669, r=jwalden).
2009-07-13 14:55:04 -07:00
Andrew Sutherland
aaeccd8701
bug 497355 - Assertion failure: STOBJ_GET_CLASS(obj) != &js_BlockClass, at /Users/moztest/comm/main/src/mozilla/js/src/jsscope.cpp:79. r=igor
2009-07-13 13:45:34 -07:00
Andreas Gal
3367fcef8e
Inline FinalizeObject into js_GC() along with making Scope hold() and drop() inline, too (503461, r=dmandelin).
2009-07-12 07:38:59 -07:00
Andreas Gal
d788e5a1d4
Make CHECK_FOR_STRING_INDEX an inline function (503666, r=jwalden).
2009-07-11 15:41:32 -07:00
Brendan Eich
f60779aef5
Bug 503343 - Change JSScope macros to methods. r=jorendorff
2009-07-09 15:27:21 -05:00
David Mandelin
975f74c278
Bug 453730: trace JSOP_ARGUMENTS, r=gal
2009-07-08 11:16:41 -07:00
Andreas Gal
e06ace81ce
Build fix for 502145 with JS_TRACER disabled (no bug).
2009-07-06 07:01:21 +02:00
Andreas Gal
16a60091ed
Shortcut lookup flag calculation when on trace (bug 502145, r=igor).
2009-07-06 06:42:13 +02:00
Andreas Gal
84b0735487
js_GetMethod shouldn't detect (501229, r=jorendorff).
2009-06-29 15:19:37 -07:00
Jason Orendorff
71785f1019
Bug 499897 - reverse INULL in js_ComputeFilename. r=Waldo.
2009-06-25 18:03:46 -05:00
Igor Bukanov
795af78c24
bug 499570 - fixing shutdown leak of not-yet-closed JSNativeEnumerator instances. r=brendan
2009-06-23 18:52:03 +02:00
Jason Orendorff
52fe5a97ba
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Jeff Walden
9607777654
Bug 496054 - TM: Null deref [@ JITted code] involving __proto__ munging and array-like access. r=brendan
2009-06-03 16:34:37 -07:00
Igor Bukanov
ae04e76e20
bug 494208 - js_SetProtoOrParent must check if the object is native before locking it. r=brendan
2009-05-29 10:47:51 +02:00
Blake Kaplan
3ffa053fd1
Fix GCC warnings about the argument to %p not being a void *. rs=jorendorff
2009-05-20 16:30:20 -07:00
Jason Orendorff
aa37602c02
Bug 490908 - js_DumpStackFrame. r=Waldo.
2009-05-20 10:10:03 -05:00
Benjamin Smedberg
8d53d7a7ea
Bug 492113 - statically assert that we're not on trace in js_SetPropertyHelper, r=igor
2009-05-15 09:37:37 -04:00
Igor Bukanov
0374ee3760
bug 490364 - mutating parent chain shapes only for Call objects and only when adding properties that are not parameter or var names. r=brendan
2009-05-15 11:43:19 +02:00
Igor Bukanov
92f94e451c
bug 491126 - sharing object map for non-native objects. r=brendan
2009-05-14 12:35:23 +02:00
Brendan Eich
0416e1e679
Bug 492355 - Suspected Txul regression from JS engine changes (r=igor).
2009-05-13 17:11:23 -07:00
Igor Bukanov
6c6cde911a
bug 490364 - fixing bad typo in js_SetProtoOrParent. r=mrbkap
2009-05-13 15:05:28 +02:00
Brendan Eich
86967b457a
Bug 452189 - regression (from firefox 2): prototype setters not called by inline cache for [[put]] (r=mrbkap).
2009-05-08 14:04:10 -07:00
Igor Bukanov
3597961095
bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan
2009-05-06 20:33:10 -02:30
jorendorff
93c6d226d3
Record all calls to native functions (487134, r=gal, brendan).
2009-05-05 14:26:06 -07:00
Andreas Gal
fe1ed6adb9
Backed out changeset 6534f8b9aa74 (bug 491013, assert on startup).
2009-05-04 15:07:53 -07:00
Igor Bukanov
d77b8664fb
bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan
2009-05-03 20:43:55 -04:00
Igor Bukanov
227ef1efd3
bug 491115 - asserting in js_SetProtoOrParent only when not detecting cycles. r=brendan
2009-05-02 20:49:45 +02:00
Igor Bukanov
35116060a2
bug 489501 - consolidating
...
js_SetProto must mutate the prototype chain. r=brendan
2009-05-01 13:48:27 -07:00
Jim Blandy
d9e9626654
Bug 488018: Fix bustage: any function using TRACE_2 needs an 'error' label.
2009-04-30 17:54:20 -07:00
Andreas Gal
cafa156d52
We don't cache access to shared properties in the property cache (490666, r=igor,brendan).
2009-04-30 15:52:13 -07:00
Igor Bukanov
b8405f1171
bug 487846 - optimizing shape prediction for set opcodes. r=brendan
2009-04-29 07:07:21 -07:00
Graydon Hoare
9188f47f3a
Backout a seemingly problematic line of cset d8c2060b0f9b.
2009-04-24 23:13:27 -07:00
Graydon Hoare
bb4177dccd
Bug 490044 - TM: Add deep-bailing write barrier to global shape change code, r=brendan.
2009-04-24 17:47:32 -07:00
Andreas Gal
e58ef54027
js_NewInstance locks ctor on trace (490092, r=brendan).
2009-04-24 19:41:36 -07:00
Igor Bukanov
e4bc4e81cb
bug 488995 - fixing error reporting for getter-only properties. r=mrbkap sr=jst
2009-04-22 12:39:08 +02:00
igor
48c3925a9a
js_SetPropertyHelper does not null *entryp for read-only properties (489171, r=gal,brendan).
2009-04-20 17:00:59 -07:00
Igor Bukanov
4ad2e764fa
bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal
2009-04-20 12:10:29 +02:00
Igor Bukanov
fd49b19773
Backed out changeset f4662701526b (bug 488414) to fix !JS_THREADSAFE compilation errors
2009-04-20 11:59:36 +02:00
Igor Bukanov
56547f8087
bug 488414 - js_GenerateShape just schedules, not run, the GC. r=brendan,gal
2009-04-20 10:17:28 +02:00
Igor Bukanov
ba556afe6d
bug 487039 - caching only white-listed non-globals on the scope chain. r=brendan
2009-04-18 20:10:59 +02:00
Igor Bukanov
ac71be6d66
bug 487204 - NativeGet caching fixes. r=brendan
2009-04-18 19:56:53 +02:00
Graydon Hoare
f97341fdf6
Bug 488363 - Missing write barrier on global object, r=jorendorff.
2009-04-17 15:25:25 -07:00
Andreas Gal
da0094a55c
Backed out changeset 324bb9dc8372 (bug 487204 is implicated in top site failures).
2009-04-17 12:41:00 -07:00
Andreas Gal
6520b20732
Backed out changeset 5bd116148175 (attempting to re-land bug 487204).
2009-04-16 17:56:18 -07:00
Andreas Gal
3b10c56019
Backed out changeset d1a4ee3d0c59 (bug 487204, due to possible leak).
2009-04-16 12:19:24 -07:00
Igor Bukanov
577cb23ac0
bug 487204 - avoiding extra locks for js_Native(Get|Set). r=brendan
2009-04-15 21:13:27 +02:00
Igor Bukanov
95c0598199
bug 488285 - fixing strict mode warnings with DOm window object. r=brendan
2009-04-15 16:09:58 +02:00
Igor Bukanov
225dc1322f
bug 488029 - fixing bindname optimization regression from the bug 462734 plus creating js_DeclEnvClass instances together with Call objects. r=brendan
2009-04-14 12:54:37 +02:00
Igor Bukanov
6da0ea9b5e
bug 462734 - fixing JSOP_BINDNAME caching issues. r=brendan
2009-04-11 10:11:06 +02:00
Igor Bukanov
d738892163
Backed out changeset 595ebe7b82fa - it had wrong patch
2009-04-11 10:07:42 +02:00
Igor Bukanov
de22fe3e47
bug 462734 - fixing JSOP_BINDNAME caching issues. r=brendan
2009-04-11 10:04:24 +02:00
Jason Orendorff
b5d4ba583e
Bug 487676 - Nesting deep-aborting trace calls don't work. r=gal.
...
--HG--
extra : rebase_source : 436164485bd5e981e5ae8997eed2c371f3ecd77b
2009-04-09 18:07:00 -05:00
Jim Blandy
1d133ec6ba
Bug 469237: Assert that we never add properties to lexical blocks. r=igor
2009-04-09 13:07:27 -07:00
Brendan Eich
fa172251b0
Bug 481514 - PurgeScopeChain should not deep-bail quite so eagerly (r=jorendorff, a=sayrer).
2009-04-06 13:24:34 -07:00
Brendan Eich
962b187fe5
upvar2, aka the big one take 2 (452598, r=mrbkap).
2009-04-05 21:17:22 -07:00
Andreas Gal
706120c0fb
Backed out changeset 972c44aa9d1f (bug 452598).
2009-04-04 10:14:52 -07:00
Brendan Eich
5f4d9ff474
upvar2, aka the big one (452598, r=mrbkap).
2009-04-04 10:05:49 +01:00
Igor Bukanov
4df05a423c
bug 484861 - removal of unsed fields from JSObjectOps. r=mrbkap
2009-04-01 14:32:51 +02:00
Graydon Hoare
3e481f618d
Bug 484751 - Followup patch to fix crash in initial checkin, r=mrbkap.
2009-03-31 19:34:32 -07:00
Jeff Walden
3e189b0822
Bug 484751 - TM: "Assertion failure: !OBJ_GET_CLASS(cx, proto)->getObjectOps, at ../jsobj.cpp". r=mrbkap
2009-03-31 14:24:01 -07:00
Robert Sayre
d3ae3d827d
Merge mozilla-central to tracemonkey.
2009-03-29 10:42:32 -07:00
Jeff Walden
69543b2f1f
Make js_DumpValue more useful with function jsvals. r=mrbkap
2009-03-26 16:07:54 -07:00
Robert Sayre
150b7d8a28
Merge tracemonkey to mozilla-central.
2009-03-24 13:49:05 -04:00
Ben Turner
b554980985
Fix for windows build bustage
2009-03-19 17:19:19 -07:00
Robert Sayre
116429311e
revert to changeset b59984b88601
2009-03-20 00:23:44 -04:00
Robert Sayre
f7b741972b
Merge tracemonkey to mozilla-central.
2009-03-20 00:04:47 -04:00
Ben Turner
364e0e0d6a
Fix for windows build bustage
2009-03-19 17:19:19 -07:00
Andreas Gal
315a5d0bcb
Read barrier for global object properties (463153, r=brendan).
2009-03-17 10:39:51 -07:00
Jason Orendorff
befcabe89e
Bug 481444 - TM: objectHook is called on trace, via js_NewObject [@ LeaveTree] or [@ js_SynthesizeFrame]. r=gal.
...
Thanks Daniel!
2009-03-12 08:34:57 -05:00
Igor Bukanov
20e6be9c80
bug 362910 - js_GetMethod cleanup. r=brendan
2009-03-14 17:41:47 +01:00
Jim Blandy
249eed4eb3
Back out fix for 481444; orange on Linux TraceMonkey unit test: http://tinderbox.mozilla.org/showlog.cgi?log=TraceMonkey/1236978913.1236990062.26824.gz&fulltext=1
2009-03-13 18:07:25 -07:00
Jason Orendorff
f7ad0e9e06
Bug 481444 - TM: objectHook is called on trace, via js_NewObject [@ LeaveTree] or [@ js_SynthesizeFrame]. r=gal.
...
Thanks Daniel!
2009-03-12 08:34:57 -05:00
Jim Blandy
875aee5e88
Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan
2009-03-18 11:38:16 -07:00
Jason Orendorff
dbb0b6a149
Bug 481218 - js_IsCallable returns false for functions. r=brendan.
...
--HG--
extra : rebase_source : 52d3cba36f3fa1301223cb579bd75ec7bbd5d130
2009-03-11 10:46:45 -05:00
Robert Sayre
a408d9bbad
Merge m-c to tm.
2009-03-10 16:49:12 -04:00
Igor Bukanov
09d80afc72
bug 355829 - treating null as a primitive value in js_ValueToObject. r=brendan
2009-03-10 13:52:10 +01:00
Brendan Eich
e37fd1b818
Bug 476447 - Array.prototype getter/setter does not work as usual (r=jorendorff).
2009-03-09 11:25:43 -07:00
David Mandelin
a148ea64cd
Add missing GC_POKE to js_SetRequiredSlot (481922, r=igor).
2009-03-07 01:32:22 -08:00
Brendan Eich
0332084955
Bug 481516 - Assertion failure: pobj_ == obj2, at ../jsinterp.cpp:4276 when getting a property that is cached but shadowed (r=jorendorff).
2009-03-06 16:34:19 -08:00
Brendan Eich
53c9096f08
Bug 480759 - TM: trace RegExp constructors (r=gal).
2009-03-04 19:26:16 -08:00
Robert Sayre
8f71e6c715
Merge m-c to tm
2009-03-04 14:52:53 -05:00
Brendan Eich
a57f1ef4a2
Keep --disable-jit working (480657, r=gal).
2009-03-04 00:38:46 -08:00
Brendan Eich
f32c3d8613
Bug 480657 - TM: Add an API to define traceable constructors (r=gal, jorendorff).
2009-03-03 22:53:27 -08:00
Andreas Gal
8c3223aab5
Browser spuriously sets runtime->anyArrayPrototypeHasElement and makes perf bad (481251, r=mrbkap).
2009-03-03 18:04:15 -08:00
Robert Sayre
f4c8ebe128
Merge tm to m-c.
2009-03-03 13:48:15 -05:00
Jason Orendorff
ffaa49afc4
Bug 480856 - PurgeScopeChain should deep-bail. r=brendan.
...
--HG--
extra : rebase_source : b9c10596268b9421f66d9636342b7edf4419055e
2009-03-02 14:01:30 -06:00
Andreas Gal
4c04aa2f53
Backed out bug 480657. Massive failures across all platforms.
2009-02-28 23:40:04 -08:00
Andreas Gal
ee820bda7a
Style nit (no bug, no code change).
2009-02-28 18:40:59 -08:00
Andreas Gal
7bd6cbad5f
Add an API to define traceable constructors (480657, r=brendan).
2009-02-28 18:18:42 -08:00
Robert Sayre
990a187dc6
Merge tracemonkey to mozilla-central.
2009-03-09 14:45:46 -04:00
Blake Kaplan
e3650307b7
Bug 478910 - Unwrap |obj| because you can't use a wrapper as a variables object. r=brendan
2009-03-04 16:27:50 -08:00