Граф коммитов

17865 Коммитов

Автор SHA1 Сообщение Дата
timeless@mozdev.org 4e26eecbd7 Bug 560139 - jsdStackFrame::Eval leaks estate when failing to use ContextStack. r=jorendorff.
--HG--
extra : rebase_source : 611b291f96b21d33ba8f1ab3d56401c7fff7900d
2010-04-19 09:22:00 -05:00
Jason Orendorff cdab85f46b Bug 557841 - TM: "Assertion failure: BINDNAME in global code resolved to non-global object, at ../jstracer.cpp". r=dmandelin.
--HG--
extra : rebase_source : ebfbfc0bb947c1c68b86ec4861c07a94aa6361d7
2010-04-19 09:21:10 -05:00
Robert Sayre 75054fe868 Merge mozilla-central to tracemonkey. 2010-04-19 09:28:26 -04:00
Nicholas Nethercote 2720729d2e Update nanojit-import-rev stamp. 2010-04-18 19:33:09 -07:00
Nicholas Nethercote fb9551b2d4 Remove some pointless aliases. No bug, rs=gal.
--HG--
extra : convert_revision : bdef2f8f4b6bfc0a84de2140beec0ff6f3048f1e
2010-04-18 19:31:20 -07:00
Nicholas Nethercote c8d644ac00 Update nanojit-import-rev stamp. 2010-04-18 16:31:16 -07:00
Nicholas Nethercote a824e5c6f7 Fix compiler warning. r=me.
--HG--
extra : convert_revision : 4baf0bdb53dfdc39a1a6b1cf9ee78c0c42be8a6f
2010-04-18 16:15:25 -07:00
Edwin Smith 09a45dccc9 Bug 559968 - Rename LOpcode enums in LIR.cpp. r=nnethercote.
--HG--
extra : convert_revision : 34789fd8cb4bd5f3d3eed6b6a44ae1a158620f8d
2010-04-18 16:05:53 -07:00
Edwin Smith a91f19d4db Rename LIR opcodes in LIR.h (bug 557887, r=nnethercote+)
Mechanically renamed using rename_LIR.pl, backed out the alias patch hunks,
and updated the pointer-sized aliases to use the new opcodes instead of
PTR_SIZE macros using old opcodes.

--HG--
extra : convert_revision : 944433df375988c65313759440ed1de757ab4ea8
2010-04-16 19:20:24 -04:00
Mike Moening 0c4a60c68a Bug 559067 - Silence MSVC warnings in js/src. r=jorendorff 2010-04-16 16:00:51 -05:00
Gregor Wagner 99e8d55d3d Bug 559113 - Fix dangling FILE pointer in GCMETER code. r=jorendorff. 2010-04-16 15:54:56 -05:00
Jason Orendorff 95065267f5 Bug 527805 - Placeholder comment as requested in review. r=brendan, see comment 6 of the bug. 2010-04-16 15:38:57 -05:00
Jason Orendorff f677d26051 Bug 527805 - Remove JSCLASS_SHARE_ALL_PROPERTIES. r=brendan. 2010-04-16 15:33:19 -05:00
Mike Moening 16d0ed8f28 Bug 549532 - Allow custom memory allocator use in spidermonkey. Part 1. r=dvander. 2010-04-16 15:03:53 -04:00
Igor Bukanov c2478655ef bug 557140 - avoid abort() on OOM with ill-lopping traced code. r=jorendorff 2010-04-16 14:31:17 +02:00
Nicholas Nethercote ee58225166 Bug 558814 - nanojit: handle const conditions for LIR_jt/LIR_jf (TM-specific part). r=dvander. 2010-04-15 17:12:28 -07:00
Nicholas Nethercote dc5a059373 Update nanojit-import-rev stamp. 2010-04-15 17:01:03 -07:00
Nicholas Nethercote bbebb702f4 Bug 558814 - nanojit: handle const conditions for LIR_jt/LIR_jf. r=edwsmith.
--HG--
extra : convert_revision : b57f94e988db5cdd0278bd3b1eca1a664bfcf937
2010-04-15 16:48:07 -07:00
Edwin Smith 99e2f074e1 Rename LIR_stw->stl2w, stb->stl2b, add aliases (bug 555633, r=nnethercote+)
--HG--
extra : convert_revision : 2eae88cd4859b3f82d003f1cfd42153c45a14bdf
2010-04-15 09:15:53 -04:00
Jim Blandy 398009f78a Bug 558394: Define HAVE_LOCALECONV on Windows. r=jorendorff 2010-04-15 11:43:53 -07:00
Dan Witte a432fc820e Bug 557852 - Fix libffi config.cache location. r=bsmedberg 2010-04-15 11:30:28 -07:00
Chris Leary ef6efacfec Bug 558846 - Update parsemark to use js::Parser directly. r=jorendorff. 2010-04-15 10:53:27 -05:00
Jason Orendorff b01ec5c927 Make the regression test for bug 559438 less confusing. r=peterv. 2010-04-15 08:33:21 -05:00
Nicholas Nethercote 8091ca200e Update nanojit-import-rev stamp. 2010-04-14 23:09:53 -07:00
Edwin Smith 36860b912f Only perform the disp32->disp8 addressing mode optimization on valid instructions (bug 543440 r=dvander+)
RIP-relative addressing uses mod 00 "disp32" encoding, but mod_disp32() assumes
all instructions passed in can be optimized to disp8 encoding if the actual
displacement is 8-bit.  This is invalid for mode 00 modes, including RIP addressing.

