Commit Graph

17383 Commits

Author SHA1 Message Date
David Mandelin
e62d157d2d no bug, mark two slow tests as slow 2011-12-08 12:21:40 -08:00
Ed Morley
221981eca8 Bug 643167 - js/src configure should build js-config with MAKE, not GMAKE (based on patch by Kyle Huey); r=ted
* Switches js-config generation to use $MAKE rather than $GMAKE, since using
  make.exe on pymake builds causes issues:
  "config/autoconf.mk:354: *** Windows-style srcdir being used with GNU make"
* Ensures $MAKE is defined for configure when using client.mk
* For standalone js builds client.mk won't be used, so sets $MAKE manually if it
  isn't already defined, to avoid bug 605133 comment 22.
2011-12-08 20:02:26 +00:00
Ed Morley
08a63662de Bug 707593 - Clean up makefile generation in js/src configure; r=ted
* Adds the omitted js/src/analysis-tests/Makefile
* Adds conditionals to prevent makefiles being generated where they won't be used
2011-12-08 20:02:25 +00:00
David Mandelin
f0a78d733e no bug, fix warning in jsobj.h 2011-12-08 12:03:16 -08:00
David Mandelin
e00c3afe7d no bug, fix warning in jsscope.h 2011-12-08 12:02:29 -08:00
David Mandelin
bd6b2c6bea Bug 707341: remove VOUCH_DOES_NOT_REQUIRE_STACK, r=jorendorff 2011-12-07 17:49:10 -08:00
Bill McCloskey
af6c302c9e Bug 705332 - Re-enable printing filename in quiet builds (r=njn) 2011-12-08 10:14:06 -08:00
Brian Hackett
9cb15d12bc Fix incorrect use of shape->slot() when clearing native objects, bug 708006. r=luke 2011-12-08 08:58:39 -08:00
Brian Hackett
720916cd61 Fix test when starting compilation of loops with unreachable backedges and traps at the head, bug 707384. r=dvander 2011-12-08 08:57:17 -08:00
Jeff Walden
91683ae3e3 Bug 704313 - Implement mozilla/StdInt.h. r=cjones
--HG--
extra : rebase_source : b221134fdfbde13a37a6ef621bba3ca183a46101
2011-11-22 17:42:57 -08:00
Jeff Walden
976b51d411 Bug 704313 - Import, unmodified, the Microsoft-compatible <stdint.h> implementation from the 'msinttypes' Google Code project, r26, into mfbt. r=gerv for license compatibility and the addition to toolkit/content/license.html, r=cjones for the code
--HG--
extra : rebase_source : 9e1105b916d15023a91ffcca8b26445bc1bd930d
2011-11-22 16:40:45 -08:00
Mike Hommey
57f9bdde28 Bug 695843 part 9 - Use FileLocations in the component manager. r=bsmedberg 2011-11-08 18:10:51 +01:00
Mike Hommey
1c5ea5be3e Bug 695843 part 8 - Properly handle jar-in-jars when importing modules. r=mrbkap 2011-12-08 11:03:36 +01:00
Mike Hommey
1d5e489323 Bug 695843 part 7 - Use the URI string as the key for the various mozJSComponentLoader hashtables. r=mrbkap 2011-11-08 18:08:49 +01:00
Mike Hommey
b0618a0c3f Bug 703531 - Fix ARMAssembler::getOp2RegScale on < ARMv5. r=cdleary 2011-12-08 09:13:12 +01:00
Nicholas Nethercote
80ef93601a No bug. Remove last trace of removed 'lirasm' directory. r=dvander. 2011-12-07 18:52:07 -08:00
Brian Hackett
64c3b10eea Don't try to correlate scripts with functions in JSD interface, bug 707613. r=luke 2011-12-07 13:41:27 -08:00
Brian Hackett
bac4bc5efc Remove JSOP_TRAP, bug 707454. r=jorendorff 2011-12-07 13:15:48 -08:00
Bill McCloskey
b931f019bd Bug 707051 - Change MarkChildren for shapes (r=igor) 2011-12-07 09:52:16 -08:00
Bill McCloskey
7b27e33db7 Bug 704795 - Fix setprop write barrier for non-objects (r=bhackett) 2011-12-07 09:39:40 -08:00
Jeff Walden
adf79ecc9c Bug 707383 - Rename ValueTo{ECMA,}{Ui,I}nt32 so that To{Ui,I}nt32 is the ECMA spec method and NonstandardTo{Ui,I}nt32 is the non-standard JSAPI method functionality. r=luke 2011-12-05 17:10:02 -05:00
Jeff Walden
f757943ac9 Bug 707061 - Rename js_ValueToString to ToString. Also, consistent with ToObject, make ToString include an inline already-string fast path, and make ToStringSlow be an out-of-line slow path for the case where the value is not a string (asserting that this is the case). r=luke 2011-12-01 19:35:44 -08:00
Jeff Walden
d9f1c1316b Kill the warnings. KILL THEM WITH FIRE. No bug, r=sparky 2011-12-06 11:58:37 -05:00
Igor Bukanov
500216d17c bug 708231 - fix set-but-unused warnings reported by GCC 4.6 in jsexn.cpp. r=evilpies 2011-12-07 16:21:40 +01:00
Blake Kaplan
dc51d7dcc5 Bug 708215 - Report errors from the safe JS context. r=bent 2011-12-07 18:12:20 +08:00
Josh Matthews
4ee5f5c378 Bug 696450 - Add increment/decrement methods to PointerType jsctype objects. r=bobbyholley 2011-11-08 16:06:19 -05:00
David Mandelin
cba99b660e Bug 706316: don't clobber pinned registers in ImmutableSync, r=dvander 2011-12-06 17:06:56 -08:00
David Mandelin
1af47e9806 Bug 702572: always clone function in DEFLOCALFUN, r=jorendorff 2011-12-06 16:27:41 -08:00
Brian Hackett
6cceeeb39e Properly model semantics of prototype setters or permanent properties when analyzing definite 'new' script properties, bug 706808. r=luke 2011-12-06 16:09:04 -08:00
Brian Hackett
e68d6d4fb4 Improve exception messages when an error occurs in the middle of a decomposed opcode, bug 706532. r=luke 2011-12-06 15:58:35 -08:00
Brian Hackett
a60d67842a Properly record dependency on functions having lazy arguments, bug 707641. r=dvander 2011-12-06 14:56:48 -08:00
Bill McCloskey
314882b92d Bug 707750 - Invoke write barrier for setDenseArrayInitializedLength (r=bhackett) 2011-12-06 14:27:50 -08:00
David Mandelin
82a4d0b774 Bug 660437: Fix conversion of non-numeric types to typed array elements, r=luke
--HG--
extra : rebase_source : 6d4fe2723b173215fa1412ab5127cb993d46c1d8
2011-12-06 14:24:39 -08:00
Igor Bukanov
7049b7ba77 Bug 707664 - atoms compartment should beunlocked during OOM reporting. r=luke 2011-12-05 21:28:07 +01:00
Igor Bukanov
139ec9d5c0 Bug 707130 - Fix GCC 4.6 warnings coming from callgrind macros. r=jorendorff 2011-12-04 23:59:30 +01:00
Chris Leary
8b1c73bf93 Bug 704369: Factor unary emit. (r=Waldo) 2011-11-22 12:13:41 -08:00
Chris Leary
cd2e201660 Bug 704369: Move unary emit. (r=Waldo) 2011-11-22 12:10:21 -08:00
Chris Leary
94afa59e19 Bug 704369: Factor array emit. (r=Waldo) 2011-11-22 12:04:57 -08:00
Chris Leary
61e82289eb Bug 704369: Move array emit. (r=Waldo) 2011-11-22 12:03:16 -08:00
Chris Leary
a1441a7769 Bug 704369: Factor object emit. (r=Waldo) 2011-11-22 11:55:04 -08:00
Chris Leary
c914a4332e Bug 704369: Move object emit. (r=Waldo) 2011-11-22 11:52:51 -08:00
Chris Leary
ba76e5425b Bug 704369: Factor conditional expr emit. (r=Waldo) 2011-11-22 11:46:18 -08:00
Chris Leary
a15373dd57 Bug 704369: Move conditional expr emit. (r=Waldo) 2011-11-22 11:45:30 -08:00
Chris Leary
48c7d51563 Bug 704369: Move synthetic statements emit. (r=Waldo) 2011-11-22 11:42:27 -08:00
Chris Leary
2fa37572aa Bug 704369: Factor label emit. (r=Waldo) 2011-11-22 11:32:41 -08:00
Chris Leary
474c74229f Bug 704369: Move label emit. (r=Waldo) 2011-11-22 11:31:35 -08:00
Chris Leary
101ec0ca30 Bug 704369: Factor inc/dec emit. (r=Waldo) 2011-11-22 11:28:39 -08:00
Chris Leary
880a889b0e Bug 704369: Move inc/dec emit. (r=Waldo) 2011-11-22 11:26:47 -08:00
Chris Leary
41cfe35ffc Bug 704369: Factor logical emit. (r=Waldo) 2011-11-22 11:23:52 -08:00
Chris Leary
44d3c02465 Bug 704369: Move logical emit. (r=Waldo) 2011-11-22 11:21:28 -08:00
Chris Leary
8a50975bb0 Bug 704369: Factor call/new emit. (r=Waldo) 2011-11-22 11:17:42 -08:00
Chris Leary
72043bd94a Bug 704369: Move call/new emit. (r=Waldo) 2011-11-22 11:16:49 -08:00
Chris Leary
c34a1d0909 Bug 704369: Factor delete emit. (r=Waldo) 2011-11-22 11:12:12 -08:00
Chris Leary
bf532e68f0 Bug 704369: Move delete emit. (r=Waldo) 2011-11-22 11:09:15 -08:00
Chris Leary
4af505479e Bug 704369: Factor statements emit. (r=Waldo) 2011-11-22 11:05:32 -08:00
Chris Leary
ed75ef3ea6 Bug 704369: Move statements emit. (r=Waldo) 2011-11-22 10:59:25 -08:00
Chris Leary
4ffcab3d66 Bug 704369: Factor return emit. (r=Waldo) 2011-11-22 10:48:49 -08:00
Chris Leary
747b23127f Bug 704369: Move return emit. (r=Waldo) 2011-11-22 10:47:24 -08:00
Chris Leary
def73d9cc4 Bug 704369: Factor continue emit. (r=Waldo) 2011-11-22 10:45:37 -08:00
Chris Leary
648c94c4c6 Bug 704369: Move continue emit. (r=Waldo) 2011-11-22 10:43:10 -08:00
Chris Leary
62d4576973 Bug 704369: Factor break emit. (r=Waldo) 2011-11-22 10:41:11 -08:00
Chris Leary
cd4abac0d4 Bug 704369: Move break emit. (r=Waldo) 2011-11-22 10:40:06 -08:00
Chris Leary
5052ffc86d Bug 704369: Factor while emit. (r=Waldo) 2011-11-22 10:37:25 -08:00
Chris Leary
864458c7af Bug 704369: Move while emit. (r=Waldo) 2011-11-21 17:59:27 -08:00
Chris Leary
900d252e78 Bug 704369: Factor do-while emit. (r=Waldo) 2011-11-21 17:56:17 -08:00
Chris Leary
e6f8699781 Bug 704369: Move do-while emit. (r=Waldo) 2011-11-21 17:54:57 -08:00
Chris Leary
29a056b679 Bug 704369: Factor function emit. (r=Waldo) 2011-11-21 17:50:43 -08:00
Chris Leary
223d185aa6 Bug 704369: Move function emit. (r=Waldo) 2011-11-21 17:29:56 -08:00
Chris Leary
f86c301760 Back out c0e237b26fe2 because it's folded. (r=#jsapi) 2011-12-06 11:52:59 -08:00
Jim Blandy
08a0fc18a5 Bug 687683: Collect resumption values from onEnterFrame handlers, and respect them. r=jorendorff
This patch makes SpiderMonkey respect resumption values returned by
Debugger onEnterFrame handler functions, as documented.

