Commit Graph

16886 Commits

Author SHA1 Message Date
Nicholas Nethercote
ee63d07e92 Bug 697016 - Add js-total-* memory reports. r=bhackett. 2011-10-27 22:20:36 -07:00
Nicholas Nethercote
3cd57ec496 Bug 697016 - Refine per-compartment JS reporters. r=bhackett. 2011-10-27 22:19:57 -07:00
Jason Orendorff
2740af3d17 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
1486a1a05f 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
2a7055f71e 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
9df9164977 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
12b4bc2093 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
dc27735198 Bug 697646 - Don't create tiny property tables. r=bhackett. 2011-10-27 17:58:44 -07:00
Jason Orendorff
5c62923bbd 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
4b1daeff70 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
f28c3b5733 Bug 693341 - Test arrays of iid_is params. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
2a7b499431 Bug 693341 - Improve array and interface comparisons. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
eb8f8822de Bug 693341 - Test iid_is(). r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
232928b5e3 Bug 693341 - Test interface arrays. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
b140fb446f Bug 693341 - Introduce a few test interfaces. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
2a43dc603c Bug 693341 - Test sized strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
870e878e2a Bug 693341 - Test arrays of strings. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
5731e74e86 Bug 693341 - Test arrays of arithmetic types. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
99e689efc2 Bug 693341 - Use comparators for everything in test_params.js. r=khuey 2011-10-27 12:43:38 -07:00
Bobby Holley
3bfbfd8a2e Bug 695138 - Fix inout memory leak in XPConnect tests. r=khuey 2011-10-27 12:43:38 -07:00
Chris Jones
8ea0a5c4fe 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
f850e9c3aa 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
ce5f244dd5 Watch for imacros in ContextStack::currentScript, bug 697255. r=luke 2011-10-27 12:06:07 -07:00
Jason Orendorff
13bf278d0f 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
b9c4c91103 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
94ba16b2c0 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
0ee17aec01 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
19b43ef359 Backout changeset 3b5b10d76887 (bug 678687) for V8/Dromaeo regressions on multiple platforms; a=mak 2011-10-27 16:11:26 +01:00
Mike Hommey
2db96543a3 Bug 695989 - Properly pick changes to jemalloc/mozutils on Linux incremental builds. r=ted 2011-10-27 15:15:21 +02:00
Mike Hommey
5c15ccafeb Bug 692918 - Ignore .pyo files in config|js/src/config synchro. r=ted 2011-10-27 15:14:49 +02:00
Mike Hommey
4a62f1045e Bug 686464 - Leave it to Android to unpack the content process executable. r=ted 2011-10-27 14:53:20 +02:00
Leon Sha
41e821d743 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
74e88cc52c 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
435f33242f Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff 2011-10-26 16:45:25 -07:00
Brian Hackett
b37cde22be Try to coerce doubles to integers on tripped type barriers, bug 678687. r=dvander 2011-10-26 18:46:06 -07:00
Ed Morley
64da4fd7f6 Backout changeset d5cc34a9351d (bug 696109) for jsreftest orange 2011-10-27 01:53:05 +01:00
Dave Herman
62eae0dec1 Bug 696109 - precedence bug in ASTSerializer::statement, r=jorendorff 2011-10-26 16:45:25 -07:00
Rasmus Jensen
b60cdaa715 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
63e6006511 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
e0cdccfbb9 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
23835e20a5 Bug 697244. Quickstub nsIDOMWindow.self. r=peterv 2011-10-26 15:34:22 -04:00
Stephan Herhut
a3f15c8871 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
fd6c3ae810 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
e8cf10d776 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
a328014b0f 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
08b0896ac2 Bug 697076 - Fix some Clang warnings. r=luke 2011-10-26 11:50:40 +02:00
Jan de Mooij
1d6e3ef66d Bug 696803 - Remove unused PushMarkStack function. r=billm 2011-10-26 11:48:36 +02:00
Leon Sha
a213c8bba0 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
Ted Mielczarek
2cd9d1bd75 bug 695685 - Make JS module/component dump go to stdout and flush. r=mrbkap 2011-10-19 10:01:24 -04:00
Ginn Chen
43ee03feec Bug 689916 Fix yarr crashes on SPARC r=dmandelin 2011-10-25 12:50:03 +08:00
Brian Hackett
35116a76ef Always discard methodjit code on GC, remove JM+TM integration, bug 685358. r=dvander 2011-10-24 20:46:00 -07:00
Matt Brubeck
4c00680be2 Merge mozilla-central to mozilla-inbound 2011-10-24 20:24:51 -07:00
Jeff Walden
a006f537e5 Bug 696941 - Privatize Token::u::dval. r=cdleary 2011-10-24 19:24:06 -07:00
Jeff Walden
711171807d Bug 696941 - Make Token::u::reflags private and hidden behind accessors. r=cdleary 2011-10-24 19:22:27 -07:00
Terrence Cole
0f6497a4d8 Bug 690204 - Migrate jsarray.cpp to CallArgs; r=waldo
Except for array_splice and array_concat which have other
work outstanding.
2011-10-25 02:02:36 +01:00
Jesse Ruderman
d2371a1d0e Bug 675553 followup: remove tautologous assertions. r=ehsan 2011-10-24 16:21:09 -07:00
Brendan Eich
2b72a53735 Make test for bug 695577 shell-only pending investigation. 2011-10-24 00:27:48 -07:00
Brendan Eich
28be4a7344 Ban E4X in ES5 strict mode (bug 695577, r=luke). 2011-10-23 22:42:29 -07:00
Brian Hackett
0d02665637 Don't inline scripts which native and getter IC stubs have been generated for, bug 683804. r=dvander 2011-10-22 07:35:04 -07:00
Tom Schuster
5affe6b9bf Small style fixes no bu r=lumpy 2011-10-22 16:30:28 +02:00
Brian Hackett
18fe4519ee Get more precise known type tag for type sets containing any object, bug 685472. r=dvander 2011-10-22 07:20:56 -07:00
Marco Bonardo
5a3249e076 Backout cb50e96dbee0 (Bug 677079) for Win PGO mochitests failures. 2011-10-22 11:03:26 +02:00
Bill McCloskey
222d42bf92 Bug 677079 - Remove jscntxt.h from INSTALLED_HEADERS (r=Waldo) 2011-10-20 10:14:24 -07:00
Jim Blandy
483651d34c Bug 696261: Correct references to 'tempPool' in comments; it's now 'tempLifoAlloc'. r=cdleary 2011-10-21 16:53:30 -07:00
Luke Wagner
1cdb3c6467 Bug 696108 - hoist EmitFor, EmitForIn, EmitNormalFor out of EmitTree (r=jorendorff)
--HG--
extra : rebase_source : bec844e4a62f0492c33d3447fb31ca460768c62a
2011-10-20 08:27:25 -07:00
Mitchell Field
149f79153c Bug 593768 - Remove --enable-cpp-exceptions configure option; r=ted 2011-10-21 18:56:25 +01:00
Marco Bonardo
52f20d29d1 Merge mozilla-central to mozilla-inbound 2011-10-21 10:02:30 +02:00
Marco Bonardo
c5f832692e Merge last green changeset from mozilla-inbound to mozilla-central 2011-10-21 10:00:11 +02:00
Nicholas Nethercote
d263993569 Bug 695756 - add missing files to 986f31890872. r=red. 2011-10-20 23:11:34 -07:00
Terrence Cole
a268a94b9a Bug 695756 - Implement js::BooleanObject. r=nnethercote. 2011-10-20 22:47:30 -07:00
Terrence Cole
8f6bde32c9 Bug 696211 - Align ChunkInfo by inserting padding in Chunk; r=billm
We get a 2% speedup on EarlyBoyer if ChunkInfo (hot all over the
GC allocator paths) is not split across a cache line.  An easy
and guaranteed effective way to do this is to just pad Chunk out
to the full 1MiB allocation.  This makes ChunkInfo abut the end
of the 1MiB allocation, rather than whereever the Arenas and
ChunkBitmap happen to end.  Since GC Chunks are aligned at 1MiB
address boundaries, this ensures that ChunkInfo is inside of a
cache line.
2011-10-20 17:42:39 -07:00
Nicholas Nethercote
fa675c2f52 Back out 56ec5e954858 (from bug 685783) due to a Dromaeo regression. 2011-10-20 15:47:39 -07:00
Kyle Huey
72ac2e4c02 Bug 687361: Implement the new IndexedDB setVersion API. r=bent
--HG--
rename : dom/indexedDB/nsIIDBVersionChangeRequest.idl => dom/indexedDB/nsIIDBOpenDBRequest.idl
2011-10-20 12:10:56 -04:00
Jeff Muizelaar
30e3f5a366 Bug 695422. js: Return NULL instead of false. r=luke
Caught with clang

