Nicholas Nethercote
6bcbe2ea63
Bug 557713 - encapsulate JSSLOT_ARGS_* within JSObject. r=brendan.
2010-04-11 16:45:20 -07:00
Andreas Gal
a887d81302
Inline the object allocation path (558003, r=sayrer).
2010-04-10 16:16:35 -07:00
Nicholas Nethercote
f0550e09e5
Bug 560167 - encapsulate XML-related JSSLOT_* values within JSObject (attempt 2; attempt 1 was backed out due to conflicts). r=brendan.
2010-05-12 18:57:36 -07:00
Jason Orendorff
bdb491ed34
Backed out changeset 8cb8888c68d3 due to failing mochitests.
2010-05-12 09:34:03 -05:00
Jason Orendorff
2b3384521c
Bug 513065 - Part 3, compute scope in the engine before calling the thisObject hook. r=mrbkap.
2010-05-12 08:15:49 -05:00
Jason Orendorff
ab2c2c89d5
Bug 513065 - Part 1, avoid thisObject when unwrapping With objects. r=mrbkap.
...
--HG--
extra : rebase_source : 129c8592e7f14bb76cc648ba8ae930bfc73507cb
2010-05-12 08:11:46 -05:00
Brian Hackett
8ad86a5d56
Date performance fixes, bug 578259. r=waldo
2010-08-17 10:42:57 -07:00
Brian Hackett
16873a1fb8
Bug 579471 - fast constructors (r=dmandelin,lw)
2010-08-10 16:38:08 -07:00
Jason Orendorff
d354a0998c
No bug: fix visibility warnings in GCC, no_r=me
2010-04-01 11:01:14 -05:00
Nicholas Nethercote
795d4b8ad2
Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan.
2010-03-31 22:13:51 -07:00
Jason Orendorff
24aa3470aa
Bug 556315 part 2 - JSObject::getGlobal() and JSStackFrame::getThisObject(). r=gal.
...
--HG--
extra : rebase_source : 103e73537d3c2f537a914b69a620136451a664ba
2010-03-31 17:57:03 -05:00
Robert Sayre
baeb2d1edf
Merge mozilla-central to tracemonkey.
2010-03-30 21:13:01 -07:00
Nicholas Nethercote
684396fb91
Bug 555631 - Convert STOBJ_* macros to inline functions. r=gal.
2010-03-30 14:42:48 -07:00
Brendan Eich
34b1a91d97
Fix arguments objects to share a runtime-wide empty scope, instead of each getting a differently shaped own scope at birth (554626, r=igor).
2010-03-30 00:44:28 -07:00
Jeff Walden
560212f1a8
Readd all jsobj.cpp and related changes from bug 548702.
2010-03-28 20:32:20 -07:00
Jeff Walden
0973dfd6ab
Merge.
2010-03-26 21:53:40 -07:00
Jeff Walden
95422c65a3
Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\
2010-03-26 18:01:54 -07:00
Jason Orendorff
d5f9ef6c2a
Bug 500431 part 3 - Rename JSPropertyCache to js::PropertyCache and other renamings. r=brendan.
2010-03-24 21:20:44 -05:00
Andreas Gal
06be8164da
Public JS API for new ES5 Object functions (551595, r=jwalden).
2010-03-24 12:36:42 -07:00
Jason Orendorff
289a8b3513
Bug 530583 - Delete silly JS_INT32_TO_PTR etc. macros. r=jwalden.
...
--HG--
extra : rebase_source : ccd52d3c33a3fd984fb5588ef12cbf9a6a80c423
2010-03-16 10:41:28 -05:00
Andreas Gal
5bea94fbab
Backed out changeset 1732da7b3164
2010-03-15 16:13:49 -07:00
Andreas Gal
093f809d06
Allow class of native objects to change (552552, r=jorendorff).
2010-03-15 16:07:28 -07:00
Robert Sayre
84b14d6f30
Merge mozilla-central to tracemonkey.
2010-03-13 11:51:12 -05:00
Jeff Walden
106fbd8085
Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
...
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
Igor Bukanov
9d1cbd468c
bug 549010 - folowup to replace PROTO access macros with the inlne function
2010-03-04 23:52:52 -08:00
Mike Moening
0373a2437d
bug 549010 - fixing and silencing MSVC warnings. r=brendan,igor
2010-03-04 20:44:09 -08:00
Robert Sayre
5cf27a725e
Merge tracemonkey to mozilla-central.
2010-03-26 15:53:14 -07:00
Andreas Gal
18afa9f743
Setters/getters can be callable objects (547912, r=brendan).
2010-02-22 22:25:09 -08:00
Andreas Gal
7fc1c8efb0
Introduce ObjectOps for typeOf and make trace a mandatory ObjectOp (547314, r=brendan).
2010-02-22 16:30:22 -08:00
Andreas Gal
bd338bc100
Test whether obj IsCallable instead of VALUE_IS_FUNCTION for call and apply (547046, r=mrbkap).
2010-02-22 14:07:50 -08:00
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
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
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
Igor Bukanov
836b8a84eb
bug 540805 - using reference counting only for empty scopes. r=jorendorff
2010-01-27 09:50:17 +03:00
David Mandelin
9600769682
Bug 495331: trace JSOP_LAMBDA for non-heavyweight, non-null closures, r=jorendorff,dvander
2010-01-15 11:32:14 -08:00
Brendan Eich
983aa690e9
Analyze module pattern and private-statics pattern in order to despecialize from methods to slots/sprops (536564, r=jorendorff).
2010-01-14 09:33:14 -08: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
cd687c4a78
Bustage fix, r=lumpy
2009-12-29 13:13:49 -06:00
Mike Hommey
dce0218e52
Bug 555920 - Move js_obj_define{G,S}etter declarations in jsobj.h and make resolving_MatchEntry static, as it's not defined in any header [r=jwalden]
2010-05-13 09:45:33 +02:00
Jeff Walden
ad6a89209e
Bug 517580 - Unconditionally build with support for getters and setters, remove support for the deprecated { x getter: function() {}} and x getter= function() {} getter syntaxes (mutatis mutandis for setter) now that ES5 provides Object.getOwnPropertyDescriptor and Object.defineProperty and { get x() { } } syntax, and provide __{define,lookup}{G,S}etter__ only if a preprocessor variable is defined (unconditionally provided for the moment). r=luke
2009-10-06 12:35:33 -07:00
Ben Turner
0bdadbfbee
Bug 550275 - 'Implement the HTML5 structured clone algorithm'. r=jst+mrbkap, sr=jst.
2010-03-17 12:55:45 -07:00
Sid Stamm
47a3291b46
bug 515443 CSP no-eval support. r=mrbkap,brendan
2010-03-08 00:24:50 -08:00
Jason Orendorff
cbe2891235
Backed out changeset d4caa61e69ab. It turned the tree red.
2010-07-01 20:06:33 -05:00
Andreas Gal
5c69f9ab84
Implement remaining cross compartment wrappers (574924, r=mrbkap).
2010-07-01 15:45:08 -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
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
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
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
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
David Mandelin
fae21d7c3e
Bug 519363: more new diagnostic null pointers. r=gal
2009-10-08 19:00:21 -07: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
Robert Sayre
14ef91c61f
Merge mozilla-central to tracemonkey.
2009-09-25 11:55:38 -07:00
David Mandelin
99fb23d064
Bug 511695: Fix JS warnings in MSVC8, r=brendan
2009-09-23 11:16:30 -07:00
Luke Wagner
c1a69497a0
Bug 511777 - avoid regexp engine for flat strings (r=waldo)
...
--HG--
extra : rebase_source : bf121e6918f2174378babc72b3dbe1b2f4ffdbec
2009-09-23 08:54:50 -07:00
Luke Wagner
88b39718d0
Backed out changeset 20ee84099e38
2009-09-22 10:19:59 -07:00
Luke Wagner
ca5191b5f2
Bug 511777 - avoid regexp engine for flat strings
...
--HG--
extra : rebase_source : 81afb9a486643f4d88dff9bba6ec2cccd07b07f0
2009-09-16 18:23:27 -07:00
Igor Bukanov
8da9fad53a
bug 512046 - avoid maintaing a per-runtime iterator list. r=brendan
2009-09-19 13:40:43 +04: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
Blake Kaplan
e4fc79f8a7
Merge backout.
2009-09-17 15:24:08 -07:00
Blake Kaplan
5e4fdf8802
Backed out changeset af649bce14da. Trying to fix performance regressions.
2009-09-17 15:23:58 -07:00
Andreas Gal
231c6c273f
Objects of different JSClass can share scopes (505523, r=jorendorff).
2009-08-25 20:17:11 -07:00
Makoto Kato
7147fd6a28
Bug 510449 - Bug 493457 causes crash on x64 windows build because JSSLOT_CLASS_MASK_BITS is uint32. r=jwalden
2009-08-14 11:09:59 -07:00
Jason Orendorff
9dc4a54a5d
Bug 498488 - Change some JSObject macros to methods. r=Waldo.
2009-08-11 15:05:44 -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
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
Brendan Eich
932d989110
Fix net vs. gross botches from patch for 489899 (514112, r=gal).
2009-09-01 22:54:02 -07: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
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
63202434e1
That made things worse, I need to sleep -- calling all static-analysis gurus... little help?
2009-08-26 00:38:13 -07:00
Brendan Eich
e5ce3c156e
Try to fix static-analysis probs.
2009-08-26 00:31:04 -07:00
Brendan Eich
bd8f55c0ad
Join function objects where possible (471214, r=igor).
2009-08-25 23:42:37 -07: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
Igor Bukanov
ef90f6f522
bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden
2009-08-04 23:06:55 +02:00
Jason Orendorff
f0ca3c8bd9
Bug 506982 - Fix up jstracer style. r=Waldo.
2009-07-29 11:58:19 -05: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
Robert Sayre
a025e17aae
Merge mozilla-central to tracemonkey.
2009-07-26 10:57:19 -04:00
Robert Sayre
710cad8b2a
Merge tracemonkey to mozilla-central.
2009-07-24 13:42:38 -04:00
Rob Campbell
8b46045669
bug 474358 - ASSERTION: Inner window detected in Equality hook, isOuterWindow, p=me, r=timeless, sr=mrbkap
2009-07-24 10:20:34 -03:00
Igor Bukanov
1fcf4af3b3
bug 505460 - preallocating reserved slots. r=brendan
2009-07-24 12:01:37 +02:00
Robert Sayre
a181aec2ed
Merge mozilla-central to tracemonkey.
2009-07-23 16:49:14 -04:00
Jason Orendorff
a31f80165c
Bug 503080 - Remove prototype-scope-sharing. r=brendan.
2009-07-21 16:25:11 -05:00
Ginn Chen
5e813f70a4
Bug 492720 libgjs failed to compile with js headers of Firefox 3.5 r=brendan
2009-07-23 18:07:09 +08: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
Andreas Gal
1af8dfb112
Avoid integer division in NewGCThing path (503157, r=jwalden).
2009-07-14 17:06:09 -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
Robert Sayre
878a89a073
Merge mozilla-central to tracemonkey.
2009-07-06 12:20:54 -04:00
Andreas Gal
16a60091ed
Shortcut lookup flag calculation when on trace (bug 502145, r=igor).
2009-07-06 06:42:13 +02:00
Jason Orendorff
52fe5a97ba
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Johnny Stenback
a511964116
Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org
2009-06-30 15:55:16 -07:00
Jason Orendorff
aa37602c02
Bug 490908 - js_DumpStackFrame. r=Waldo.
2009-05-20 10:10:03 -05: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
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
35116060a2
bug 489501 - consolidating
...
js_SetProto must mutate the prototype chain. r=brendan
2009-05-01 13:48:27 -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
Andreas Gal
a89bbaad23
Stay on trace when reading holes from dense arrays (489899, r=brendan).
2009-04-24 16:28:21 -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
Jeff Walden
c9680230c4
Bug 473117 - Rejigger how guards use side exits, and fix an erroneous comment. r=graydon
2009-04-18 16:47:23 -07: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
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
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
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
f48629a9d6
bug 486139 - removal of JSProperty struct definition. r=mrbkap
2009-04-03 09:53:17 +02:00
Igor Bukanov
4df05a423c
bug 484861 - removal of unsed fields from JSObjectOps. r=mrbkap
2009-04-01 14:32:51 +02:00
Jason Orendorff
22f1bdf5d6
Bug 483473 - Make JSObjectOps private. r=brendan.
...
--HG--
extra : rebase_source : 3240cb1f5c047dc92f8d1b525963bcb27e0a3521
2009-03-31 09:02:20 -05:00
Igor Bukanov
20e6be9c80
bug 362910 - js_GetMethod cleanup. r=brendan
2009-03-14 17:41:47 +01: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
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
100a8e68be
Bug 476374 - JSON.parse does not support reviver argument as defined in spec. r=jorendorff
2009-03-03 12:55:11 -05:00
Andreas Gal
4c04aa2f53
Backed out bug 480657. Massive failures across all platforms.
2009-02-28 23:40:04 -08:00
Andreas Gal
7bd6cbad5f
Add an API to define traceable constructors (480657, r=brendan).
2009-02-28 18:18:42 -08:00
Jeff Walden
378c7d2cea
Kicking Windows...
2009-02-27 22:32:38 -08:00
Jeff Walden
6913144660
Bug 480579 - __proto__ setting does not flag delegate, breaking deep property caching assumptions. Tag-team effort of Brendan and me, r=us
2009-02-27 22:23:09 -08:00
Jeff Walden
ece84ef199
Bug 474501 - JS array and object literals should define properties, not set them, to avoid calling getters or setters along the prototype chain. r=brendan
2009-02-03 23:14:36 -08:00
Jason Orendorff
b7fb9bc849
Bug 460865 - Read barrier for cx->fp. r=mrbkap, r=dmandelin.
...
--HG--
extra : rebase_source : 19963188b2f9f96336ce6ca28dbaefccf3a639b7
2008-12-09 10:38:32 -06:00
Jeff Walden
5536e7f722
Bug 465476 - SpiderMonkey confusion over "-0" and "0" properties of an object. r=brendan
2008-11-21 11:47:35 -08:00
Jason Orendorff
a27d101dab
Bug 458735 - Improve internal API for traceable natives (r=brendan, nanojit r=edwsmith)
2008-10-08 17:08:33 -05:00
Jason Orendorff
e63d2c737c
Bug 455953 - js_DumpObject debugging function (r=crowder)
2008-09-25 11:29:12 -05:00
Brendan Eich
34a2d3c518
Fix build bustage: parent or proto might be not JSObject* when setting to null. r=brendan, patch by bz.
2008-09-09 12:33:28 -07:00
Brendan Eich
40cf4096c7
Avoid needless prototype-shape purges (454035, r=igor).
2008-09-09 09:57:10 -07:00
Brendan Eich
9cd8e5a539
Upvar, v0.1 (limited to looking up from eval in a function, to the function's args and vars).
2008-08-21 03:47:33 -07:00
Brendan Eich
4a25cf5a32
Defer eval'ed script destruction to next GC; expose js_obj_eval for tracing.
2008-08-20 22:18:42 -07:00
shaver@mozilla.org
5d3ad68bbe
merge from mozilla-central
2008-08-20 08:17:17 -07:00
Brendan Eich
d004346b52
Object.prototype.{hasOwnProperty,propertyIsEnumerable}.
2008-08-11 17:47:05 -07:00
Brendan Eich
56fac8fe90
Back out extra gcflag param change (859b9a23adbf), I set bad precedent and will back out previous such shortly. Want cx->gcflags instead.
2008-08-11 10:33:23 -07:00
shaver@mozilla.org
ee67ea9db4
extend js_NewObjectWithGivenProto to permit specifying additional new-thing flags (such as GCX_DONT_BLOCK)
2008-08-10 22:56:10 -04:00
Brendan Eich
eaf4254c15
Merge from mozilla-central.
2008-08-08 18:58:04 -07:00
Igor Bukanov
b16852c1cd
bug 412296 - removal of minarg support for fast native
2008-08-08 18:02:50 +02:00
Brendan Eich
fe3a6127c5
- Export JSSLOT_ITER_* from jsiter.cpp to jsiter.h, for jstracer.cpp to use.
...
- Fix OBJ_GET_SLOT to be STOBJ_GET_SLOT in jsiter.cpp, no thread safety here (bug on file).
- Move JSNativeEnumerator from jsobj.cpp to jsobj.h for jstracer.cpp as well.
- Rename JOF_2BYTE JOF_UINT8 for consistency, and actually decompile it.
- Trace JSOP_FORVAR (can't do anything in JSOP_ITER, it comes before the loop).
- Shortened some guardMyLongSummerVacationWithinBounds names ;-).
- Removed/refactored to avoid dslots_ins obligation on all callers.
2008-07-30 16:32:33 -07:00
Igor Bukanov
d3223d86a3
[Bug 446229] Fixing GCC conversion warnings within SpiderMonkey. r=brendan
2008-07-20 14:53:21 +02:00
Igor Bukanov
e1c0b7d628
Bug 443746 – Optimizing the enumeration state allocation. r=brendan
2008-07-06 21:02:44 +02:00
Brendan Eich
d0966c0fc0
Clean up for-in ops and naming nit (443039, r=igor).
2008-07-01 18:59:18 -07:00
Igor Bukanov
8012684984
[Bug 411575] SM: faster js_PutCallObject, r=brendan
2008-06-30 19:17:33 +02:00
igor@mir2.org
5cab25689b
[Bug 427798] faster js_PutBlockObject(), r=brendan a1.9=shaver
2008-05-01 14:59:52 -07:00
crowder@fiverocks.com
f780e2e7be
Bug 428336, assertion failure after deleting eval 16 times, patch by mrbkap, r=brendan, a=mtschrep
2008-04-14 17:31:43 -07:00
igor@mir2.org
303ea3000c
[Bug 423874] Allocating functions together with JSObject. r=brendan a1.9=blocking1.9
2008-04-02 00:46:12 -07:00
igor@mir2.org
d8bf5a95c1
[bug 424964] optimizing reserve slot allocation, r=brendan a1.9=mtschrep
2008-03-29 06:38:28 -07:00
igor@mir2.org
c0d5c51190
[bug 423874] backing out as a simpler patch would do the job with less code.
2008-03-29 03:34:29 -07:00
igor@mir2.org
eaa513c2f5
bug=423874 r=brendan a1.9b5=dsicore Allocating native functions together with JSObject
2008-03-21 01:19:23 -07:00
mrbkap@gmail.com
24f718d4ac
Don't assume that chrome:// implies system principals. bug 419848, r=brendan sr=jst
2008-03-06 14:52:58 -08:00
mrbkap@gmail.com
41fce0a6d7
Fix array_concat to be more generic. bug 420966, r=brendan a=beltzner
2008-03-06 12:05:18 -08:00
mrbkap@gmail.com
59987175f2
Outerize |this| always. bug 418069, r/sr=jst/brendan a=beltzner
2008-02-29 16:17:38 -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
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
shaver@mozilla.org
8ef681ab63
Implement optimized object-ops for dense arrays, b=322889, r+a=brendan.
2008-02-18 13:01:47 -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
shaver@mozilla.org
7550157d62
Bug 416675: refactor JSScope locking for reuse on non-native objects. r+a=brendan.
2008-02-14 16:44:46 -08:00
brendan@mozilla.org
dfd7f0a7b4
Optimize wrapper creation via JS_NewObjectWithGivenProto, and avoid cycle-check overhead in JS_Set{Prototype,Parent} (408871, r=mrbkap).
2008-02-13 21:10:42 -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
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
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
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
a4162380a8
Bug 398609: simpler handling of hidden properties, r,a=brendan
2007-11-19 09:15:45 -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
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
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
igor@mir2.org
a27e01321b
Bug 396758: taking the patch out as it broke the test cases.
2007-09-25 10:30:55 -07:00
igor@mir2.org
c43bd3e5f1
Bug 396758: the system flag is moved from GC flags to JSObject itself. r=brendan
2007-09-25 10:08:41 -07:00
brendan@mozilla.org
ba3ad2ce7a
Fast (frame-less) native call optimizations (385393, r=igor).
2007-08-01 21:33:52 -07:00
brendan@mozilla.org
18e7692117
Backing out, see bug 389122 and orange or red tinderboxes.
2007-07-21 16:21:20 -07:00