In Debugger, we change fireEnterFrame to collect a resumption value from
the hook, and change onEnterFrame and slowPathOnEnterFrame to propagate
them out. These now need an 'rval' argument, so that they can return forced
return values and exceptions.

ScriptDebugPrologue now accepts a JSTrapStatus from Debugger::onEnterFrame,
takes care of placing the return value or exception where it belongs, and
returns a JSTrapStatus.

Calls to ScriptDebugPrologue now handle the JSTrapStatus:
- at the head of js::Interpret;
- in the JSOP_NEW/JSOP_CALL/JSOP_FUNCALL/JSOP_FUNAPPLY case;
- in stubs::ScriptDebugPrologue, which JM epilogues call; and
- in the REJOIN_THIS_PROTOTYPE case in js_InternalInterpret (you must add a
  JS_GC call to ic::GetPropNoCache for Debugger-onEnterFrame-resumption-05.js to
  hit this reliably).

We also rearrange the js_InternalThrow JSTrapStatus-handling switch statement to
have an explicit default case that raises a JS_NOT_REACHED assertion, instead of
just omitting JSTRAP_CONTINUE.
2011-12-06 11:40:28 -08:00
Jim Blandy
d43fea7a79 Bug 687683: Assert that REJOIN_CHECK_ARGUMENTS and REJOIN_FUNCTION_PROLOGUE are never generated in debug mode. r=bhackett1024
Explanation in the comments.

