Commit Graph

16662 Commits

Author SHA1 Message Date
Marco Bonardo
c5f832692e Merge last green changeset from mozilla-inbound to mozilla-central 2011-10-21 10:00:11 +02: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
Jason Orendorff
ceb7eb3b77 Comment out busted assertions. See bug 695922. r=red. 2011-10-19 18:56:35 -05:00
Jason Orendorff
709bbe9a25 Follow-up for bug 695752. Fix "error: extra ';'" and "warning: empty macro arguments are undefined in ISO C90 and ISO C++98" (this broke maemo). r=red. 2011-10-19 18:36:19 -05:00
Nicholas Nethercote
7aacac1758 Bug 685783 - Take advantage of slop bytes in js::Vector. r=luke. 2011-10-19 16:19:06 -07:00
Jason Orendorff
0ef02eb199 Bug 695752 - Part 3 - class ParseNodeAllocator. r=luke.
--HG--
extra : rebase_source : 28452c60079a18e5c872317f4ab32e4216215fc9
2011-10-19 16:45:05 -05:00
Jason Orendorff
b90a714b55 Bug 695752 - Part 2 - Add Parser::new_ methods for creatinng parse nodes. r=luke.
--HG--
extra : rebase_source : 9978265f81e72929f55a78da55250a431c64c041
2011-10-19 16:44:18 -05:00
Jason Orendorff
30b9012a13 Bug 695752 - Part 1 - Give js::ParseNode a constructor. r=luke.
--HG--
extra : rebase_source : 562e58afb9f00d8f4ba73989a6a0e779d3d8000b
2011-10-19 16:43:21 -05:00
Jason Orendorff
a2522e62a9 Bug 695549 - Rename almost everything in the JS front end. Part 4, rename js::Compiler to js::BytecodeCompiler and fix up old comments referring to jsparse.c etc. r=luke.
--HG--
extra : rebase_source : f1f7d634b48e3cd2cdae15c02cbb1903151e49be
2011-10-19 09:51:04 -05:00
Jason Orendorff
bc453936f9 Bug 695549 - Rename almost everything in the JS front end. Part 3, rename tokenizer global functions and put them in the js namespace. r=luke.
--HG--
extra : rebase_source : f5f96588fc824cc4b2462b56872905deddee012b
2011-10-19 09:43:36 -05:00
Jason Orendorff
6aacc1383c Bug 695549 - Rename almost everything in the JS front end. Part 2, rename emitter global functions and put them in the js::frontend namespace. r=luke.
--HG--
extra : rebase_source : eac14a2379edf70c4e9df4045f432b4a15ed64f0
2011-10-19 09:42:06 -05:00
Jason Orendorff
cc7558237c Bug 695549 - Rename almost everything in the JS front end. Part 1, rename types and put them in the js namespace. r=luke.
--HG--
extra : rebase_source : 13efff29e9afb428f4a7658f0a0051f2e501dc15
2011-10-19 09:35:52 -05:00
Jeff Walden
1cd73e2f08 Bug 656059 - Initialize a bunch of variables which some versions of gcc (but not 4.6.1) think might be used uninitialized. Technically none need to be, but this code isn't hot, so no reason not to just initialize and move on. r=warnings 2011-10-19 14:28:14 -07:00
Jeff Walden
14dfea9c60 Bug 656059 - Ask for specific original prototypes in much of jstracer.cpp, not through a generic JSProtoKey-keyed interface. r=jorendorff
--HG--
extra : rebase_source : 9e6973a708ccbdd4785ef67fd6536c3f46c3dbb3
2011-05-10 14:56:49 -07:00
Jeff Walden
25eb75ff24 Bug 655907 - Start adding GlobalObject-specific methods to get Object.prototype, Function.prototype, and a few others, and use them where it's easy to do so. r=jorendorff
--HG--
extra : rebase_source : efa30ea3ba9cf3a90117f9b9119d140e516cbb62
2011-05-09 13:06:53 -07:00
Jeff Walden
9ca73a5a08 Bug 694210 - Fix regressions from bug 668024 landing: first a forgotten check for denseness exceeding 2**32 - 1, second for a performance regression from an optimization condition that doesn't hold often enough and bit kraken-stanford-crypto-sha256-iterative. r=bhackett
--HG--
extra : rebase_source : a349dc1fd236d96a67c807ce174b2742130d047d
2011-10-17 11:10:43 -07:00
Jeff Walden
9ca9fe0086 Bug 692333 - Split setProperty into property and generic forms, and use them throughout the engine. r=bhackett
--HG--
extra : rebase_source : 9239eb648466f929733428eb1a18bb0c0af51506
2011-10-05 17:16:25 -07:00
Jeff Walden
0ada627fa4 Bug 692039 - Split defineProperty into property and generic forms, and use them throughout the engine. r=bhackett
--HG--
extra : rebase_source : dce725d8771e2737f1a7059dc1698cc1b0814cd0
2011-10-05 01:00:23 -07:00
Jeff Walden
9d8833f545 Bug 691993 - Split deleteProperty into property and generic forms, and use them throughout the engine. r=bhackett
--HG--
extra : rebase_source : a69ce113bb0f1787b10f203912bc95d9b9026c49
2011-10-04 17:49:57 -07:00
Jeff Walden
e7437e5db9 Bug 691992 - Split getAttributes and setAttributes into property and generic forms, and use them throughout the engine. r=bhackett
--HG--
extra : rebase_source : ab383bf621c212424db6c0f358b6dd2c31443b68
2011-10-04 17:21:06 -07:00
Brian Hackett
73a6a54955 Fix bogus assert, bug 685472. r=dvander 2011-10-19 08:25:50 -07:00
Brian Hackett
7bedad19d8 Fix --disable-tracejit build. 2011-10-18 14:50:35 -07:00
Bill McCloskey
558e68e5ef Bug 695213 - Add total time to MOZ_GCTIMER output. 2011-10-18 14:03:51 -07:00
Bill McCloskey
074a4aac21 Bug 695493 - Fix JM opcode spew. 2011-10-18 14:03:40 -07:00
Jason Orendorff
2c0fe461ba Bug 695450 - Rename js/src/frontend/CodeGenerator.h to BytecodeGenerator.h to avoid conflict with IonMonkey. r=dvander.
--HG--
rename : js/src/frontend/CodeGenerator.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/frontend/CodeGenerator.h => js/src/frontend/BytecodeGenerator.h
2011-10-18 14:45:33 -05:00
Brian Hackett
2762d10152 Add Array.concat stub for concatenating known dense arrays, bug 692960. r=dvander 2011-10-18 11:24:28 -07:00
Brian Hackett
9393f3f433 Speed up Array.shift, and Array.{pop,shift} on empty arrays, bug 692847. r=dvander 2011-10-18 11:08:52 -07:00
Brian Hackett
a8989c224b Always initialize 'this' value of constructor frames when going through InvokeConstructorKernel, bug 688974. r=luke 2011-10-18 11:00:54 -07:00
Dave Herman
3fd52e982f Bug 695238 - Reflect.parse should throw when an object literal is missing a property RHS. r=jorendorff 2011-10-17 21:09:56 -07:00
Blake Kaplan
fcc6580746 Bug 665279 - Resolve interface constants properly through Xray wrappers. r=peterv 2011-09-21 19:16:50 -07:00
Jason Orendorff
22883838ca Fix breakage from rev 31b5cad155fb (bug 695097). r=red. 2011-10-17 17:47:37 -05:00
Jason Orendorff
9faab81d05 Bug 695097 - Split up frontend/Parser.{h,cpp}. r=luke.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/frontend/Parser.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/ParseNode.h
2011-10-17 16:54:30 -05:00
Jason Orendorff
1102691b89 Bug 695094 - Move js{scan,parse,emit}.{h,cpp} into js/src/frontend/. r=luke.
--HG--
rename : js/src/jsemit.cpp => js/src/frontend/CodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/CodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsscan.cpp => js/src/frontend/TokenStream.cpp
rename : js/src/jsscan.h => js/src/frontend/TokenStream.h
2011-10-17 16:54:28 -05:00
Jeff Walden
b0a6a72b75 Bug 693100 - Fix "warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]" with gcc 4.6.1 in SpiderMonkey. r=dvander
--HG--
extra : rebase_source : 92f3e6f79a27b3a83dec63d5c745c97453937889
2011-10-17 14:33:32 -07:00
Nathan Froyd
ab4cf36056 Bug 695025 - don't use false when we really mean NULL; r=luke
--HG--
extra : rebase_source : 6ea45cafa2dda181e1d8c43321a727a2b0bfd550
2011-10-17 12:38:08 -04:00
Brian Hackett
2db12b04ff Don't disable ICs on error paths, bug 694200. r=dvander 2011-10-17 14:23:40 -07:00
Brian Hackett
84f4720fa0 Bail out from compilation if an OOM was triggered during type inference, bug 693961. r=dvander 2011-10-17 14:18:23 -07:00
Chris Leary
0f159aabc9 Bug 694752: Test JSOP_REGEXP inline path on recompilation. (test only)
--HG--
extra : rebase_source : 16c8cbb20b028af184114c2dcdf288209f94755d
2011-10-15 20:57:08 -07:00
Andrew McCreight
0f5080a126 Bug 680482, part 2 - change debug string for grey globals to help analysis scripts. r=mrbkap 2011-10-20 09:26:49 -07:00
Andrew McCreight
070cdb9181 Bug 680482, part 1 - add new js::DumpHeapComplete to dump the entire heap. r=billm 2011-10-20 09:25:31 -07:00
Peter Van der Beken
86513cf220 Fix for bug 693258 (Fixes for test failures when turning off new list DOM bindings). r=bz/Waldo.
--HG--
extra : rebase_source : f0b6f8443cc29098ce75c114ff5a343597d9f38c
2011-10-13 15:36:09 +02:00
Matheus Kerschbaum
ae7960c546 Bug 694722 - Remove support code for obsolete platforms from js/src/Makefile.in r=ted 2011-10-20 09:57:36 +02:00
jhorak@redhat.com
27ea54ef2d Bug 694261 - link xpcshell against jemalloc on ia64. r=bz 2011-10-20 09:55:18 +02:00
Tom Schuster
4de4e82e9f Bug 694360 - Don't allow keywords with unicode escapes. r=jorendorff 2011-10-17 19:09:54 +02:00
Ehsan Akhgari
2a602a5685 Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Jeff Walden
8a2b96580e Bug 693469 - Use mozilla::ArrayLength and mozilla::ArrayEnd in preference to JS_ARRAY_LENGTH whenever possible. r=cjones
--HG--
extra : rebase_source : d89352e4f8c0e40853673d980d16d12dab04b44f
2011-10-10 23:00:28 -07:00
Jeff Walden
b7753477cf Bug 693469 - Implement mozilla::ArrayLength and mozilla::ArrayEnd, and replace uses of NS_ARRAY_LENGTH whenever possible. (Exceptions: assigning to static initializers, use in static assertions, as template parameters, etc. These will go away when the relevant compilers have C++11 constexpr support.) r=cjones
--HG--
extra : rebase_source : b4bae9a0f85abf2feb828609b50e756916b99a6f
2011-10-10 22:50:08 -07:00
Jeff Walden
723247dcd8 Bug 679509 - Make sure convert hooks in plugin code always return a primitive value. r=mrbkap, r=luke, r=jst
--HG--
extra : rebase_source : adf240c22329d3461a2c939d11798247a98b867f
2011-10-14 16:27:50 -07:00