Commit Graph

16962 Commits

Author SHA1 Message Date
Brian Hackett
5bfbb57aea Fix incorrect use of obj->setDenseArrayLength, bug 699446. 2011-11-03 14:20:44 -07:00
Brian Hackett
ff81f4b4d3 Fix linkage for IsScopeObject, no bug. IGNORE BAD COMMIT MESSAGES 2011-11-03 10:42:14 -07:00
Brian Hackett
c881098435 Fix struct/class mismatches on js::Shape. 2011-11-03 10:38:08 -07:00
Brian Hackett
f154aae882 Add cache for constructing new objects from the VM, bug 699446. 2011-11-03 09:57:12 -07:00
Brian Hackett
bb854d7cbb Remove JSObject::isNewborn, refactor object creation code, bug 684507. 2011-11-02 13:34:19 -07:00
Brian Hackett
dbfdcee71e Add memory reporter for base shapes, bug 699210. 2011-11-02 13:32:05 -07:00
Jeff Walden
2b2646eebe Bug 701584 - Move various offsetof uses into static offsetOf* methods. r=cdleary
--HG--
extra : rebase_source : 6d453db67d872318160eee60bed3f628c1915c69
2011-11-02 12:57:59 -07:00
Jeff Walden
ca6ba5c8ed Bug 699185 - Building SpiderMonkey with clang warns up the wazoo. Disable the warning that's the primary cause of the spew, because the workarounds are gross and the issue is a purely theoretical spec deviation which no compiler implements. r=ted
--HG--
extra : rebase_source : 09469e9ca787f9dcec43cb4697034d20a61b476f
2011-11-09 01:35:05 -08:00
Chris Leary
8951d2e99a Bug 701387: RegExpPrivateCache can disappear after lookup. (r=Waldo) 2011-11-10 21:04:04 -08:00
Chris Leary
1bd2f9ab1d Bug 701332: Followup fix. 2011-11-10 21:04:00 -08:00
Chris Leary
b72a4dfff6 Bug 701332: Don't expose RegExp privates. (r=Waldo) 2011-11-10 17:30:04 -08:00
Chris Leary
10066a1d5e Bug 701332: Defensive refcount on string split. (r=Waldo) 2011-11-10 17:30:01 -08:00
Chris Leary
27a5f7bc9a Bug 700915: Back out diagnostic changeset fe41fa77e51a. 2011-11-10 17:19:18 -08:00
Michael Wu
3e0835d415 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Bill McCloskey
a6734b541f Bug 641027 - Fix warnings-as-errors bustage 2011-11-10 13:38:05 -08:00
Jim Blandy
4ef75e7f38 Bug 684619: Make HeapReverser itself root all nodes referred to by roots. r=bhackett
The comments for HeapReverser::roots explain.
2011-11-10 13:28:55 -08:00
Chris Leary
40d309e06f Bug 700915: 64-bit RegExp domaeo_basics diagnostic. (r=billm) 2011-11-10 12:42:58 -08:00
Brian Hackett
a6951bc7dd Add type behavior info to script PC counts, bug 691788. r=sfink 2011-11-10 12:34:24 -08:00
Brian Hackett
d24ffb5376 Merge MC -> JM
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
2011-11-02 09:23:25 -07:00
Kyle Huey
e6f8798925 Merge m-c to b-s. 2011-10-31 13:12:45 -04:00
Brian Hackett
fa761ce1c3 Root correct array during makeDenseArraySlow, bug 698148. 2011-10-30 08:50:58 -07:00
Brian Hackett
ad4706b368 Fix GC hazard when constructing functions, bug 698156. 2011-10-30 08:27:19 -07:00
Ed Morley
d3095eb7a4 Merge mozilla-central and mozilla-inbound 2011-10-30 11:52:20 +00:00
Brian Hackett
95cfedc114 Fix misuse of shape->slot(), bug 698074. 2011-10-29 22:58:12 -07:00
Brian Hackett
ec0827a8e8 Fix misuse of shape->slot() in debugging code, bug 690396. 2011-10-29 19:45:51 -07:00
Brian Hackett
4823df1b2c Fix uses of native reserved slots in web workers, bug 697537. 2011-10-29 18:26:21 -07:00
Brian Hackett
85181051df Sync FrameState entries based on tracker, bug 698100. r=dvander 2011-10-29 18:16:35 -07:00
Brian Hackett
519d2afef5 Propagate OOM triggered by inlineCallHelper, bug 695290. r=dvander 2011-10-29 17:40:34 -07:00
Brian Hackett
e47b86f599 Remove defined variables analysis, bug 697861. r=dvander 2011-10-29 17:30:08 -07:00
Brian Hackett
2ab0c41108 Restore logic to increase fixed slot count for object types which have had slot arrays allocated, bug 693221. 2011-10-29 17:03:59 -07:00
Ms2ger
567f4260b6 Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv 2011-10-29 22:03:55 +02:00
Jonas Sicking
0588c874fd Bug 687400: Kill Node.isSameNode. r=smaug 2011-10-28 19:52:27 -07:00
Brian Hackett
70d4d3f7c2 Set initial value of native reserved slots to undefined, bug 697537. 2011-10-28 08:43:04 -07:00
Brian Hackett
9a4eccd90e Merge. 2011-10-27 14:17:19 -07:00
Brian Hackett
8e5e57fc40 Merge MC -> JM 2011-10-27 14:16:02 -07:00
Brian Hackett
301e88a033 Clean up API for creating natives with reserved slots, fix uses in CTypes and jsworkers shell, bug 697537. 2011-10-27 11:14:56 -07:00
Brian Hackett
03be78b36d Don't return stale shape in methodShapeChange, bug 690732. 2011-10-27 09:22:32 -07:00
Brian Hackett
418d3ca581 Fix incorrect load for flat closure upvar slots, bug 697537. 2011-10-26 13:41:17 -07:00
Brian Hackett
7254ac96f7 Fix warnings. 2011-10-26 13:30:51 -07:00
Brian Hackett
914cb44c0c Remove JSFunction fixed slots and unused fields, bug 697537. 2011-10-26 13:02:57 -07:00
Ted Mielczarek
3b16e50c71 bug 697709 - shuffle around some blocks in configure so we can choose the right STLport flavor for ARMv6 Android builds. r=glandium 2011-10-26 13:59:43 -04:00
Nicholas Nethercote
d88a09cc15 Bug 697016 - Add js-total-* memory reports. r=bhackett. 2011-10-27 22:20:36 -07:00
Nicholas Nethercote
71761b057d Bug 697016 - Refine per-compartment JS reporters. r=bhackett. 2011-10-27 22:19:57 -07:00
Jason Orendorff
66dc6a8e8f Remove unused flag TCF_NEED_MUTABLE_SCRIPT as suggested by Waldo in review. Bug 696953 comment 8. rs=Waldo over IRC.
--HG--
extra : rebase_source : 2da200e67b56453a6d15a58e8937c23c8ed8403e
2011-10-27 21:20:32 -05:00
Jason Orendorff
19bf5b2e7a Divorce analyzeFunctions() and friends from class js::Parser. Bug 696953, part 4 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 735796e90d053bc979060c2b988926954b90f435
2011-10-27 21:16:32 -05:00
Jason Orendorff
ba6ee1ae03 Remove class BytecodeCompiler. Bug 696953, part 3 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 2d9b17328a656f5f5dccda11311fd5d4637a6663
2011-10-27 17:03:54 -05:00
Jason Orendorff
64c6bc2b3d Move GlobalScope from BytecodeCompiler to BytecodeEmitter. Bug 696953, part 2 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : d07f9e50246b46d9704c3a45ae0fa368c88319be
2011-10-27 17:00:48 -05:00
Jason Orendorff
557c9ac390 Split Parser::analyzeFunctions and friends off into their own file. Bug 696953, part 1 of 4. r=Waldo.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/SemanticAnalysis.cpp
extra : rebase_source : 6f4a032e9d31a0cc549d501661e6c3f5c831f5a8
2011-10-27 16:59:48 -05:00
Nicholas Nethercote
5fde953dc7 Bug 697646 - Don't create tiny property tables. r=bhackett. 2011-10-27 17:58:44 -07:00
Jason Orendorff
22579e0c64 Bug 696220 - js1_8_5/extensions/reflect-parse.js is failing. r=luke.
--HG--
extra : rebase_source : b6452bd11b342921ac7667dfb2765bb213db9e23
2011-10-27 15:40:40 -05:00
Jim Blandy
2c8a234e0e Bug 695985: Provide CFI for the code address GDB checks when a return address points at JaegerThrowpoline's or JaegerInterpoline's entry point. r=sfink
Details in comments.
2011-10-27 13:14:22 -07:00
Bobby Holley
89ea734227 Bug 693341 - Test arrays of iid_is params. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
81c5f8dec4 Bug 693341 - Improve array and interface comparisons. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
27f9426f0d Bug 693341 - Test iid_is(). r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
cf9b21258c Bug 693341 - Test interface arrays. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
861e7fe821 Bug 693341 - Introduce a few test interfaces. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
111300afed Bug 693341 - Test sized strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
45a2065742 Bug 693341 - Test arrays of strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
4a037879ae Bug 693341 - Test arrays of arithmetic types. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
ce12690e72 Bug 693341 - Use comparators for everything in test_params.js. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
014266f77f Bug 695138 - Fix inout memory leak in XPConnect tests. r=khuey 2011-10-27 12:43:38 -07:00
Chris Jones
25e13ac102 Bug 669949, part 2: Implement jsreftest browser.js JSContext-munging on top of Components.utils helpers. r=bc 2011-10-27 12:24:38 -07:00
Chris Jones
fea7e5f4e7 Bug 669949, part 1: Add Components.utils interfaces for playing with callee JSContext params. r=mrbkap sr=jst 2011-10-27 12:24:38 -07:00
Brian Hackett
58bd66f22f Watch for imacros in ContextStack::currentScript, bug 697255. r=luke 2011-10-27 12:06:07 -07:00
Jason Orendorff
adbaa9db8c Rename PopStatementCG and NewScriptFromCG. Bug 696876, part 3 of 3. r=dvander.
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : de8a4aa72e70ecc321a987227ee88a1883400db9
2011-10-27 09:29:50 -05:00
Jason Orendorff
547fc501fd Convert CG_ macros to BytecodeEmitter methods. Bug 696876, part 2 of 3. r=dvander.
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : ae396c039122ab4c8e7f002778f003e24229cd47
2011-10-27 09:16:24 -05:00
Jason Orendorff
8d7655f42e Rename js::CodeGenerator to js::BytecodeEmitter. Bug 696876, part 1 of 3. r=dvander.
--HG--
rename : js/src/frontend/BytecodeGenerator.cpp => js/src/frontend/BytecodeEmitter.cpp
rename : js/src/frontend/BytecodeGenerator.h => js/src/frontend/BytecodeEmitter.h
extra : rebase_source : 2cc974e15cdf9e4dce36599b45914bab56825611
2011-10-27 09:15:40 -05:00
Jason Orendorff
e45abf9efb Bug 684489 - Fix a strict direct eval bug affecting Google Maps. r=Waldo.
--HG--
extra : rebase_source : 5e708cc26a923934a363f327696bcd2913038f21
2011-10-27 08:58:33 -05:00
Ed Morley
684211c150 Backout changeset 3b5b10d76887 (bug 678687) for V8/Dromaeo regressions on multiple platforms; a=mak 2011-10-27 16:11:26 +01:00
Brian Hackett
0e411337a4 Fix incorrect test in FindIdentifierBase, bug 694247. 2011-10-25 08:48:22 -07:00
Nicholas Nethercote
dbd773b4ff Bug 684800 - Measure slop in TI-related JS memory reporters. r=bhackett. 2011-11-01 21:59:43 -07:00
Ms2ger
227d64152e No bug - Fix OSX -Werror builds by initializing Chars::cx in the constructor; rs=Waldo over IRC 2011-11-01 22:46:48 +01:00
Brian Hackett
19d0d9a85e Back out b979f9d59e89 (bug 678687) for intermittent test_jQuery timeout. 2011-11-01 14:52:26 -07:00
Brian Hackett
7880fc1d8b Remove ARGCNT, ARGSUB opcodes, bug 698015. r=dvander 2011-11-01 09:01:04 -07:00
Brian Hackett
6b7b024d60 Try converting known doubles to integers in GETELEM/SETELEM paths, bug 678687. r=dvander 2011-11-01 08:43:40 -07:00
Brian Hackett
ffe7a84aa2 Add JSScript::function, bug 693754. 2011-10-21 14:31:01 -07:00
Leon Sha
6896f0c0d5 Bug 697014 - Javascript test case testTypedArrays.js failed on sparc with typed array and TI. Part II. r=bhackett1024. 2011-10-27 14:03:02 +08:00
Andrew Paprocki
9d73f3dc2a Bug 696957 - Add Sparc, POWER/PPC, IA64 big-endian detection to jscpucfg.h. r=ted.mielczarek. 2011-10-27 14:02:20 +08:00
Dave Herman
002b9719d0 Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff 2011-10-26 16:45:25 -07:00
Brian Hackett
43d69c2cf5 Try to coerce doubles to integers on tripped type barriers, bug 678687. r=dvander 2011-10-26 18:46:06 -07:00
Ed Morley
d303cbe72d Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange 2011-10-27 01:53:05 +01:00
Dave Herman
041d9a3791 Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff 2011-10-26 16:45:25 -07:00
Rasmus Jensen
9a4902d909 Bug 680858 - Setting the namespace of an existing attribute may cause it to duplicate another existing attribute (E4X spec bug). Remove the already-existing attribute before mutating the attribute's namespace to not introduce duplicate attributes. r=jwalden
--HG--
extra : rebase_source : c99c0efad1e78c5a63ed6e04beb0fdedbf3e4967
2011-10-26 15:35:32 -07:00
Doug Sherk
1c15893d0b Bug 656824: Implemented ARB_robustness to detect driver resets in WebGL, only on GLX for now - r=bjacob
This patch implements ARB_robustness on GLX and allows scripts to handle driver resets
through events. The changes in this patch are very sweeping; they hit almost
every NS_IMETHODIMP function within WebGLContextGL.cpp and WebGLContext.cpp.
More work must be done on this to support EGL_CONTEXT_LOST.
2011-10-26 16:00:44 -04:00
Marty Rosenberg
476203f5aa When using DoubleConditionBitSpecial, actually strip out the bits before emitting an instruction (bug 691073, r=dvander) 2011-10-26 12:35:41 -07:00
Boris Zbarsky
fd2696ae97 Bug 697244. Quickstub nsIDOMWindow.self. r=peterv 2011-10-26 15:34:22 -04:00
Stephan Herhut
4a5405546d Bug 697515 - WeakMap.set should return undefined, not itself. r=jorendorff.
--HG--
extra : rebase_source : 0e01d5899710f05bc1d8379eb1b98df5b40bade5
2011-10-26 14:25:20 -05:00
Andrew Paprocki
e026a31272 Bug 691001 part 2. AppendAttributeValue escapes values without creating transient StringBuffer and JSFlatString. r=brendan 2011-10-24 21:46:35 -04:00
Andrew Paprocki
0c540bf07c Bug 691001 part 1. Hoist property check out of tight loop / prevent unnecessary Namespace object creation. r=brendan 2011-10-24 21:45:17 -04:00
Boris Zbarsky
b079ce7195 Bug 697351. Implement has() on the nodelist proxy handler so that we don't have to do the property descriptor song and dance for it. r=peterv 2011-10-26 08:47:10 -04:00
Jan de Mooij
daf7178298 Bug 697076 - Fix some Clang warnings. r=luke 2011-10-26 11:50:40 +02:00
Jan de Mooij
97cb332545 Bug 696803 - Remove unused PushMarkStack function. r=billm 2011-10-26 11:48:36 +02:00
Leon Sha
2778392625 Bug 697014 - Javascript test case testTypedArrays.js failed on sparc with typed array and TI. r=bhackett1024. 2011-10-26 10:37:06 +08:00
Brian Hackett
b809dcc1b7 Fix failing test, bug 693754. 2011-10-20 14:56:24 -07:00
Brian Hackett
8a534f54eb Fix misuse of JSObject::getParent, bug 694247. 2011-10-20 10:09:36 -07:00
Brian Hackett
67f4c3499e Fix OPT build break. 2011-10-20 07:38:44 -07:00
Brian Hackett
45e7531bb4 Merge MC -> JM
--HG--
rename : js/src/jsparse.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/jsparse.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/jsemit.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/BytecodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/jsparse.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/jsparse.h => js/src/frontend/ParseNode.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
rename : js/src/xpconnect/src/xpcjsruntime.cpp => js/xpconnect/src/XPCJSRuntime.cpp
rename : js/src/xpconnect/src/xpcquickstubs.cpp => js/xpconnect/src/XPCQuickStubs.cpp
rename : js/src/xpconnect/src/nsXPConnect.cpp => js/xpconnect/src/nsXPConnect.cpp
2011-10-19 14:26:08 -07:00
Brian Hackett
4deff4dab5 Fix test failures. 2011-10-19 08:12:44 -07:00
Mike Hommey
bcde7f06a7 Bug 695989 - Properly pick changes to jemalloc/mozutils on Linux incremental builds. r=ted 2011-10-27 15:15:21 +02:00
Mike Hommey
2ccff223d9 Bug 692918 - Ignore .pyo files in config|js/src/config synchro. r=ted 2011-10-27 15:14:49 +02:00