Fixing bug 699196 properly entails replacing the assertion this patch adds
with real code to call ScriptDebugPrologue. If this patch lands, hopefully
the person fixing 669196 will notice that and write tests that reach the
assertion/new code, but just to make sure we should probably add a note to
that bug about it.
2011-12-06 11:40:27 -08:00
Jim Blandy
b00b4715a4 Bug 687683: Some random comment fixes I came across. r=jorendorff 2011-12-06 11:40:27 -08:00
Jim Blandy
f2043939ea Bug 687683: Separate ScriptDebugPrologue add ScriptDebugEpilogue from and ScriptPrologue and ScriptEpilogue. r=jorendorff
At the moment, ScriptDebugPrologue is called (conditionally) from within
ScriptPrologue. For onEnterFrame handlers to be able to return a resumption
value, we need ScriptDebugPrologue to return a JSTrapStatus value, but it
is (non-debug) ScriptPrologue's callers that would need to handle those
values.

It seems strange to have ScriptPrologue return a JSTrapStatus. So this
patch brings ScriptDebugPrologue out of ScriptPrologue (and
ScriptPrologueOrGeneratorResume), and has ScriptPrologue's callers call
ScriptDebugPrologue explicitly.

For symmetry, we do the same with ScriptEpilogue,
ScriptEpilogueOrGeneratorYield, and ScriptDebugEpilogue.

