Commit Graph

16835 Commits

Author SHA1 Message Date
Tom Schuster
f0db7825f6 Bug 430927 - Don't decompile to \0 as it was incorrectly interpreted as octal. r=waldo
--HG--
extra : rebase_source : 354646d3fd2a28fd5b538f988f3b51aa98925728
2011-11-03 21:58:06 +01:00
Tom Schuster
ad9cccd366 Bug 698584 - Fix crash in RegExp.test in case of OOM. r=mrbkap
--HG--
extra : rebase_source : 832a69bf6a5e3d8d5f4e334646850ad3207714a9
2011-11-03 21:57:32 +01:00
Boris Zbarsky
26bc193987 Bug 699705. When forwarding property gets to the proto for arrays, send along the right receiver even if the property lives on a non-native object. r=waldo 2011-11-04 12:26:03 -04:00
Boris Zbarsky
92b5d3f4fd Bug 699237. Add a getElementIfPresent on typed arrays. r=waldo 2011-11-04 12:25:52 -04:00
Boris Zbarsky
adfd17214b Bug 698495 part 5. Implement getElementIfPresent on nodelist proxies. r=peterv 2011-11-04 12:25:18 -04:00
Boris Zbarsky
f54589df3b Bug 698495 part 4. Implement a JS_GetElementIfPresent API. r=waldo 2011-11-04 12:19:13 -04:00
Boris Zbarsky
44a9bf053c Bug 698495 part 3. Expose IndexToId to API consumers. r=waldo 2011-11-04 12:19:07 -04:00
Boris Zbarsky
f00eb19bad Bug 698495 part 2. Add an optional getElementIfPresent ObjectOps hook. r=waldo 2011-11-04 12:19:00 -04:00
Boris Zbarsky
175077ac69 Bug 698495 part 1. Create a getElementIfPresent method on JSObject with a generic implementation and use it from JSArray code. r=waldo 2011-11-04 12:18:52 -04:00
Boris Zbarsky
7c9b5321a5 Bug 698551. When forwarding gets to the prototype in nodelists, make sure to use the right |this|. r=waldo,peterv 2011-11-04 12:18:38 -04:00
Boris Zbarsky
f0db867bef Bug 688685 test. r=waldo 2011-11-04 01:32:10 -04:00
Boris Zbarsky
94ed6889d1 Bug 699661. Call the class getElement hook from JSObject::getElement as needed. r=waldo 2011-11-04 01:32:09 -04:00
Makoto Kato
90ba915e12 Bug 632630 - Should add debug flag of assembler obj when MOZ_DEBUG_SYMBOLS. r=khuey 2011-11-04 11:59:47 +09:00
Matt Brubeck
2ca7e7f331 Back out a242f11d7c58 and f73841ef020a because of test failures 2011-11-03 15:23:10 -07:00
Brian Hackett
3f0afe07ad Watch for global mismatches on regexp literals when compiling regexp ops, bug 695896. r=cdleary 2011-11-03 14:40:49 -07:00
Tom Schuster
43c95644be Bug 430927 - Don't decompile to \0 as it was incorrectly interpreted as octal. r=waldo 2011-11-03 21:58:06 +01:00
Tom Schuster
aa3bb9941f Bug 698584 - Fix crash in RegExp.test in case of OOM. r=mrbkap 2011-11-03 21:57:32 +01:00
Neil Deakin
c1bb964ad6 Bug 94199, part 2, add method to serialize/deserialize js function, r=mwu 2011-11-03 16:39:08 -04:00
Brian Hackett
787043a54b Try converting known doubles to integers in GETELEM/SETELEM paths, bug 678687. r=dvander 2011-11-03 09:24:40 -07:00
Ben Turner
3e1f223457 Bug 692669 - 'IndexedDB: remove nsIVariant from IDB* interfaces'. r=sicking.
--HG--
extra : transplant_source : %84%E3%96%9F%C5%BA%D56%A4%94%83%9F%C3%F5%2B%01%7B%87%FB9
2011-11-03 08:57:30 -07:00
Nicholas Nethercote
a02c712d12 Bug 696284 - Add a comment explaining why we allocate BytecodeEmitter on the heap. r=jorendorff. DONTBUILD 2011-11-02 20:45:48 -07:00
Ed Morley
a77ac11344 Backout eb32aca6d54d, b5c0bfd03fcf and 5675bf2c7930 (bug 692669 and bug 692669) for failing to build on all platforms 2011-11-03 01:57:48 +00:00
Ben Turner
8eacae1c32 Bug 692669 - 'IndexedDB: remove nsIVariant from IDB* interfaces'. r=sicking.
--HG--
extra : transplant_source : E%E9%F9%B5%FB%88%1E%FA%C1%BE%04%1F%1E%3D%5E%EB%3C%D2%D2c
2011-11-02 18:03:15 -07:00
Jason Orendorff
8cbdba8eda Bug 694306 - Keywords should not be permitted in destructuring shorthand. r=Waldo. 2011-11-02 14:30:58 -05:00
Gabor Krizsanits
d554dc6115 Bug 677294 - need a way to create new JS scopes and run scripts against them (same compartment) 2011-11-02 10:20:00 -07:00
Nicholas Nethercote
006eaea440 Bug 684800 - Measure slop in TI-related JS memory reporters. r=bhackett. 2011-11-01 21:59:43 -07:00
Ms2ger
20e2c89cee 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
971df17161 Back out b979f9d59e89 (bug 678687) for intermittent test_jQuery timeout. 2011-11-01 14:52:26 -07:00
Brian Hackett
a960b32d4b Remove ARGCNT, ARGSUB opcodes, bug 698015. r=dvander 2011-11-01 09:01:04 -07:00
Brian Hackett
7ca6184810 Try converting known doubles to integers in GETELEM/SETELEM paths, bug 678687. r=dvander 2011-11-01 08:43:40 -07:00
Jacob Bramley
1aa5b45f28 Bug 643213: Fix signed integer arithmetic used to construct ARM load instructions. [r=mrosenberg] 2011-11-01 08:51:17 +00:00
Nicolas Pierron
08c8c84704 Add gc::Mark and gc::IsMarked functions. (Bug 687843, r=billm)
Use overloading to choose the Mark/IsMarked function based on the static type of
the argument.

