Tom Schuster
3facd97a02
Bug 590036 - Optimize cases where we probably eval an array, that would be parsable by JSON. r=jorendorff a=SpiderMonkey
2011-12-13 18:24:10 +01:00
Tom Schuster
fca18ee593
Bug 706924 - Rename JSOP_PUSH to JSOP_UNDEFINED, and remove dead code from the decompiler. r=Waldo a=SpiderMonkey
2011-12-13 18:23:37 +01:00
Andrew Quartey
faa8be8d82
Bug 706010 - Remove NS_SPECIALIZE_TEMPLATE and HAVE_CPP_MODERN_SPECIALIZE_TEMPLATE_SYNTAX; r=khuey a=cleanup/removal
2011-12-13 14:17:59 +00:00
Nicolas Pierron
c37b2e0523
Bug 700517 - Add "ret imm16" instruction for x86 and x86_64; r=dvander a=not-libxul
2011-12-13 14:17:57 +00:00
Igor Bukanov
40de82fbfe
Bug 708382 - GC marking - one common stack and tail recurssion elimination. r=wmccloskey. a=ms2geronirc
...
--HG--
extra : rebase_source : 580b30f289f4e1b1a1980bb000fc25e6e3cf27e7
2011-12-07 14:22:47 +01:00
Igor Bukanov
f902c0a6df
Bug 708382 - GC marking - merging string and object stacks. r=wmccloskey
...
--HG--
extra : rebase_source : ca47672218af276ed0bbdfd53add6207c524179b
2011-12-08 10:29:43 +01:00
Ms2ger
ac9df022f7
Bug 709603 - Remove unused variables 'type' in CallMethodHelper::Get{ArraySize,InterfaceType}FromParam; r=bholley a=ehsan
2011-12-13 09:49:31 +11:00
Justin Lebar
d7693d87a0
Bug 696535 - Use absolute paths in pythonpath.py. r=bsmedberg a=test-only
2011-12-12 15:44:41 -05:00
Jim Blandy
9c247a7cdf
No bug: Bring jorendb up to date with current state of Debugger object. r=NPOB,jorendorff
2011-12-09 14:12:36 -08:00
Nicholas Nethercote
587382cea2
Bug 705987 - Use mallocSizeOf in the layout memory reporters. r=khuey,bzbarsky
2011-12-08 21:01:52 -08:00
Ed Morley
4547b6a2f4
Backout ee420d0f03df (bug 697479) for Win opt build failures
2011-12-09 09:30:25 +00:00
Jason Orendorff
f7c79fdd7f
[revised per backout affc2782a250, jimb] Implement simple Map and Set builtins for JS. Bug 697479, r=jimb.
2011-12-08 21:04:10 -08:00
Brian Hackett
9c80b87753
Ensure consistent warnings when accessing undefined names, bug 706240. r=waldo
2011-12-08 19:50:09 -08:00
Brian Hackett
c4be034936
Avoid sharing owned base shapes between multiple shapes, bug 707842. r=luke
2011-12-08 19:37:17 -08:00
Christian Holler
7c280ec118
Ensure a consistent enumeration order when compiled in deterministic mode, bug 707017. r=luke
2011-12-08 19:28:36 -08:00
Brian Hackett
9e001fe1e3
Refine shape changes done to preserve teleporting invariant on prototype changes, bug 707515. r=luke
2011-12-08 19:23:31 -08:00
Rafael Ávila de Espíndola
c618227508
Bug 708851 - Any gcc that supports firefox support -pipe.
2011-12-08 22:16:06 -05:00
Nicholas Nethercote
688c469bc9
Bug 704400 - Implement --enable-dmd. r=khuey.
2011-12-08 19:09:36 -08:00
David Anderson
2f644b6b1b
Cap objects to a saner memory limit (bug 705855, r=dmandelin).
...
--HG--
extra : rebase_source : 551bbcee86d617f3a55a0a3274083ae54af4b294
2011-12-08 17:46:39 -08:00
Ed Morley
31a749aec3
Backout edecc56b7c80 and ad8aee962832 (bug 697479) for check-jit-test failures
2011-12-09 01:47:42 +00:00
Jason Orendorff
484a529024
Add missing file and fix for bug 697479 (rev ad8aee962832 added failing tests). No bug#, r=orange.
...
--HG--
extra : rebase_source : b104347e7f77f0856cdf1e83b923dfab74f1c8d9
2011-12-08 19:05:52 -06:00
Chris Leary
236e4d17ae
Bug 708873: Write unescape to match spec w/minor optimization. (r=Waldo)
2011-12-08 16:30:56 -08:00
Jason Orendorff
1386a84535
Credit where it's due. No bug#, rs=jimb on IRC.
2011-12-08 17:59:59 -06:00
Jason Orendorff
5b87a346ba
Implement simple Map and Set builtins for JS. Bug 697479, r=jimb.
2011-12-08 17:54:51 -06:00
Jason Orendorff
df7191c92c
Remove all mentions of imacros from js/src. Bug 708836, r=sfink.
2011-12-08 16:17:55 -06:00
Jim Blandy
0d83c6fc1e
Bug 708838: Use findReferences instead of countHeap to make js1_8/extensions/regress-422269.js fail less randomly. r=jwalden
...
The SpiderMonkey test js/src/tests/js1_8/extensions/regress-422269.js fails
randomly, because it requires a certain object to be garbage-collected to
pass. With a conservative stack scanner, an object being retained is not
necessarily a bug, and in general, the engine makes no promises about which
objects it retains and which it doesn't.
The JavaScript shell's new findReferences function allows us to find all GC
edges referring to the object, and filter out ones we know to be benign.
This patch changes the test to use findReferences.
2011-12-08 14:51:35 -08:00
Rafael Ávila de Espíndola
0e72991c4e
Bug 708065 - Fix configure check for -pipe. r=ted.
...
With the shell used on OS X, the test we were trying to compile was
#include <stdio.h>
int main() { printf("Hello World
"); exit(0); }
which fails.
2011-12-08 17:01:21 -05:00
Jason Orendorff
084417b5be
A first cut at Debugger.Environment. Bug 690558, r=jimb.
...
--HG--
extra : rebase_source : 3cafc4e635f11b3219285fdf6fad952c15765f96
2011-12-08 14:54:26 -06:00
Jason Orendorff
4d508e3ed1
Remove the last comment referring to imacros. No bug#, no_r=me.
...
--HG--
extra : rebase_source : ec684275939472f47dd5faee69c3b4023483d6e2
2011-12-08 14:28:13 -06:00
Jason Orendorff
f952c6179e
Fix JS_TraceChildren crash triggered by findReferences. Bug 708261, r=jimb.
...
--HG--
extra : rebase_source : 336ebf499834345d364955000977a952014ea2bb
2011-12-08 14:23:31 -06:00
Jason Orendorff
61b53e6862
Remove another dead local variable so JS can build without warnings on GCC. No bug#, no_r=me.
...
--HG--
extra : rebase_source : 6f76525855ffc9a8b02ba9770109b490b9bde7c3
2011-12-08 14:14:01 -06:00
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