Actually adding and processing the JSTrapStatus values comes in a later
patch. This is just meant to be a behavior-preserving rearrangement.
2011-12-06 11:40:27 -08:00
Jim Blandy
b0a215ceb7 Bug 687683: Remove unnecessary 'js::' namespace prefixes from Debugger code. r=jorendorff 2011-12-06 11:40:27 -08:00
David Mandelin
0d213831b1 Bug 707351: remove tracer-specific things in jit-tests, r=dvander
--HG--
extra : rebase_source : 363730ebc4ab81d55b947b93f0cf9523e7efd8cf
2011-12-05 17:46:13 -08:00
Chris Leary
091e5fe0e0 Bug 704369: Factor EmitTree to avoid recursion limit. (r=Waldo) 2011-12-06 10:50:23 -08:00
Bobby Holley
9171552a19 Bug 706301 - Tests. r=mrbkap 2011-12-06 11:05:26 -08:00
Bobby Holley
bbdbbf662a Bug 706301 - Don't cache own properties on XrayProxy. r=mrbkap 2011-12-06 11:05:26 -08:00
Tom Schuster
e9f056e856 Bug 663338 - parseInt was wrong for very small doubles. r=jandem
--HG--
extra : rebase_source : 41c6581143053835665dc47d88f60d918be57450
2011-12-06 11:31:16 +01:00
Tom Schuster
37d27f441c Bug 700169 - Refactor code to use StringBuffer. r=Waldo
--HG--
extra : rebase_source : fefe9dcae3b2e227b9b32a17a976320eb9d71ba3
2011-12-06 11:31:00 +01:00
Brian Hackett
4dda6938e1 JS_GetFrameFunction should return canonical script function, bug 707613. r=luke 2011-12-05 15:31:31 -08:00
Nicholas Nethercote
6c8107ba0c Bug 704723 - Add memory reporter for XPConnect. r=mrbkap. 2011-12-05 14:24:28 -08:00
Igor Bukanov
fe8549009d Bug 707645 - Fix set-but-unused warnings reported by GCC 4.6 in jsobj.cpp. r=bhackett1024 2011-12-05 17:11:16 +01:00
Nicholas Nethercote
018e8c959d Bug 707125 - Shrink the final string in str_unescape if possible. r=luke. 2011-12-04 20:50:52 -08:00
Phil Ringnalda
7233739fab Back out e0cb9fb30750 (bug 707051) for test failures 2011-12-04 18:48:54 -08:00
Bill McCloskey
b69507846f Bug 707051 - Change MarkChildren for shapes (r=igor) 2011-12-04 17:16:21 -08:00
Igor Bukanov
4c91f1913d bug 707114 - inline JSLinearString::mark. r=wmccloskey
--HG--
extra : rebase_source : b974429fecda0f4ba29612e0065bb2215fe7b8c2
2011-12-05 01:59:45 +01:00
Ed Morley
1ffbd8940f Merge mozilla-central and mozilla-inbound 2011-12-04 15:04:54 +00:00
Jim Blandy
a89edb3f78 Bug 700070: Have stubs::AnyFrameEpilogue call the full ScriptEpilogue before StackFrame::functionEpilogue, not just ScriptDebugEpilogue after functionEpilogue. r=jorendorff
The debugger tests don't try returning all four kinds of resumption values
from an onExceptionUnwind handler, and under JaegerMonkey, forcing a
constructor to return a primitive can cause an assertion:

Assertion failure: !args.rval().isPrimitive(), at /home/jimb/moz/dbg/js/src/jsinterp.cpp:651