mod_disp32() can still do the right thing in the other arm of its branch; this
patch removes the assert and tightens the check for the disp8 case.

--HG--
extra : convert_revision : b534b9289ca8a111f16fbf0b0711b5277be440f4
2010-04-14 16:22:14 -04:00
Edwin Smith 4682fd0968 Lower ARM MIPS NJ_MAX_STACK_ENTRY to 1024 as a workaround for asm_spill() limitations (bug 556175)
Fixme's added, explaining why.

--HG--
extra : convert_revision : 7d102db403b76739c69fbf1e5b1e35bdbeb4b3c6
2010-04-14 09:15:56 -04:00
Edwin Smith 99e805708d Use AvmAssertFail instead of NanoAssertFail to implement NanoAssert (Bug 473188 r=gal+)
--HG--
extra : convert_revision : 7c682d3836f7587225a2f8dce73039d10a972318
2010-04-13 15:41:15 -04:00
Edwin Smith 074308e4d7 Add support for LIR_stb on PPC (bug 558597 r=leon.sha pending)
Pushing this in advance of review; It appears to run fine in the tamarin-redux
acceptance suite, and i tested it also by stopping in asm_store32() with dbx,
and disassembling the generated STB instruction.  Looked fine to the naked eye.

--HG--
extra : convert_revision : 1e26f7116dc4435461b56900454b02fa821a9e54
2010-04-13 14:39:49 -04:00
Edwin Smith 01acfa6f66 Allow i386 JCC() instruction to emit patchable jumps (bug 557705 r=me, nnethercote=pending)
TR needs to support patching, the assert is too restrictive.
Support target == 0 with an explicit check instead of letting
it just work by accident.

--HG--
extra : convert_revision : 5f12e1da6b7f3b76116ccf2ffd878969e103f557
2010-04-13 11:42:42 -04:00
Edwin Smith 78e0d2a1f2 Raise ARM and MIPS NJ_MAX_STACK_ENTRY to 4096 (bug 556175 r=Jacob.Bramley+)
--HG--
extra : convert_revision : 7a068ed450bb6ba47d8a5ab2586487a1b37ba8db
2010-04-13 11:14:49 -04:00
Edwin Smith 9dba85da38 Implement LIR_stb on PPC32/64 (bug 558597 r=rreitmai+)
Patch also fixes an invalid assert that required load/store
displacements to be multiples of 4 on PPC.

--HG--
extra : convert_revision : e2a7f626b35179db953469ea94cdb39d16b10f7c
2010-04-12 21:27:19 -04:00
Rick Reitmaier 4015f4a3d8 Bug 557706 - Allow LogControl printf method to be overridden (r=nnethercote,edwsmith)
Issues with prior patch not compiling with tamarin due to missing vtable,
so make sure printf isn't available unless verbose is enabled.

--HG--
extra : convert_revision : 147e02ce8790c9e09f4c91b29b1bcc5d16862ee1
2010-04-12 11:51:00 -07:00
Nicholas Nethercote a034e2854e Bug 557991 - nanojit: remove dead code from CodeAlloc. r=edwsmith.
--HG--
extra : convert_revision : 335ca0fff2a7ac451d0fa1c11594f6dbacada648
2010-04-08 18:33:21 -07:00
Edwin Smith aa8c8d3faf Suppress unused arg warnings for bug 557843 (r=me.)
Took the opportunity to add a few asserts to ensure the implit RHS
register for x86 shift instructions is always ECX.

--HG--
extra : convert_revision : 6baccc0354a87ece92ccff6ff138986bf4d19a2c
2010-04-08 12:58:49 -04:00
Rick Reitmaier 232b0a8236 Bug 557706 - Allow LogControl printf method to be overridden (r=nnethercote)
if LogControl.printf is made a virtual method then consumers of nanojit can
more easily control how the output is managed.