---
2011-10-31 15:41:48 -07:00
Matt Brubeck
7561bada5b Merge mozilla-central to mozilla-inbound 2011-10-31 14:51:24 -07:00
Kyle Huey
a3b76fdc50 Merge b-s to m-c. 2011-10-31 14:13:23 -04:00
Kyle Huey
b14e30c312 Merge m-c to b-s. 2011-10-31 13:12:45 -04:00
Ed Morley
7275a8d455 Merge mozilla-central and mozilla-inbound 2011-10-30 11:52:20 +00:00
Brian Hackett
236e81968d Sync FrameState entries based on tracker, bug 698100. r=dvander 2011-10-29 18:16:35 -07:00
Brian Hackett
27eed80a06 Propagate OOM triggered by inlineCallHelper, bug 695290. r=dvander 2011-10-29 17:40:34 -07:00
Brian Hackett
eb11b40569 Remove defined variables analysis, bug 697861. r=dvander 2011-10-29 17:30:08 -07:00
Nicholas Nethercote
8d8eabc208 Bug 697933 - Allow HashTables to have a capacity as small as four. r=luke. 2011-10-30 16:12:48 -07:00
Ms2ger
731edba0b8 Bug 684821 - Remove nsIDOMNSHTMLElement; r=peterv 2011-10-29 22:03:55 +02:00
Matheus Kerschbaum
11c92bf7ac Bug 697666 - Don't build the jstracer by default. r=dmandelin 2011-10-30 15:33:44 +01:00
Jonas Sicking
ac8b04fb20 Bug 687400: Kill Node.isSameNode. r=smaug 2011-10-28 19:52:27 -07:00
Ted Mielczarek
1f0befd9a5 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
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