This patch changes AnyFrameEpilogue to match what the interpreter and
mjit::Compiler::emitReturn does, and adds test cases for all the resumption
values.
2011-12-03 18:51:30 -08:00
Ms2ger
18fa4b8800 Bug 705357 - Use IDL for Components.utils.getGlobalForObject; r=bholley 2011-12-03 22:50:16 +01:00
Ms2ger
7835d6610a Bug 705333 - Use IDL for nsJSCID::{CreateInstance,GetService}; r=bholley 2011-12-03 22:50:16 +01:00
Kyle Huey
a441b10233 Merge b-s to m-c. 2011-12-03 16:27:21 -05:00
Brian Hackett
356489907c Merge MC -> JM 2011-12-03 10:34:26 -08:00
Antti Haapala
55185ebf5e Bug 699156: Support TypedArrays in XPConnect. r=bholley,evilpie 2011-12-03 09:33:20 -05:00
Hannes Verschore
6aee55d766 Add testcase for bug 476088. r=jruderman 2011-12-03 03:29:59 -05:00
Hannes Verschore
0b0193a36a Add a test for bug 373843. r=jruderman 2011-12-03 03:29:59 -05:00
Brian Hackett
d3db56074b Merge MC -> JM 2011-12-01 11:51:09 -08:00
Brian Hackett
4fa421bf15 Merge MC -> JM 2011-11-30 12:45:27 -08:00
Brian Hackett
0fa9feab9b Avoid scratch register collision when comparing an absolute address to an immediate, bug 703047. 2011-11-29 18:41:38 -08:00
Brian Hackett
eac5475248 Manually check prototypes of objects with uncacheable prototypes in ICs, bug 703047. 2011-11-29 13:37:18 -08:00
Brian Hackett
b0f0390951 Remove bogus assert, bug 705873. 2011-11-28 17:58:00 -08:00
Brian Hackett
363a464669 Always generate new shapes when setting uncacheable flags after prototype changes, don't cache native iterators for objects with uncacheable prototypes, bug 705895. 2011-11-28 17:27:00 -08:00
Brian Hackett
e3ddedadca Add API for JSD to get the parent of a scope object, no bug. 2011-11-28 07:43:31 -08:00
Brian Hackett
73956e1912 Merge MC -> JM 2011-11-26 15:03:20 -08:00
Brian Hackett
2bfcc2bf79 Fix inverted test, improve test when marking objects with uncacheable prototypes, bug 703047. 2011-11-25 17:45:41 -05:00
Brian Hackett
2aed57be88 Allow one prototype change before marking an object's prototype as uncacheable, bug 703047. 2011-11-25 16:01:08 -05:00
Brian Hackett
2622cec5c9 Use correct base address for computing allocated size of object elements, bug 704372. 2011-11-23 22:01:08 -05:00
Brian Hackett
e0088b9d4a Don't trigger write barrier when initializing private data of new objects, bug 704136. 2011-11-22 18:21:10 -05:00
Brian Hackett
5b7f09e51f Fix misuse of shape->slot(), bug 703818. 2011-11-22 17:44:26 -05:00
Brian Hackett
7a648f4ee8 Check for uncacheable prototypes during ADDPROP IC, bug 704138. 2011-11-22 17:24:59 -05:00
Brian Hackett
9c78221ab5 Treat EXTENSIBLE_PARENTS as an object flag, bug 704134. 2011-11-22 16:49:47 -05:00
Brian Hackett
586dafd5c1 Add about:memory reporters for per compartment shape tables, bug 704372. 2011-11-21 20:29:05 -05:00
Brian Hackett
9b1e8362f3 Dense arrays should have numFixedSlots() == 0, regardless of size class. bug 704348 2011-11-21 19:20:39 -05:00
Brian Hackett
8f0417b715 Speed up adding new properties with a common base shape, bug 704327. 2011-11-21 18:33:55 -05:00
Bobby Holley
185cf7a127 Bug 705019 - Allow access to {C,Pointer,Struct,Array,Function}Type.prototype.prototype. r=jorendorff 2011-11-29 18:29:19 -08:00
Bobby Holley
1c1b109a0d Bug 705019 - Make toSource() and toString() work on sCTypeProtoClass and sCDataProtoClass objects. r=jorendorff 2011-11-29 18:26:12 -08:00
Bobby Holley
80eb15cc4c Bug 705019 - Introduce CType::IsCTypeProto() and CData::isCDataProto(). r=jorendorff 2011-11-29 18:26:12 -08:00
Chris Leary
75098ca12a Bug 691299: Lower maximum quantifier. (r=dmandelin)
--HG--
extra : rebase_source : ea2cdc1664171309d60c02094913483e2af3a61a
2011-11-29 15:24:44 -08:00
Brian Hackett
46a2c296fd Only inline construction of 'this' for 'new' on singleton functions, bug 706110. r=billm 2011-11-29 13:26:37 -08:00
Chris Leary
8a790745e5 Bug 691797: Optimize RegExp.prototype.test with leading .*, take 2. (r=mrbkap,luke)
--HG--
extra : rebase_source : 49c190dc6dec6ab2a05fbbd1479135082a053690
2011-11-28 13:35:12 -08:00
Brian Hackett
9a1b4e584a Merge mozilla-central and mozilla-inbound 2011-12-03 14:36:54 -08:00
Makoto Kato
c012763b5c Bug 655658 - NetUtil.readInputStreamToString should have aCharset argument as optional. r=sdwilsh, sr=bz 2011-11-25 11:23:41 +09:00
Tom Schuster
c70627a126 Bug 602212 - Use error message from js.msg when CSP blocks a call to eval r=jorendorff 2011-11-24 19:39:02 +01:00
Tom Schuster
f8c682c633 Bug 705168 - Followup to remove some references to the tracer in the methodjit r=dvander 2011-11-24 19:38:57 +01:00
Andrew McCreight
4453584b8b Bug 668855, part 6: test weak maps and the cycle collector. r=gal 2011-11-24 07:35:57 -05:00
Brian Hackett
299ac2bf87 Merge MC -> JM 2011-11-18 18:02:40 -08:00
Brian Hackett
d878ed663a Remove assertion, no bug. 2011-11-18 17:37:37 -08:00
Brian Hackett
c78deb5725 Fix incorrect loadPayload, bug 703721. 2011-11-18 17:03:50 -08:00
Brian Hackett
316495759c Address bug 694561 review comments, r=luke. 2011-11-18 16:22:52 -08:00
Brian Hackett
f105499192 Address bug 697537 review comments, r=luke. 2011-11-18 15:20:21 -08:00
Brian Hackett
c524bd9873 Address bug 684507 review comments, r=luke. 2011-11-18 14:59:31 -08:00
Brian Hackett
58ac544fd2 Address bug 699446 review comments, r=luke. 2011-11-18 14:40:14 -08:00
Brian Hackett
eadd477da8 Address bug 700501 review comments, r=luke. 2011-11-18 13:59:48 -08:00
Brian Hackett
1eb0891b9b Address bug 701509 review comments, r=luke. 2011-11-18 13:35:10 -08:00
Brian Hackett
2f44413ef8 Mark uncacheable prototypes on objects whose prototype has dynamically changed, bug 703047. 2011-11-18 13:28:07 -08:00
Brian Hackett
61189d725a Move arguments object private data to a reserved slot, bug 703721. 2011-11-18 12:54:40 -08:00
Ed Morley
18baf3e8cb Merge b-s and m-c 2011-11-18 19:04:13 +00:00
Brian Hackett
12dec0f7aa Avoid splintering property trees when changing the last property of an empty object, bug 701509. 2011-11-16 18:02:32 -08:00
Brian Hackett
fdac79a1f2 Avoid shape changes on XPConnect wrapper prototype changes, bug 703047. 2011-11-16 12:52:47 -08:00
Brian Hackett
fbce8a7fce Don't cache new object layouts when a dynamic property lookup is required, bug 699446. 2011-11-15 12:05:22 -08:00
Brian Hackett
78f238abcb Fix method function issues, no bug. 2011-11-15 08:58:06 -08:00
Brian Hackett
2a421c34fc Trigger write barrier on object slots before shrinking capacity, no bug. 2011-11-14 18:46:47 -08:00
Brian Hackett
57fdfc58fd Clear XPCWrappedNativeScope fields to avoid accessing freed arenas during destruction, no bug. r=billm 2011-11-14 17:06:53 -08:00
Brian Hackett
f30aac0eff Start fixing merge trainwreck, no bug. 2011-11-14 13:03:50 -08:00
Steve Fink
d069c50175 Bug 700202 - Propagate exceptions from ConstructSlimWrapper (r=bholley)
--HG--
extra : rebase_source : 8ce6d12e100a2e3639c4d1fddbadee25e6dd12cf
2011-11-21 09:28:19 -08:00
Steve Fink
3702eb5458 Bug 702740 - Add JS_SetFunctionCallback to JSAPI proper (still gated on --enable-trace-jscalls). r=luke
--HG--
extra : rebase_source : 1d77493b4a5a39bf1b2c615f13d77021324ea6d2
2011-12-01 11:25:37 -08:00
Mike Hommey
bbb7468588 Bug 703842 - Avoid R_SPARC_WDISP22 relocation in TrampolineSparc.s. r=bhackett 2011-11-19 09:37:34 +01:00
Mike Hommey
6e6dc62bf1 Bug 703534 - Fix build failure on platforms without YARR JIT. r=luke 2011-11-18 11:49:28 +01:00
Nicholas Nethercote
e611313515 Bug 704391 - follow-up to f1c49a3b76e7 that unbreaks non-JS_THREADSAFE shell builds. r=me. 2011-12-01 21:25:13 -08:00
Nicholas Nethercote
f1b6f27607 Bug 704391 - Add more JS runtime memory reporters and fix the existing ones. r=luke. 2011-12-01 19:08:20 -08:00
Bobby Holley
f2a42e56dd Bug 705875 - Check for null IID pointers and references in XPCConvert. r=khuey
This is a regression from http://hg.mozilla.org/mozilla-central/rev/c428312abbc7 . The rest of the changes in that patch should be fine.
2011-12-01 18:24:28 -08:00
Chris Leary
2ae50246fc Bug 706442: Shorten LifoAlloc chunk chain. (r=luke) 2011-12-01 17:59:50 -08:00
Christian Holler
67b2a0956f Bug 706433 - Add JS shell compile flag (--enable-more-deterministic) for more determinism, used for differential testing. r=jorendorff 2011-12-01 15:46:28 -08:00
Brian Hackett
078d0d3d65 Remove JSOP_NOTRACE, rename JSOP_TRACE -> JSOP_LOOPHEAD, bug 706611. r=dvander 2011-12-01 15:13:51 -08:00
Felix Fung
61c8c22ee9 Bug 498543 - Null-checking JS_THIS_OBJECT Results. r=jwalden 2011-12-01 13:30:28 -08:00
David Mandelin
e9eabdd79d Bug 685321 followup: land another test case
--HG--
rename : js/src/jit-test/tests/basic/bug685321.js => js/src/jit-test/tests/basic/bug685321-1.js
2011-12-01 14:44:30 -08:00
Brian Hackett
3afca6b036 Merge MC -> JM 2011-11-14 09:13:33 -08:00
Brian Hackett
0e5260dabc Purge new object cache entries when reinserting new initial shapes, bug 701509. 2011-11-11 22:09:13 -08:00
Michael Wu
dcc2c6030e Bug 691847 - Always check bytecode version, r=Waldo 2011-11-11 19:15:19 -08:00
Gregory Szorc
84fc0b630e Bug 701822 - Add TEST_DIRS Makefile variable; r=ted 2011-11-11 12:25:22 -08:00
Brian Hackett
99cc62f619 Watch for created string objects that are non-empty due to insertInitialShape, bug 701509. 2011-11-11 07:50:12 -08:00
Marco Bonardo
58bfb85dcd Merge mozilla-central and mozilla-inbound 2011-11-11 11:09:58 +01:00
Luke Wagner
86474973a1 Bug 698299 - rm bogus assert in SecurityWrapper::nativeCall (r=mrbkap)
--HG--
extra : rebase_source : 76029f08a99557061e33550165267488acf38e9b
2011-11-10 21:55:35 -08:00
Luke Wagner
ce23677698 Bug 701239 - add back arg/local-handling in DecompileDestructuringLHS (r=waldo)
--HG--
extra : rebase_source : b296a3a47e4b687f773f9f5cf8bada7812ba2b81
2011-11-10 21:55:23 -08:00
Luke Wagner
5c9952fece Bug 701227 - don't assume catch's block object has only one entry (r=waldo)
--HG--
extra : rebase_source : 77673329e0841330a954a7f419d2561701c43f3c
2011-11-10 21:53:55 -08:00
Luke Wagner
b2a621aa92 Bug 701244 - add back JSOP_LENGTH case to DecompileDestructuring (r=waldo)
--HG--
extra : rebase_source : ddc7c80a94772b5b234a0d8f000189618051b7ff
2011-11-10 21:52:57 -08:00
Brian Hackett
150d8e2a1c Add missing #include, no bug. 2011-11-10 18:30:52 -08:00
Brian Hackett
5230525fd1 Get new object empty shapes with a common hash table, bug 701509. 2011-11-10 17:50:05 -08:00
Gregory Szorc
dd260c7514 Merge b-s to m-c 2011-11-10 15:15:29 -08:00
Brian Hackett
4c9a62a527 Merge MC -> JM 2011-11-10 12:06:26 -08:00
Brian Hackett
f9e6bfad19 Fix incorrect use of JSObject::getParent, no bug. 2011-11-10 08:47:56 -08:00
Brian Hackett
30da7b33be Always set the scope chain of XDR'ed static block objects, no bug. 2011-11-09 22:47:26 -08:00
Brian Hackett
e97942a3eb Add GetGlobalForObjectCrossCompartment for use in XPConnect, no bug. r=luke 2011-11-09 18:42:42 -08:00
Jeff Walden
f2d9695d18 Bug 701224 - Fix destructuring into an E4X qualified name, e.g. x::y. Also fix purely-expression-context evaluation of qualified names, bug 701222. r=cdleary 2011-11-09 18:39:53 -08:00
Brian Hackett
877fa060f8 Example property ops need to check the class of the incoming objects, bug 700295. r=waldo 2011-11-09 19:32:30 -08:00
Brian Hackett
d0c30f457c Don't treat THROW and RETRVAL as having fallthrough, bug 700127. r=dvander 2011-11-09 19:08:26 -08:00
Chris Leary
9e9cd502b5 Back out 1bf4c1a6412b for failing an XP reftest.
--HG--
extra : rebase_source : 52b566a36b755a71402b5a973f309698208cc5db
2011-11-09 17:39:45 -08:00
Justin Lebar
a19acfd732 Bug 586010 - Send dump() output to Android device log. r=bz
--HG--
extra : rebase_source : f1712d831aaa6fbd8e1bfd6060fbb4aa951ccb74
2011-11-09 19:27:08 -05:00
Brian Hackett
2c2283ba38 Empty shapes attached to type objects must have the same class as the prototype, bug 698150. 2011-11-09 13:08:23 -08:00
Brian Hackett
da034e0aac Hold reference on entry in base shape table when populating initial shape, bug 698902. 2011-11-09 12:04:56 -08:00
Brian Hackett
5226910bd6 Replace uses of GetObjectGlobal with JS_GetGlobalForObject, no bug. 2011-11-09 10:34:54 -08:00
Brian Hackett
2c535cd6ad Fix incorrect test in HasDataProperty, bug 699166. 2011-11-09 10:25:21 -08:00
Brian Hackett
c80816727f PropertyCache::fullTest should work on arbitrary scope chains, bug 700792. 2011-11-09 09:59:09 -08:00
Brian Hackett
13b09a53da Address bug 638316 and bug 694247 review comments, r=luke. 2011-11-09 09:52:59 -08:00
Brian Hackett
5f7448c0af Track whether default 'new' types need unknown properties on the prototype, bug 700501. 2011-11-08 18:34:11 -08:00
Brian Hackett
290504fbd4 Set DELEGATE for parents of other objects, bug 700300. 2011-11-08 16:56:00 -08:00
Brian Hackett
e9d5d10a32 Allow NULL'ing out of non-NULL scopes of static block chains, bug 700799. 2011-11-08 16:14:34 -08:00
Ed Morley
24695badf6 Merge m-c to b-s. 2011-11-08 23:18:09 +00:00
Brian Hackett
504c27377c Address bug 693754 review comments, r=luke. 2011-11-08 13:42:27 -08:00
Brian Hackett
7a87e0f4d4 Address bug 693479 review comments, r=luke. 2011-11-08 13:08:13 -08:00
Brian Hackett
21f7fd95e9 Address bug 693221 review comments, r=luke. 2011-11-08 13:03:33 -08:00
Brian Hackett
9e2894e93b Address bug 684410 review comments, r=luke. 2011-11-08 12:11:05 -08:00
Gregory Szorc
0870b48b40 Bug 700519 - Remove -fpascal-strings from Darwin compiler flags; r=ted 2011-11-08 12:10:22 -08:00
Christian Legnitto
39061fa675 Bug 700688, Version bump 2011-11-08 09:12:57 -08:00
Jacek Caban
4926b14eae Bug 699170 - Tons of JS_* redefined warnings on mingw r=ted 2011-11-08 10:25:51 +01:00
Ed Morley
30d0ff4239 Merge last green changeset of mozilla-inbound to mozilla-central 2011-11-08 08:01:18 +00:00
Terrence Cole
670faef17b Bug 700357 - Run GC_SHRINK more frequently; r=billm
Currently we only run this on idle when allocating memory.  There
are plans in place to also run these when clicking the Minimize
Memory button in about:memory, and when we are under memory
pressure.  This change causes GC_SHRINK to also run when doing so
will result in "lots" of pages being decommitted to the OS.
2011-11-07 13:47:14 -08:00
Ben Turner
eb6c6b2158 Bug 658178 - 'Make XHR2 response/responseType work in Web Workers'. r=jst+sicking+mrbkap. 2011-11-07 17:01:29 -08:00
Bill McCloskey
9800f1c683 Bug 699298 - Fix for windows build bustage 2011-11-09 13:53:47 -08:00
Bill McCloskey
70a91c0353 Bug 699298 - Overhaul GC statistics gathering (r=gwagner) 2011-11-09 13:32:17 -08:00