--HG--
extra : convert_revision : 7fa9ad2e2d57661e4290df0b3902fd809f19d768
2010-04-07 09:54:30 -07:00
Nicholas Nethercote 7efff77732 Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject (take 2). r=brendan. 2010-04-14 18:57:30 -07:00
Nicholas Nethercote 54381c3e54 Backed out changeset 681b0067e61b due to massive breakage 2010-04-14 17:09:17 -07:00
Nicholas Nethercote e5b1652906 Bug 559250 - encapsulate JSSLOT_{PRIMITIVE,DATE,REGEXP}_* within JSObject. r=brendan. 2010-04-14 16:18:03 -07:00
Jason Orendorff 0089afc587 Bug 559438 - Decompiler bug with JSOP_CONCATN. r=shaver. 2010-04-14 17:26:44 -05:00
Jason Orendorff 897e13f450 Missing test file for 47949ff2d058. 2010-04-14 15:52:24 -05:00
Jason Orendorff 5cd6cfd465 Bug 559006 - Wrong behavior with JSClass::convert hook and JIT. r=mrbkap. 2010-04-14 15:07:01 -05:00
Dan Witte 2d0cad7e4d Bug 556329 - Allow ctypes to load exported data symbols. r=jorendorff 2010-04-14 10:36:48 -07:00
Walter Meinl d0f398d2dd Bug 538002 - Get libffi 3.0.9 working on OS/2. Part 3: Mozilla bits. r=dwitte 2010-04-14 10:36:48 -07:00
Dan Witte a333112077 Bug 538002 - Get libffi 3.0.9 working on OS/2. Part 2: update libffi.patch. 2010-04-14 10:36:48 -07:00
Walter Meinl b1747b7934 Bug 538002 - Get libffi 3.0.9 working on OS/2. Part 1: libffi bits. r=dwitte 2010-04-14 10:36:48 -07:00
Dan Witte 2bd62884bc Bug 556902 - Fix ctypes warnings. Part 2: libffi. r=benjamn 2010-04-14 10:36:48 -07:00
Dan Witte 4d2180ac9a Fix allocator mismatch. No bug, r=jorendorff 2010-04-14 10:36:47 -07:00
Robert Sayre 9eb74e4845 Merge mozilla-central to tracemonkey. 2010-04-14 08:17:38 -04:00
Jason Orendorff 9b0216657e Merge backout. 2010-04-14 07:00:55 -05:00
Jason Orendorff e727aab13c Backed out changeset ff77002e8a30 (bug 558720). 2010-04-14 07:00:36 -05:00
Gregor Wagner 1b351d8da0 Bug 541140 - TM: don't return GCChunks immediately 2010-04-13 20:14:10 -07:00
Nicholas Nethercote 46b939366c Bug 558714 - js_ScriptClass doesn't need a reserved slot. r=brendan. 2010-04-13 19:38:49 -07:00
Brendan Eich 934c30742a Fix non-escaping closure optimization to cope with 'with' and eval (558720, r=jorendorff). 2010-04-13 19:05:26 -07:00
Robert Sayre 7e6126708a Merge 2010-04-13 18:16:05 -04:00
Robert Sayre 10865b24dd Backed out changeset c9faf5a2bc75 2010-04-13 18:15:20 -04:00
Gregor Wagner d30fddbdb8 Bug 558833 - Fix GCTIMER for SweepDoubles. r=jorendorff.
--HG--
extra : rebase_source : 7492dd5a7bbed917ad4177685631ea1163193579
2010-04-13 08:58:40 -05:00
Luke Wagner 99d9e743b4 Check for JS_THIS_OBJECT failure in obj_isPrototypeOf (r=Waldo)
--HG--
extra : rebase_source : e22f9eb8bdf47b2f3cf2c5fc3d6ed46e01c191a2
2010-04-12 20:05:03 -07:00
Mike Moenig ea63af8267 [JAEGER] Allow custom memory allocator use in spidermonkey (bug 549532, r=dvander). 2010-04-12 18:51:25 -07:00
Luke Wagner 98a8aede2d Bug 558950 - Object.watch should always return undefined (r=Waldo) 2010-04-12 17:47:35 -07:00
Igor Bukanov 590831e6c2 bug 553812 - separate GC arena info and mark bits from the arena. r=gal,anygregor 2010-04-13 00:59:19 +04:00
Igor Bukanov ab417f436c backout merge 2010-04-12 23:43:43 +04:00
Igor Bukanov c8168729f8 Backed out changeset 47532d9153cb - xpcshell failures 2010-04-12 23:42:45 +04:00
Jeff Walden 4d852b3582 Bug 558249 - Followup fixes to bug 550402 to record setting getter-only properties better. r=jorendorff
--HG--
extra : rebase_source : 0cfef9aca97c243b1d45e5b6e4d68181cd3cea5c
2010-04-12 11:11:33 -07:00
Igor Bukanov f28d6cecc9 bug 553812 - separate GC arena info and mark bits from the arena. r=gal,anygregor 2010-04-12 21:15:30 +04:00
Jason Orendorff 3cb538bf91 Bug 557652 - Eliminate redundant guard that incProp/getProp operand is not the global object. r=brendan.
--HG--
extra : rebase_source : 8da6192aedb78f6096d83a161698b27e43d30c30
2010-04-12 08:27:16 -05:00
Robert Sayre 98a3aefdbd Fix merge bustage. 2010-04-12 10:08:55 -04:00
Robert Sayre 114d145903 Merge mozilla-central to tracemonkey. 2010-04-12 09:45:24 -04:00
Nicholas Nethercote ff94c40f06 Bug 556165 - dead code in array_shift(). r=jwalden. 2010-04-11 22:38:55 -07:00
Andreas Gal 42ef3b9744 Remove lingering defaultValue calls with hint JSTYPE_OBJECT or JSTYPE_FUNCTION (554550, r=brendan). 2010-04-11 20:55:22 -07:00
Andreas Gal 75c8504688 Fix an incorrect comment (r=me). 2010-04-11 20:03:04 -07:00
Nicholas Nethercote fd1e728799 merge 2010-04-11 16:45:50 -07:00
Nicholas Nethercote 7d6b2dbd58 Bug 557713 - encapsulate JSSLOT_ARGS_* within JSObject. r=brendan. 2010-04-11 16:45:20 -07:00
Nicholas Nethercote 7255e52f92 Bug 558530 - JM: Crash [@ js_CallGCMarker] with gc. rs=me. 2010-04-11 16:28:04 -07:00
Brendan Eich 30b7a47178 Keep jsprvtd.h usable from C (558437 followup, r=REDRUM). 2010-04-11 10:40:36 -07:00
Brendan Eich 4c3446319d Cope with stillborn Iterators (558619, r=dvander). 2010-04-10 23:47:43 -07:00
Dave Herman cfc5514d85 Bug 558437 - rename JSCompiler to js::Parser (r=brendan). 2010-04-10 21:15:35 -07:00
Brendan Eich eba63d253d Don't bother optimizing apply on arguments objects whose length property has been overridden (558609, r=dvander). 2010-04-10 20:53:11 -07:00
Andreas Gal 3799de9f75 Inline the object allocation path (558003, r=sayrer). 2010-04-10 16:16:35 -07:00
Andreas Gal ca72207125 Remove gcIteratorTable (557914, r=brendan). 2010-04-10 16:08:14 -07:00
Siddharth Agarwal b8b5d947d7 Bug 558887 - VC10: nsinstall.exe doesn't get a manifest. Copy the logic over from $(PROGRAM) to $(HOST_PROGRAM). r=bsmedberg 2010-04-13 14:18:19 +05:30
Jesse Ruderman 22d15e7bf2 This test doesn't need to open a new window. (May 'fix' orange bug 558581.) 2010-04-12 23:48:06 -07:00
Marco Bonardo cd0a11d48f Bug 550823 did not sync js/src/config 2010-04-22 16:11:24 +02:00
Julian Seward 9d2ca11113 Bug 557586 - XPCPerThreadData::~XPCPerThreadData race leading to possible crash r=timeless 2010-04-22 14:58:41 +02:00
Ben Newman dbd3fb933b Bug 559962 - Refactor XPCWrappedNative::CallMethod. r=mrbkap 2010-04-21 11:39:13 -07:00
Robert Sayre 9cfbf50c59 Merge tracemonkey to mozilla-central. 2010-04-15 12:05:18 -04:00
Ben Turner e56ec35a5b Bug 559442 - 'Fix ctypes closures to work on a non-GC thread'. r=dwitte. 2010-04-14 17:21:06 -07:00
Chris Jones ce99d8226f Bug 557060: Interpose _Throw() on MSVC and centralize pseudo-throw code in mozalloc. r=ehsan sr=bsmedberg 2010-04-20 15:12:02 -05:00
Mike Hommey 957728e82b Fix system-header desync from bug 558789 2010-04-20 11:23:17 +02:00
Mike Hommey dc71114cae Bug 555910 - Increase stability and performance on mips by not using -Wa,-xgot [r=benjamin]
--HG--
extra : rebase_source : ccc020327a845bdbabb1a23138751d879d5c6e55
2010-04-19 10:41:13 +02:00
Mike Hommey 0c2b28a6f9 Bug 555901 - Support for GNU/Hurd [r=benjamin]
--HG--
extra : rebase_source : 2a455d93f9daaf7760285ea10046cc978ac9f9ad
2010-04-19 10:39:58 +02:00
Ben Turner 3dc85cd318 Bug 558675. 2010-04-11 15:05:07 -07:00
Brendan Eich 07efeb06be Don't bother optimizing apply on arguments objects whose length property has been overridden (558609, r=dvander). 2010-04-10 20:56:16 -07:00
Mike Hommey 2847154b39 Bug 541774: IDL-parser cache and .pyc files are left behind by make clean. r=ted 2010-04-10 16:02:45 -04:00
Mike Hommey d219f2ae43 Bug 541770: Clean up js/src during make distclean. r=ted 2010-04-10 16:00:49 -04:00
Blake Kaplan 601934ca1b Bug 557728 - Split constructors into called-from-script and called-from-api. r=vlad sr=jst
--HG--
extra : rebase_source : 64af9e27799a36ce7cd45c885501bef139ddc44c
2010-04-08 18:20:06 -07:00
Jeff Walden ff43aa766f Bug 534377 - Object literal duplicate-property checking doesn't work for same property as number and as string. r=jimb 2009-12-24 16:10:18 -05:00
Blake Kaplan dba00a57db Bug 533882 - Don't call into CAPs when we don't have to. r=jst sr=bzbarsky
--HG--
extra : rebase_source : 534bfae23aa5c1de4229b5259ba48599aef69a12
2009-12-16 17:40:14 -08:00
Peter Van der Beken b1816e7d81 Fix warning. 2010-04-08 14:07:28 +02:00
Dan Witte 2a07aa0dc1 Bug 557413 - Fix race condition building static and shared libraries. r=ted 2010-04-08 16:03:06 -07:00
Blake Kaplan f4d2b1d518 Bug 557346 - Try harder to fill report->ucmessage in when reporting errors. 2010-04-08 15:57:19 -07:00
Michael Wu c01d99b879 Bug 557303 - Include stdarg.h in jsscan.h, r=jimb 2010-04-08 12:06:54 -07:00
Blake Kaplan abf9f42e83 Fix bug 554448. r=jst sr=sicking
--HG--
extra : rebase_source : d5b72e262ed2c9da30fae7fb4b4ea8ad75f511c4
2010-03-25 14:38:45 -07:00
Blake Kaplan a17b5332a5 Bug 386635 - Compatibility hacks to make evalInSandbox continue to work for GreaseMonkey. r=jst
--HG--
extra : rebase_source : 3784e3ea135dbb53cd5a935369a58627bb73fb7d
2010-03-23 14:11:50 -07:00
Blake Kaplan eb8f2bf96b Bug 386635 - Automatically wrap sandboxes in security wrappers to make them easier to use safely. r=jst
--HG--
extra : rebase_source : c21431a5de17359b622c71061802b9f1713fcc8f
2010-02-11 17:04:41 -08:00
Dan Witte 42e0ebf0e3 Bug 557413 - ar: ctypes/libffi/.libs/libffi.a: Resource temporarily unavailable. r=bsmedberg 2010-04-07 14:03:34 -07:00
Ben Turner 1a6e45f375 Bug 553128 - 'Add better support for typed arrays in structured clone'. r=vlad+jst+jorendorff. 2010-04-07 13:55:12 -07:00
Ben Hearsum cfe1489dba bug 554392: Tracking bug for build and release of Firefox 3.7a4 - version bumps to 1.9.3a5pre/3.7a5pre
--HG--
extra : rebase_source : e870a851a205062bca0082049283404207a16601
2010-04-07 14:04:51 -04:00
Olli Pettay 1803574d29 Bug 519741 - Quickstub nsIDOMRange, r=peterv 2010-04-07 18:25:26 +03:00
Ginn Chen 6fd562ba57 Bug 550371 mozalloc failed to build on Solaris r=bsmedberg 2010-04-07 14:16:32 +08:00
Peter Van der Beken 0278367145 Try to fix bustage. 2010-04-06 17:02:28 +02:00
Peter Van der Beken 021da6d7ce Fix for bug 533637 (Speed up unwrapping a node in quickstubs that use nsINode (dromaeo)). Use flags on DOMCI to be able to cast instead of QI. r=jst.
--HG--
extra : rebase_source : b33953705ace2b6c2171f32fcf7c0157a1f76173
2010-01-12 15:24:00 +01:00
Makoto Kato 89fc3e7922 Bug 560477 - ambiguous call to overloaded function of ATL::CComPtr<T>::CComPtr. r=timeless 2010-04-28 13:40:56 +09:00
The Written Word 8d2289b9c9 Bug 550599 - "add ia64-hpux block to configure.in" [r=ted] 2010-03-29 13:37:00 -04:00
Mounir Lamouri 9961147316 Bug 346485 - "Implement output element" [r=smaug,hsivonen,mrbkap,timeless,roc sr=jst] 2010-04-26 03:42:00 -04:00
Blake Kaplan 87e040a3d6 Fix bug 554449. r=jst sr=peterv 2010-04-27 16:24:35 -07:00
Blake Kaplan cb0c0bffc5 Bug 559231 - Don't assert if there's no code running. r=jst 2010-04-27 16:24:18 -07:00
David Anderson 6072d59b36 Don't bother tracing some elem sets yet (bug 561939, r=gal). 2010-04-26 20:44:45 -07:00
Dan Witte 7633163736 Bug 561619 - JS CTypes has a build dependency bug. r=sayrer 2010-04-26 13:26:53 -07:00
Robert O'Callahan 409f301de3 Backing out fix for bug 560358 to fix regressions and test failures (see bug 561700) a=philor 2010-04-26 19:12:13 +12:00
Robert O'Callahan 7faa3ccb16 Backed out changeset 35c25547a135 2010-04-26 19:10:42 +12:00
timeless@mozdev.org a9e3336c4b Bug 560126 - funobj is uselessly set in WrapFunction, r=mrbkap
--HG--
extra : rebase_source : a0277ef8df513601f0523974511e88beb7930bf1
2010-04-19 00:26:00 -07:00
Robert Sayre 97c45d18a4 Merge tracemonkey to mozilla-central. a=1hr 2010-04-25 08:59:57 -04:00
Uli Link 763b854538 Bug 501881 Implement 64-bit-safe AIX version of NativeCompareAndSwap r=wtc,jimb a=meter 2010-04-25 12:09:38 +01:00
Robert Sayre 9882f324b3 Update json.cpp comment. a=1hr 2010-04-24 19:05:48 -04:00
Jeff Walden 2991bc2ab5 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
Chris Leary 788e7f9b10 Bug 558002 - Convenience methods for TokenStream flags. r=jwalden 2010-04-09 18:54:51 -07:00
Robert Sayre e6afb36231 worker-error.js passes now. 2010-04-09 20:04:41 -04:00
Robert Sayre 1eba9700e8 Merge 2010-04-09 15:39:16 -04:00
Robert Sayre 9bde2b15b3 Bug 505228. JSON.stringify generates non standard output if space is defined. r=sayrer 2010-04-09 15:38:27 -04:00
Dan Witte 0bdbd179cf Bug 552548 - Use JSString accessors in ctypes instead of JS_GetStringChars. r=benjamn 2010-04-09 11:52:41 -07:00
David Mandelin f12009edd7 Bug 554670: abort tracing on out-of-range args element read 2010-04-08 17:11:41 -07:00
Robert Sayre aa4e12efec Merge mozilla-central to tracemonkey. 2010-04-09 11:43:07 -04:00
Luke Wagner 515c38eb66 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
Luke Wagner e94e8073c1 Bug 555484 - add test case 2010-04-08 13:32:32 -07:00
Brendan Eich 1fde853690 Back out patch for 557969 due to orange. 2010-04-08 11:31:03 -07:00
Andreas Gal 1ef99906b1 No need to lookup parent/proto for iteration objects used for enumeration, and cache the last free iteration object for re-use (558058, r=brendan). 2010-04-08 10:55:58 -07:00
Brendan Eich e617664ed4 Named native functions lacking JSFUN_BOUND_METHOD entrain the global of the object in which they are bound, not the binding object itself, via parent (557969, r=mrbkap). 2010-04-08 10:55:22 -07:00
Jason Orendorff e2cc266c59 Bug 553671 part 6 - Rewrite GCUntilDone() to get rid of the goto. r=gal.
--HG--
extra : rebase_source : f571c42ad8661e1a0f5be6042eafea33f507dc44
2010-04-08 08:03:08 -05:00
Jason Orendorff 54ab310aa0 Bug 553671 part 5 - Extract GCUntilDone() from js_GC(). r=gal.
--HG--
extra : rebase_source : 1356bdf760348479248284dd90eb8535895af8f9
2010-04-08 08:01:21 -05:00
Jason Orendorff 447564b524 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
Jason Orendorff cfd234f70a Bug 553671 part 3 - extract FireGCBegin() and FireGCEnd() from js_GC(). r=jwalden.
--HG--
extra : rebase_source : 795a278471c339f74691a335ccfcd7042042732b
2010-04-08 07:54:18 -05:00
Jason Orendorff 54495641df Bug 553671 part 2 - extract PreGCCleanup() from js_GC() and get rid of 'goto out;'. r=jwalden.
--HG--
extra : rebase_source : 713a06123caefa0c5de75d6d14d0d43421f7e944
2010-04-08 07:54:18 -05:00
Jason Orendorff 90c367f420 Bug 553671 part 1 followup - Minor cleanups in GC() suggested by jwalden in review.
--HG--
extra : rebase_source : b2cabed0b2de6c044a04fa00f7e1593fddf88786
2010-04-08 07:54:18 -05:00
Jason Orendorff 364290feb3 Bug 553671 part 1 - Extract GC() from js_GC(). r=jwalden.
--HG--
extra : rebase_source : 4fc17e71f7f7f3bd1d7392af585e61d265851918
2010-04-08 07:54:17 -05:00
Andreas Gal c6710852fc Backed out changeset 61de331861af (bug 558058). 2010-04-08 09:02:34 -07:00
Andreas Gal 5c4f856ea3 No need to lookup parent/proto for iterator objects, and cache the last free one (bug 558058, r=brendan). 2010-04-08 07:53:09 -07:00
Boris Zbarsky b3d36a925a Backed out changeset 698ace1f1027 (bug 556830) for causing jsreftest failures.
--HG--
extra : rebase_source : 6d4c5022177d0c47568f5be9c274b8b17e398bd4
2010-04-08 09:53:44 -04:00
Jeff Walden 2f6203f21c Bug 550402 - Property readonly bit interferes with setter functions in properties. r=jorendorff
--HG--
extra : rebase_source : a1cc89851d11337a76f916170ca22f9013ee0b2f
2010-04-01 18:11:14 -07:00
Jeff Walden ff68efdfdb Bug 556876 - PropertyDescriptor::initialize can throw a SyntaxError instead of a TypeError. r=jorendorff
--HG--
extra : rebase_source : d0a38deab525d8f78f81d56d9bc78dcd5f76fb97
2010-04-04 21:59:09 -07:00
Luke Wagner 2e0db21fdc Remove dead store (no bug, r=me) 2010-04-07 19:02:47 -07:00
Andreas Gal c1dc5d4253 Backed out changeset 687d1e4c213e (bug 557914). 2010-04-07 18:34:05 -07:00
Luke Wagner 41c5fe3a22 Bug 552574 - de-mystify js_ValueToNumber API (r=igor) 2010-04-07 13:18:50 -07:00
Andreas Gal 6fd0a55cc7 Remove gcIteratorTable (557914, r=Waldo). 2010-04-07 17:14:38 -07:00
Nicholas Nethercote 629b0fc496 Bug 413730 - Replace all OBJ_GET_CLASS() macro calls with JSObject::getClass() calls. r=gal. 2010-04-07 16:09:49 -07:00
Dan Witte 5dc5b0dd6c Revert accidental change. 2010-04-07 15:29:41 -07:00
Dan Witte d848a7f95c Bug 556902 - Fix ctypes warnings. r=benjamn 2010-04-07 15:25:46 -07:00
timeless@mozdev.org a45adc3817 Bug 556340 - TypedArrayTemplate<*>::fun_slice leaks ntarray when JS_NewObject fails. r=jorendorff. 2010-04-07 16:16:19 -05:00
Robert Sayre 4dd5367b82 FF 3.5.2 native JSON.stringify replacer applied only to array items, not object properties. bug 509184. r=waldo 2010-04-07 12:35:43 -04:00
Jason Orendorff d0537ebcc5 Fix debug-only crash when doing TMFLAGS=full objdir/js -j t/string-unpack-code.js. no_r=me.
--HG--
extra : rebase_source : f4c43ffeb2fec7de027217500c6a4db7b76724c7
2010-04-07 10:14:35 -05:00
Nicholas Nethercote 8ea122d1df Update nanojit-import-rev stamp. 2010-04-06 20:17:37 -07:00
Nicholas Nethercote 0195afc85e Bug 557705 - nanojit: clean up codegen of i386 jumps. r=edwsmith.
--HG--
extra : convert_revision : ec93bc283385c4e19bfbfda1aa1ecf94aef932ec
2010-04-06 20:09:32 -07:00
Nicholas Nethercote 1fb613d65e Update nanojit-import-rev stamp. 2010-04-06 17:51:51 -07:00
Nicholas Nethercote 07b10ec783 Windows bustage fix for bug 557483. r=me.
--HG--
extra : convert_revision : 3607404c8ab95af0866fd073ed5d6d51322198b6
2010-04-06 16:04:32 -07:00
Nicholas Nethercote 88f0a9bfc3 Bug 557483 - nanojit: convert i386 codegen macros to functions. r=edwsmith.
--HG--
extra : convert_revision : 4062fae8baf26ee9fcdf5c8d1125b2a1fa806515
2010-04-06 15:55:43 -07:00
Nicholas Nethercote fc324918db Bustage fix for bug 545295. r=me.
--HG--
extra : convert_revision : 54edfaf7f89566f86822155e90d43ec6198228c4
2010-04-05 18:12:38 -07:00
Edwin Smith f6d50295ff CodeAlloc changes to eliminate dependency on 4K system page size (bug 545295 r=edwsmith+)
--HG--
extra : convert_revision : f1734da5dae9a73cf52692fc8dd72c25d0f12a14
2010-04-05 16:17:01 -04:00
Edwin Smith 13f4a78e6e Patch to clean up MSVC analysis warnings (bug 551690, r=edwsmith+ nnethercote+)
(pushing for Bill Maddox)
The following appear to be false positives.  The patch adjusts the code in a
meaning-preserving way such that the analysis warnings no longer appear.  My
best guess is that the analysis does not take into account the discretenes of
integer arithmetic in analyzing relational operators.

