Commit Graph

2223 Commits

Author SHA1 Message Date
Luke Wagner
777b935aea Bug 558144 - un-macroize OBJ_SCOPE, OBJ_SHAPE, LOCKED_OBJ_SET_SLOT, LOCKED_OBJ_GET_SLOT (r=Waldo) 2010-04-08 11:22:04 -07:00
Jason Orendorff
08bfa47c56 Bug 553671 part 4 - RAII for JS_{LOCK,UNLOCK}_GC and JS_{KEEP,UNKEEP}_ATOMS. r=luke.
--HG--
extra : rebase_source : dfdfcdd3a602e12de1836068e2c9f16fce46d7b2
2010-04-08 07:54:18 -05:00
Luke Wagner
b9f8c249e6 Bug 552574 - de-mystify js_ValueToNumber API (r=igor) 2010-04-07 13:18:50 -07:00
Nicholas Nethercote
26d8277a75 Bug 413730 - Replace all OBJ_GET_CLASS() macro calls with JSObject::getClass() calls. r=gal. 2010-04-07 16:09:49 -07:00
Jason Orendorff
3a1a494d96 Bug 556937 - TM: Trace JSOP_SETNAME when preceding BINDNAME produces the global object. r=dmandelin. 2010-04-06 16:49:33 -05:00
Jason Orendorff
cb5afb060e Fix typeChar array (used only in debug output) to match the TraceType enum values. No bug#. r=dvander over IRC. 2010-04-06 12:44:13 -05:00
Nicholas Nethercote
13d7fcefb2 merge 2010-04-05 22:17:33 -07:00
Nicholas Nethercote
934d8c0f95 Bug 556459 - TM: remove unnecessary cases from demote(), isPromoteInt(), isPromoteUInt(). r=gal. 2010-04-05 22:16:42 -07:00
Brendan Eich
244c77de79 Abort on non-dense-array, non-native JSObjectOp.getProperty op (557168, r=gal). 2010-04-05 22:10:22 -07:00
Nicholas Nethercote
4542317997 Bug 556187 - encapsulate JSSLOT_ARRAY_* within JSObject. r=brendan. 2010-04-05 18:32:16 -07:00
timeless@mozdev.org
06c049adbc Bug 555687 - OBJ_SCOPE(obj) is unused in TraceRecorder::setProp. r=jorendorff.
--HG--
extra : rebase_source : 7a63d5edfb25a8b4ecacc2b069d9ad5da561ec3a
2010-04-05 15:37:33 -05:00
Jason Orendorff
8187e1ef94 Bug 557247 - In debug js shell builds, expose whether we're on trace or not (tracemonkey.onTrace). r=gal. 2010-04-05 12:26:44 -05:00
Robert Sayre
744599315f Merge mozilla-central to tracemonkey. 2010-04-04 14:15:05 -04:00
Michael Wu
9b1b632895 Bug 542146 - Add support for building JS on Android. patch by vlad, bcombee, and me. r=ted 2010-04-02 15:09:05 -07:00
Nicholas Nethercote
795d4b8ad2 Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan. 2010-03-31 22:13:51 -07:00
Nicholas Nethercote
0c54c01325 merge 2010-03-31 16:46:00 -07:00
Nicholas Nethercote
445ae50d22 Bug 555633 - nanojit: rename opcodes in LIRopcode.tbl (TM-specific part). r=jseward. 2010-03-31 16:42:18 -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
Blake Kaplan
387907ce9f Bug 515496 - Eliminate extra security check when computing this. r=jorendorff. 2010-02-11 17:04:42 -08:00
Robert Sayre
cd70d71b16 Fix merge bustage. 2010-03-31 08:21:07 -07: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
ed80c98a49 Readd jsdbgapi.cpp, json.cpp, jsopcode.cpp, and jstracer.cpp changes from bug 548702. 2010-03-29 19:47:40 -07:00
Jason Orendorff
e5a722c5a8 Bug 541255 - "Assertion failure: obj->isDenseArray(), at ../jsarray.cpp". r=brendan. 2010-03-29 11:24:42 -05:00
Jason Orendorff
75ca35caf0 Bug 554996 - Eliminate native-ops check before testing property cache. Part 2: tracer. r=gal. 2010-03-29 10:35:38 -05:00
Nicholas Nethercote
475f3125a3 Bug 541030 - nanojit: isconstq() should only succeed for 64-bit integer (TM-specific part). r=dvander. 2010-03-28 18:02:40 -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
785e3b6713 Bug 500431 part 4 - Encapsulate PropertyCacheEntry::pcval. r=brendan. 2010-03-26 09:01:01 -05:00
Nicholas Nethercote
c0a32809f6 Bug 542016 - Remove LIR_addp (TM-specific part). code=edwsmith, r=nnethercote. 2010-03-24 20:16:17 -07:00
Nicholas Nethercote
36ee148277 merge 2010-03-24 19:32:05 -07:00
Nicholas Nethercote
b3a00b25b6 Follow-up to bug 517910: dslots aren't read-only. r=jorendorff on IRC. 2010-03-24 19:30:47 -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
Jason Orendorff
25153c3c13 Bug 500431 part 1 - Move property cache code to jspropertycache{.h,.cpp,inlines.h}. r=brendan.
--HG--
extra : rebase_source : f7a7bb63bc3cded9452807ecdd0b5b8e8f5b3ff6
2010-03-24 16:16:01 -05:00
Julian Seward
363964e03d Bug 531350 - TMFLAGS=fragprofile leads to reading freed memory. r=graydon. 2010-03-23 21:23:40 -07:00
Nicholas Nethercote
72e08f9539 Bug 517910 - NJ: add more alias-set annotations to LIR so as to improve CSEing of loads (TM-specific part). r=gal,dvander. 2010-03-23 16:07:19 -07:00
Brendan Eich
f819b36cf4 Use direct object shape instead of identity as key for deep property cache hits (497789, r=jorendorff). 2010-03-22 11:11:44 -07:00
Luke Wagner
ad69b5f5fb Bug 554043 - fix negated bool, broken by TT_VOID patch (r=dvander) 2010-03-22 10:26:08 -07:00
Nicholas Nethercote
7ae7039dfe Bug 507089 - TM/nanojit: prepare to add get/set methods for CallInfo::_argtypes (TM-specific part). r=jorendorff. 2010-03-21 20:07:46 -07:00
Luke Wagner
c5e647b1af Fixed 64-bit LIR type assertion (no bug, rs=dvander). 2010-03-18 13:46:56 -07:00
Luke Wagner
de991387a4 Bug 552586 - split JSVAL_SPECIAL into TT_SPECIAL and TT_VOID (r=dvander) 2010-03-18 12:12:06 -07:00
Nicholas Nethercote
13e08e42b7 Bug 531687 - Duplicate node names in TMFLAGS=aftersf printout (TM-specific part). r=jseward. 2010-03-18 10:53:26 +11:00
Vladimir Vukicevic
a502859e84 b=550351; don't abort recording when accessing out of range typed array element (return undefined instead); r=gal 2010-03-04 16:49:31 -08:00
Nicholas Nethercote
3380cbbffc Bug 552582 - TM: remove unused case from FuncFilter. r=gal. 2010-03-16 14:58:52 +11:00
Jeff Walden
ee34aa693a Bug 551007 - Make JSScopeProperty::attrs private, hide information behind accessor methods. r=jorendorff 2010-03-08 15:44:59 -07:00
Robert Sayre
84b14d6f30 Merge mozilla-central to tracemonkey. 2010-03-13 11:51:12 -05:00
David Anderson
265c45fe01 More tracer cleanups (bug 551754, r=lw). 2010-03-12 12:05:36 -08:00
Nicholas Nethercote
a0e706dd4b Bug 551039 - nanojit: account for eight-byte alignment of stack in StackFilter (TM-specific part). r=gal. 2010-03-12 15:36:42 +11:00
David Anderson
564824e65a Backed out changeset 04023ea0fb08. 2010-03-11 12:19:36 -08:00
Mike Moenig
2b408683cd Allow custom allocator use in SpiderMonkey (bug 549532, r=dvander). 2010-03-10 21:02:18 -08:00
Luke Wagner
9971404eca Fix bustage on opt/NSPR builds 2010-03-10 15:48:53 -08:00
Luke Wagner
a1a73dd94d Bug 551276 - a more type-safe way to zero memory (r=Waldo)
--HG--
extra : rebase_source : fc5564c34cde6490a1d3b48a16a451f7e50c052a
2010-03-10 15:34:12 -08:00
David Anderson
6d584e62ed Clean up useless variables/params in the tracer. (bug 551100, r=lw) 2010-03-09 18:52:56 -08: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
David Anderson
b8e9325d42 Trace recursion when the return keyword is omitted (bug 530900, r=gal). 2010-03-08 10:28:08 -08:00
Nicholas Nethercote
3e03ef3a42 Bug 550796 - TM: remove dead ImportGlobalSlotVisitor class. r=lw. 2010-03-08 16:11:59 +11:00
Nicholas Nethercote
f7c713fc2d Bug 550654 - TM: removed dead 'inner_sp_ins' variable. r=dvander. 2010-03-08 08:09:35 +11: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
David Anderson
487814a4c4 Removed initializing inparam from TraceRecorder::set. (bug 549727, r=luke) 2010-03-02 14:04:50 -08:00
Luke Wagner
27eed6e277 540706 - Small record_EnterFrame simplification (r=dvander) 2010-03-02 12:56:48 -08:00
Brendan Eich
fe7558946d Bug 549531 - fix strict aliasing warnings about scopeChain (also clean trailing whitespace; r=dmandelin). 2010-03-02 11:03:04 -08:00
Nicholas Nethercote
c8a754a27d Bug 545274 - nanojit: start adding alias info to loads/stores/calls (TM-specific part). r=jseward. 2010-03-02 13:47:17 +11:00
Nicholas Nethercote
40e2a10ebf Bug 542932 - nanojit: make opcode range checks safer (TM-specific part). r=gal. 2010-03-01 12:16:38 +11:00
Igor Bukanov
62a7855349 bug 515812 - less vebose enumerastion. r=lw 2010-02-26 12:11:50 -08:00
Jason Orendorff
ad75218737 Bug 539170 - Encapsulate JSScopeProperty::{getter,setter} and move assertions to init-time. r=Waldo. 2010-02-24 17:40:28 -08:00
Jason Orendorff
4b5079e907 Bug 547911 - TM: Crash [@ js_CallIteratorNext] or "Assertion failure: !JSVAL_IS_PRIMITIVE(regs.sp[-2]), at ../jsops.cpp" or "Assertion failure: regs.sp == StackBase(fp), at ../jsops.cpp" with defineGetter, StopIteration. r=brendan. 2010-02-24 17:32:46 -08:00
David Anderson
c99331c609 Better fix for recursion and let blocks (bug 547791, r=gal). 2010-02-23 16:14:34 -08:00
Luke Wagner
06cc81805b Bug 545165 - fix/simplify JSOP_CONCATN (r=jorendorff) 2010-02-19 19:22:37 -08:00
David Anderson
980a86ab4c Fixed crash in GetPropertyByName (bug 547299, r=dmandelin). 2010-02-22 13:45:06 -08:00
Igor Bukanov
debaa592f7 bug 545529 - caching Class.prototype lookups. r=brendan 2010-02-19 20:44:23 +03:00
Nicholas Nethercote
2631a1b7cf Bug 539874 - nanojit: remove LIR_ov (TM-specific part). r=gal. 2010-02-19 15:12:37 +11: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
a65ea12a40 Bug 546545 - don't trace slow natives with fun->u.n.extra > 0 (r=dvander) 2010-02-17 14:19:43 -08:00
Luke Wagner
87a5e61db3 Bug 546491 - fix tracevis (r=jorendorff) 2010-02-16 13:41:40 -08:00
Nicholas Nethercote
fbc5612f2e Bug 542133 - Add a real NJConfig struct to nanojit (TM-specific part). code=stejohns, r=nnethercote. 2010-02-16 15:07:14 +11:00
Nicholas Nethercote
b6f1f05d74 Backed out changeset 3c673457c90b for bug 507089 due to mysterious Windows bustage. 2010-02-15 17:28:56 +11:00
Nicholas Nethercote
3489265cdf Bug 507089 - TM/nanojit: introduce get/set methods for CallInfo::_argtypes (TM-specific part). r=jorendorff. 2010-02-15 11:12:08 +11:00
Luke Wagner
3fe7890b44 Remove JS_CEILING_LOG2 from HashTable::init() 2010-02-13 12:02:12 -08:00
Luke Wagner
f8096c6b67 Try 784ceadd60e5 again with more #pragma optimize("", off) 2010-02-06 10:14:05 -08:00
Nicholas Nethercote
84b6acf958 Bug 542326 - nanojit: add NJ_SOFTFLOAT_SUPPORTED, and only compile in support for non-universal opcodes on platforms that use them (TM-specific part). r=stejohns. 2010-02-12 12:41:50 +11:00
Jason Orendorff
095bd890ef Bug 539829 - Encapsulate JSScope::flags. r=Waldo.
--HG--
extra : rebase_source : ced4f057e715075d8e4eff343e824d8934152a7e
2010-02-05 18:11:13 -06:00
Brendan Eich
83e657d499 Fix orange in wake of patch for bug 542002. 2010-02-10 18:58:49 -08:00
Nicholas Nethercote
0f6e815ee6 merge 2010-02-11 11:44:38 +11:00
Nicholas Nethercote
4f4d8ad70e Bug 543401 - nanojit: merge SoftFloatFilter implementations (TM-specific part). r=gal. 2010-02-11 11:16:50 +11:00
Brendan Eich
c9fed979f6 Bug 542002 - Optimize to flat closures even if some upvars can't be copied (r=jorendorff). 2010-02-10 15:17:52 -08:00
Robert Sayre
f146d11898 Merge mozilla-central to tracemonkey. 2010-02-09 13:08:35 -05:00
Luke Wagner
fda9474440 Backout 784ceadd60e5 until PGO stops crashing 2010-02-08 10:28:07 -08:00
Luke Wagner
22b7692a6a Bug 515812 - Double hashing template (r=jorendorff) 2010-02-06 10:14:05 -08:00
David Anderson
611cf1768b Fixed tracker usage not protecting against certain state changes (bug 541830, r=lw). 2010-02-05 13:28:50 -08:00
Brendan Eich
1f15a43bd7 Fix property cache hit guarding to-do with the global object (544161, r=jorendorff). 2010-02-05 11:46:57 -08:00
Nicholas Nethercote
ccbdfa7a38 541491 - ARM_ARCH, ARM_VFP, and ARM_THUMB2 should be runtime options everywhere (TM-specific part). code=stejohns, r=nnethercote. 2010-02-05 12:40:04 +11:00
Vladimir Vukicevic
b363012434 b=534467; implement Uint8ClampedArray for CanvasPixelArray; part 2, tracing; r=gal 2010-02-04 16:36:33 -08:00
Vladimir Vukicevic
c33756956c b=542402; add FLOAT64 to typed arrays; r=jorendorff 2010-02-04 15:31:40 -08:00
Jeff Walden
7e68c64269 Bug 543097 - Precompute the prototype when evaluating function expressions and regular expression literals on trace, rather than (slowly) looking it up every time. r=jorendorff
--HG--
extra : rebase_source : d023ded17937248bdfb23705e7477918b111746f
2010-02-01 17:20:37 -08: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