--HG--
extra : rebase_source : dbb9c4ffc8e38f30b467ee38d1923f0645ea8b2e
2011-10-18 15:20:02 -04:00
Jeff Walden
8a84ed2439 Bug 699691 - Remove an unused argument from ino2name in pathsub.{c,h}. r=ted 2011-11-04 18:36:40 -07:00
Jeff Walden
2083d65f42 Remove js::tl::ArraySize and js::tl::ArrayEnd. They're unused, and mozilla::ArrayLength and mozilla::ArrayEnd supersede them regardless. No bug, r=lumpy 2011-11-04 01:37:53 -07:00
Jeff Walden
781a43526c Bug 700498 - Change StringBuffer::append to take a JSLinearString*, not a JSAtom*. r=cdleary 2011-11-07 16:28:37 -08:00
Chris Leary
c3ed758f26 Bug 634654 - Add RegExpPrivate cache. (r=Waldo) 2011-11-07 13:42:31 -08:00
Dave Mandelin
3a3c5caace Bug 679986: Deoptimize unnecessary regexps. (r=cdleary)
--HG--
extra : rebase_source : 63f2d3865ea362fd2071751edce00737ab83ae26
2011-11-07 11:42:02 -08:00
Luke Wagner
e7180dc786 Bug 696813 - Hoist function out of Decompile JSOP_POPV case for later reuse (r=jorendorff)
--HG--
extra : rebase_source : 49b7adbbaf2e9d3fbf2f4756cefdc659109488d3
2011-11-07 11:46:26 -08:00
Luke Wagner
b93fb2c304 Bug 696813 - Hoist two functions out of Decompile JSOP_ENTERBLOCK case for later reuse (r=jorendorff)
--HG--
extra : rebase_source : f9c0a19d1926efc7cc89ff64fa0eca3e73775830
2011-11-07 11:46:26 -08:00
Luke Wagner
04b64ac7ef Bug 696813 - Simplify Decompile (r=waldo)
--HG--
extra : rebase_source : 452ffc58a6dc2f9d152fe6cbc2a1206fd3db0e27
2011-11-07 11:46:25 -08:00
Luke Wagner
ea85e35e23 Bug 696813 - Remove dead Decompile parameter (r=waldo)
--HG--
extra : rebase_source : a97c2551cae6de7a1c5b345ce5b7ceee26868cff
2011-11-07 11:46:25 -08:00
Luke Wagner
81d9e6c903 Bug 696813 - Simplify several bytecode generator Emit* functions (r=jorendorff)
--HG--
extra : rebase_source : 2d85e4add09a9a99071755151ab8691299fc8c05
2011-10-24 11:15:34 -07:00
Luke Wagner
24dd17b1c9 Bug 696813 - Simplify Parser::forStatement (r=jorendorff)
--HG--
extra : rebase_source : 9e5d9eebffee46d35a55e869a45b8ec5db5877e6
2011-10-21 10:54:33 -07:00
Terrence Cole
19029087ac Bug 692547 - Split up array_extra; r=Waldo
Using array_extra as a common implementation method does not shave off many
bytes of code and makes understanding all of the functions it implements very
difficult.  This patch splits this mess up and makes these methods follow
ECMA steps.