nanojit/Assembler.cpp(2004)
nanojit/Nativei386.cpp(1214)

Here, an outer definition is indeed hidden, but it is dead at this point, and
the code is correct as it stands.  Stylistically, however, the hiding should be
avoided, as in the patch.

nanojit\LIR.cpp(671)

--HG--
extra : convert_revision : fdff643a3c793c57150d0e8b48bc1f12383d939e
2010-04-05 11:25:55 -04:00
Dan Witte 8d3c5b8767 Bug 556902 - Fix ctypes warnings. r=benjamn 2010-04-06 17:43:18 -07:00
Luke Wagner 3819697f51 Vector::resize should initialize new elements always; fixes AutoValueVector bug (r=Waldo) 2010-04-06 16:40:49 -07:00
Luke Wagner 55d306e096 Bug 557270 - on s390 pointers are 31-bits, have JS_CEILING_LOG2W use size_t instead of JSUword (r=brendan)
--HG--
extra : rebase_source : cf0f82a63a0d36f84470bfd1aa99c2917cbc5c95
2010-04-06 16:10:54 -07:00
Jason Orendorff 3ed268182e 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 c3631bdbe6 Bug 556879 - JSRuntime::gcIsNeeded is needed after all. r=igor. 2010-04-06 16:39:16 -05:00
Bob Clary 2ca83a4918 Bug 557508 - Enable tracing JIT when running js tests in the shell. r=jorendorff.
--HG--
extra : rebase_source : 68f8accc4e9888225f1bbf0955c6cf484219fae2
2010-04-06 15:43:11 -05:00
Boris Zbarsky 2a142542dc Bug 556866. Try to cache the slot even for JOF_INCDEC ops, as long as the setter is a stub. r=jorendorff 2010-04-06 15:46:20 -04:00
Boris Zbarsky 14d9c5298e Bug 556830. Fill the propcache even if we start the lookup on a Call whose parent is the global the property is on. r=jorendorff 2010-04-06 15:42:39 -04:00
Jason Orendorff c1d858ef33 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
Jason Orendorff a6531fc8e2 Fix Windows build failures (and a warning) due to rev 2d43edce33a2. No review. 2010-04-06 10:22:28 -05:00
Jason Orendorff c4ef8e820f Fix trivially busted test for bug 533876. 2010-04-06 10:05:13 -05:00
Jason Orendorff 8dd425802f Bug 545962 - Workers for the js shell. r=igor. 2010-04-06 08:15:15 -05:00
Nicholas Nethercote 7cc178a639 merge 2010-04-05 22:17:33 -07:00
Nicholas Nethercote 0e37be29f3 Bug 556459 - TM: remove unnecessary cases from demote(), isPromoteInt(), isPromoteUInt(). r=gal. 2010-04-05 22:16:42 -07:00
Brendan Eich 5ed0da137c Abort on non-dense-array, non-native JSObjectOp.getProperty op (557168, r=gal). 2010-04-05 22:10:22 -07:00
Nicholas Nethercote 3d9a75a481 Mac bustage fix for bug 556187. r=brendan via IRC. 2010-04-06 12:16:37 +10:00
Nicholas Nethercote e1d31d5039 Bug 556187 - encapsulate JSSLOT_ARRAY_* within JSObject. r=brendan. 2010-04-05 18:32:16 -07:00
timeless@mozdev.org 5f1353bc72 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
Jeff Walden f2b80a8199 Bug 520696 - Implement support for string and numeric literals as names for properties defined using ES5 get/set syntax. r=jimb
--HG--
extra : rebase_source : 42120d6f31851efa9771e3c869989de70d5ed0f5
2009-12-14 18:31:05 -05:00
Jeff Walden 88b1b84394 Make the code prettier. r=style-police
--HG--
extra : rebase_source : 3bd513d15e315dcabf4d69e95e3ded5764a50363
2010-04-05 10:43:49 -07:00
Jason Orendorff 34db69b6f5 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
Andreas Gal 5ceeb8b20b b=551507; bad auto root usage in typed arrays; r=waldo 2010-04-04 22:11:07 -07:00
Robert Sayre 0f3df923db Merge mozilla-central to tracemonkey. 2010-04-04 14:15:05 -04:00
Robert Sayre c2d662487e Fix thinko in test. 2010-04-04 11:00:45 -04:00
Robert Sayre 132aa31ad0 Fix up the tests from bug 555246 to run when there's no evalcx function available. 2010-04-04 09:41:11 -04:00
Jacek Caban c48615d849 Bug 393119: Followup bustage fix for mingw. r=mrbkap 2010-04-03 07:32:59 -04:00
Michael Wu 3949f4e154 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
Chris Jones a8c5a07cbb Bug 551254: Allow reviewed+approved STL headers to be included through <foo>. (<algorithm> and <vector> are provisionally in the list because of their use in libpr0n, but need to be reviewed in followup bug 556700 and bug 556701). r=ehsan,ted,zwol 2010-04-02 12:58:11 -05:00
Chris Jones d17ed699f3 Backed out changeset cec7b12eb5e3 2010-04-02 13:20:22 -05:00
Chris Jones f4b0fe954c Bug 551254: Allow reviewed+approved STL headers to be included through <foo>. (<algorithm> and <vector> are provisionally in the list because of their use in libpr0n, but need to be reviewed in followup bug 556700 and bug 556701). r=ehsan,ted,zwol 2010-04-02 12:58:11 -05:00
Jason Orendorff 00195a52fa Bug 555246 - Wrong answer for 'this' in function code when entry frame was produced by a call across globals. r=brendan. 2010-04-01 09:56:25 -05:00
Dan Witte 28e6b99814 Typo fix. 2010-04-02 14:03:27 -07:00
Dan Witte 7302a04138 Bug 538324 - Move ctypes into js/src. Part 9: Add ctypes to jsshell. r=gal 2010-04-02 13:34:19 -07:00