--HG--
extra : rebase_source : e31647801e4c54414534bc5770cabfa463c7d149
2011-11-04 15:56:40 -07:00
Igor Bukanov
853a0397dc bug 684529 - remove script object. r=jorendorff 2011-09-22 12:08:55 +02:00
Marco Castelluccio
73d60b0ec8 Bug 642957 - Remove obsolete x|0 and x << 0 optimization. r=jandem 2011-10-24 19:11:15 +02:00
Mike Hommey
63ef0b31ba Fixup for bug 694499 for pa-risc. r=ted 2011-10-24 18:13:53 +02:00
Bill McCloskey
7f7d76b20f Bug 641027 - Add snapshot-based verifier for JS write barriers (r=luke) 2011-08-05 10:25:23 -07:00
Bill McCloskey
5ef98ce429 Bug 641027 - Add snapshot-at-the-beginning write barriers for incremental GC (r=luke,bhackett) 2011-10-25 16:07:42 -07:00
Jason Orendorff
2bfa9ef018 Report an error when trying to watch an E4X property with a qualified name, rather than set a watchpoint that will not hit reliably. Bug 691746, r=jimb. 2011-10-24 10:51:52 -05:00
Jason Orendorff
70c8e3e809 Bug 695907 - Use qualified C++ definitions in js/src/frontend instead of wrapping whole .cpp files in namespace js {...}. r=luke.
--HG--
extra : rebase_source : 8fca165f696344e6e269cee06871d87259386172
2011-10-19 16:45:12 -05:00
Ted Mielczarek
784b5ab386 bug 694499 - get rid of jscpucfg binary. r=jimb 2011-10-19 10:01:24 -04:00
Nicholas Nethercote
87638f34f3 Bug 697931 - Remove KidHashes when possible. r=luke. 2011-10-27 23:06:17 -07:00
Chris Leary
72a7212280 Bug 700822: Randomize JIT VirtualAlloc location on win32. (r=dmandelin) 2011-07-18 20:39:13 -07:00
Chris Leary
41bc510b10 Bug 700822: Add javascript.options.jit_hardening pref, default enabled. (r=dmandelin) 2011-11-08 13:28:49 -08:00
Jan de Mooij
ce234d64bb Bug 686381 - JSOP_AND/JSOP_OR should always leave the value on the stack. r=dvander 2011-11-09 17:43:46 +01:00
Jan de Mooij
0c9c517ff5 Bug 684384 - Add JSOP_LABEL opcode for IonMonkey. r=dvander 2011-11-09 17:42:27 +01:00
Peter Van der Beken
1776ef0e69 Bug 700668 - Don't enumerate all compartments for every traversal of a XPCWrappedNative. r=mrbkap. 2011-11-08 18:06:40 +01:00