Commit Graph

40972 Commits

Author SHA1 Message Date
Jon Coppeard
eea6ca3467 Bug 969798 - Convert JS_ConvertArguments APIs to take CallArgs rather than raw Value pointer r=terrence 2014-02-10 16:42:27 +00:00
Ryan VanderMeulen
546ade580e Backed out changeset 6ada8ee0e208 (bug 969375) for check_spidermonkey_style.py failures. 2014-02-10 11:09:18 -05:00
Branislav Rankov
d9e5daab34 Bug 969375 - MIPS port: Added Architecture-mips files. r=nbp 2014-02-10 11:13:06 +01:00
Nicolas B. Pierron
2aadd38210 Bug 962555 part 4 - Merge Headers and rename Slot to RValueAllocation. r=h4writer
--HG--
rename : js/src/jit/Slot.h => js/src/jit/Snapshots.h
rename : js/src/jsapi-tests/testJitSlot.cpp => js/src/jsapi-tests/testJitRValueAlloc.cpp
2014-02-10 06:21:46 -08:00
Nicolas B. Pierron
226cc7f3b7 Bug 962555 part 3 - Remove hasLocation & fromLocation from the SnapshotIterator. r=h4writer 2014-02-10 06:21:46 -08:00
Nicolas B. Pierron
65edb82582 Bug 962555 part 2 - Add multiple UNTYPED modes to prevent duplicating conditions. r=h4writer 2014-02-10 06:21:45 -08:00
Nicolas B. Pierron
019612019c Bug 962555 part 1 - Extract SnapshotReader::Slot. r=h4writer 2014-02-10 06:21:43 -08:00
Ryan VanderMeulen
8faecae69b Backed out changeset 0e7aa3047ec7 (bug 957542) for ggc crashes. 2014-02-10 09:09:42 -05:00
Ehsan Akhgari
096d1fad98 Bug 968642 - Port RCFILE and RESFILE to moz.build; r=gps 2014-02-10 09:03:53 -05:00
Ryan VanderMeulen
31e11e9386 Backed out changeset 2df850200c16 (bug 957542) for jit-test failures. 2014-02-10 08:59:35 -05:00
Douglas Crosher
14f7a18f09 Bug 965229 - ARM simulator: Scratch volatile registers across system ABI calls. r=nbp 2014-02-08 17:21:53 +11:00
Hannes Verschore
0c0dd9cba0 Bug 957542 - Set minimum slots of ArrayObject to 2 to fix GGC, r=jandem 2014-02-10 14:22:36 +01:00
Hannes Verschore
c35477464e Bug 957542 - Don't over-allocate dynamic slots of ArrayObject, r=bhackett 2014-02-10 12:33:27 +01:00
Jacek Caban
2b66317d80 Bug 956507 - mingw fixup. 2014-02-10 12:06:30 +01:00
Nicholas D. Matsakis
4e1a16a16c Bug 969159 -- Adjust assertion to account for zero-sized objects r=shu 2014-02-07 13:48:35 -05:00
Phil Ringnalda
b3e7169e0e Back out 8a36e37f46ed (bug 969159) for Valgrind bustage 2014-02-09 14:11:40 -08:00
Nicholas D. Matsakis
d1df66e05b Bug 969159 -- Adjust assertion to account for zero-sized objects r=shu 2014-02-07 13:48:35 -05:00
Jim Blandy
02e4ce0af0 Bug 969764: Properly carry the source's element attribute name through off-thread compilations. r=bhackett 2014-02-09 11:00:03 -08:00
Douglas Crosher
dc2a4545b4 Bug 965767 - Ionmonkey ARM: Correct the load-immediate-float32 instruction encoding. r=mjrosenb 2014-02-08 15:32:05 +11:00
Jon Coppeard
1b0eea1b45 Bug 967589 - Add OOM test for runtime creation and fix failures r=billm 2014-02-08 09:40:11 +00:00
Phil Ringnalda
df7c3c109f Back out ed6e04e6fc0c (bug 968642) for breaking Windows plugin tests
CLOSED TREE
2014-02-07 21:26:02 -08:00
Jim Blandy
501d9327f4 No bug: Remove "unsigned comparison" warning in ScriptSource::setIntroducedFilename. rs=waldo 2014-02-07 21:10:51 -08:00
Ehsan Akhgari
3d39780674 Bug 968642 - Port RCFILE and RESFILE to moz.build; r=gps 2014-02-07 23:22:31 -05:00
Shu-yu Guo
8ab0b01fd6 Bug 969709 - Fix race in ThreadPool::abortJob; fixes intermittent oranges on a CLOSED TREE. (r=nmatsakis) 2014-02-07 17:39:00 -08:00
Shu-yu Guo
78f55f7d0b Bug 967926 - Followup: unbust non-unified builds on a CLOSED TREE. (r=me) 2014-02-07 14:50:18 -08:00
Shu-yu Guo
9f16ffdddb Bug 941805 - Followup: unbreak non-threadsafe builds. (r=bhackett) 2014-02-07 14:40:32 -08:00
Shu-yu Guo
efb3e6b1ff Bug 949296 - Ignore DontStopIon interrupt triggers during ForkJoin. (r=nmatsakis) 2014-02-07 14:40:31 -08:00
Shu-yu Guo
6728ff0e19 Bug 958370 - Unify chunks and slices; self-host the scheduler's slice processing loop. (r=nmatsakis) 2014-02-07 14:40:29 -08:00
Shu-yu Guo
b339b1c3f9 Bug 967926 - Make hasUncompiledCallTarget_ Atomic to be extra careful. (r=jandem) 2014-02-07 14:10:02 -08:00
Shu-yu Guo
ebdea55efd Bug 967930 - Move AutoFlushCache instances in parallel ICs under lock. (r=efaust) 2014-02-07 14:10:01 -08:00
Terrence Cole
1716ba8f56 Bug 885954 - Add comments to barrier classes explaining our use of C++ move semantics; r=jimb 2014-02-07 10:03:21 -08:00
Emanuel Hoogeveen
c103d60ee0 Bug 969038 - Use the custom stack size for JS helper threads on Windows as well. r=bhackett 2014-02-07 16:17:06 -05:00
Jim Blandy
0cbb20a62c Bug 968575: Add unit tests for Debugger.Source.prototype.introductionType. r=djvj 2014-02-07 12:40:54 -08:00
Jim Blandy
0f605b207d Bug 968580: Use the term 'introductionType', as appearing in the Debugger API, throughout the code base. r=djvj 2014-02-07 12:36:03 -08:00
Terrence Cole
e02e6aeb19 Bug 968616 - Hide the explicitly unsafe things we do for testing from the hazard analysis; r=sfink 2014-02-07 10:03:13 -08:00
Felix S. Klock II
b2909d49d2 Bug 944975: regression test (r=shu).
Note that this test may only be interest on builds that have been
configured with --enable-more-determinstic; otherwise the toSource
method is not necessarily invoked when the |new| fails.
2014-02-07 17:56:45 +01:00
Felix S. Klock II
ff17d0edab Bug 944975: cleanup rename JSScript originalFunction to donorFunction (r=shu).
The motivation here is to distinguish the two kinds of methods: one
that assumes the receiver is a clone versus another that assumes
nothing about the receiver. I.e., something along the lines of:

  clone.originalFunction() == clone.donorFunction()
  nonclone.donorFunction() == null
  nonclone.originalFunction() == nonclone
2014-02-07 17:56:42 +01:00
Felix S. Klock II
2e24dda145 Bug 944975: fix bug by getting original fcn for callsite clone in New (r=shu). 2014-02-07 17:56:38 +01:00
Luke Wagner
d10272c495 Bug 969133 - OdinMonkey: fix leak in validation error message (r=bbouvier) 2014-02-07 10:25:16 -06:00
Jon Coppeard
1438060ab1 Bug 961091 - Don't compact full store buffers so often after GC has been triggered r=terrence 2014-02-07 11:21:44 +00:00
Jon Coppeard
fe4db66203 Bug 961091 - Add fewer store buffer entries when describing the stack r=terrence 2014-02-07 11:21:12 +00:00
Jon Coppeard
5ee446722f Bug 961091 - Perform GC if necessary on exit from engine and on interpreter allocation r=terrence 2014-02-07 11:20:38 +00:00
Douglas Crosher
b8837d8b4c Bug 965245 - ARM simulator: Add support for the VFPv3 instructions: vmov.f32 imm, and vcvt with fbits. r=nbp 2014-02-04 19:58:43 +11:00
Douglas Crosher
03bcde7e06 Bug 965240 - ARM simulator: Check that callee saved floating-point registers are preserved. r=nbp 2014-02-07 08:26:31 +11:00
Douglas Crosher
d1b25f0455 Bug 965236 - ARM simulator: Add support for the udiv instruction. r=nbp 2014-02-04 19:51:40 +11:00
Sean Stangl
5ff19cbe41 Bug 968524 - Add atomic_inc32(), atomic_dec32(), and atomic_cmpxchg32() to x86/x64. r=bbouvier 2014-02-06 14:57:26 -08:00
Dan Minor
bfebabe9e6 Bug 967467 - Jit-test basic\bug698584.js timesout on Windows XP test machines for debug builds; r=terrence 2014-02-06 12:37:12 -05:00
Douglas Crosher
b86074de5d Bug 966878 - ARM Simulator: Increase the bit length of the instruction counter to 64 bits. r=jandem 2014-02-06 09:49:43 +11:00
Nicholas Nethercote
25f58c3fd6 Bug 964238 (part 3) - Make js_NewString() return static strings when appropriate. r=terrence.
--HG--
extra : rebase_source : 47ce8ef1396b03ea6bdf3a1a0eed8e3bd6b5634c
2014-01-30 14:59:04 -08:00
Douglas Crosher
cde3aaa2d6 Bug 965242 - ARM simulator: Fix the decoding of the VCVT instructions fraction bits. r=nbp 2014-01-29 10:47:37 +11:00
Bobby Holley
42a2bddf68 Bug 966845 - Make ensureConstructor and initConstructor static. r=Waldo 2014-02-05 13:50:21 -08:00
Brian Hackett
34a0dacb10 Bug 941805 - Make the pool of JS workers be per process rather than per runtime, r=billm. 2014-02-05 11:40:35 -07:00
Bill McCloskey
55fab4d8d9 Bug 962604 - Add ActorDestroy handling to CPOWs (r=mrbkap) 2014-02-05 08:39:59 -08:00
Andy Wingo
22a7750ad4 Bug 967649 - Enable baseline compilation for with statements r=jandem 2014-02-05 15:22:13 +01:00
Andy Wingo
c0cbdba5a7 Bug 966912 - Allocate StaticWithObject into oldspace r=jandem 2014-02-05 15:14:41 +01:00
Jon Coppeard
dead793df6 Bug 967430 - Add --repeat option to jit-tests runner r=terrence 2014-02-05 14:10:52 +00:00
Jon Coppeard
0aec5ecde9 Bug 965745 - Always patch loop backedges in Ion if interrupt flag is set r=jandem 2014-02-05 14:09:41 +00:00
Andy Wingo
ba7766a4a4 Bug 966912 - Part 4: Entering a with statement doesn't push onto the stack r=luke
--HG--
extra : rebase_source : fe40b9c21298fc9f86b9542b70fb9cc34cf1e44d
2014-02-04 18:18:24 +01:00
Andy Wingo
e323e8ab4f Bug 966912 - Part 3: UnwindScope uses static scope chain, not stack depth r=luke
--HG--
extra : rebase_source : 52e408fe655aa201eff41d2010b6f8f3d4398c0d
2014-02-04 18:18:24 +01:00
Andy Wingo
8d6cafa768 Bug 966912 - Part 2: Add StaticWithObject to the static scope chain r=luke
--HG--
extra : rebase_source : c0ccbca2166c953dcac37e32aba9b30175399d25
2014-02-04 18:18:19 +01:00
Jan de Mooij
f42f6308a3 Bug 967474 - Fix TypeScript initialization to not race with compilation threads. r=bhackett
--HG--
extra : rebase_source : 28b5cc109a2656a3ea1c21dc398da08db90926c8
2014-02-05 12:03:35 +01:00
Jan de Mooij
3e1420d7c9 Bug 967457 - Fix a benign TSan data race in BytecodeTypes. r=bhackett
--HG--
extra : rebase_source : 5a5a4b1641611ee92aa3e948b3cb0805b9ca70fb
2014-02-05 11:34:15 +01:00
Jan de Mooij
0466a9d7d6 No bug - Fix ARM simulator opt builds. NPOTB so DONTBUILD. 2014-02-05 11:01:34 +01:00
Benjamin Bouvier
491fbb4542 Bug 878488: Implement asm.js Math constants; r=luke 2014-02-04 16:11:54 +01:00
Andrew McCreight
3cf44e3588 Bug 965920, part3b - Add mozilla namespace to StaticRefPtr on this CLOSED TREE. r=bustage 2014-02-04 20:09:26 -08:00
Andrew McCreight
ac7cc7ff07 Bug 966766, part 4 - Smart pointerize clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:59 -08:00
Andrew McCreight
b29822fe19 Bug 966766, part 3 - Rename clazz to clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
2340504f6a Bug 966766, part 2 - Move AddRef out of the ctor for XPCWrappedJSClass. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
6ba15d9164 Bug 966766, part 1 - Remove null check in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
eb84153daa Bug 966765 - Remove DumpHeap call in ReleaseXPConnectSingleton. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
266e5716aa Bug 965920, part 3 - Smart pointerize newVariant. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
291bf1fcf7 Bug 965920, part 2 - Smart pointerize gSharedScriptableHelperForJSIID. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
9bf248e147 Bug 965920, part 1 - Smart pointerize getters in XPConnect. r=bholley 2014-02-04 19:29:57 -08:00
Phil Ringnalda
381d88b901 Backed out 9 changesets (bug 965920, bug 966765, bug 966766)
CLOSED TREE

Backed out changeset 6c2bba06ed58 (bug 965920)
Backed out changeset e01c94498760 (bug 966766)
Backed out changeset e2585386f84e (bug 966766)
Backed out changeset d1db5d2a417f (bug 966766)
Backed out changeset f114c97660c6 (bug 966766)
Backed out changeset 2dd7d47a1e8c (bug 966765)
Backed out changeset 0f26c4b3eab7 (bug 965920)
Backed out changeset ca0b05e7155f (bug 965920)
Backed out changeset 55dcd2a5362e (bug 965920)
2014-02-04 21:01:19 -08:00
Andrew McCreight
22e6b16ac5 Bug 965920, part3b - Add mozilla namespace to StaticRefPtr on this CLOSED TREE. r=bustage 2014-02-04 20:09:26 -08:00
Nicholas D. Matsakis
2dc923d586 Bug 966575 (Part 1) -- Refactor so that Type Descriptors and Typed Datums make
use of the is<> and as<> methods, making typed object code much more typesafe.
r=sfink
2014-01-27 18:33:06 -05:00
Andrew McCreight
75840f794d Bug 966766, part 4 - Smart pointerize clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:59 -08:00
Andrew McCreight
10ea52f843 Bug 966766, part 3 - Rename clazz to clasp in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
4778ec4092 Bug 966766, part 2 - Move AddRef out of the ctor for XPCWrappedJSClass. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
10285cf6bc Bug 966766, part 1 - Remove null check in XPCWrappedJSClass::GetNewOrUsed. r=gabor 2014-02-04 19:29:58 -08:00
Andrew McCreight
15c38e8489 Bug 966765 - Remove DumpHeap call in ReleaseXPConnectSingleton. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
6f12ecdf92 Bug 965920, part 3 - Smart pointerize newVariant. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
b99f98d662 Bug 965920, part 2 - Smart pointerize gSharedScriptableHelperForJSIID. r=bholley 2014-02-04 19:29:58 -08:00
Andrew McCreight
d7e0183e9e Bug 965920, part 1 - Smart pointerize getters in XPConnect. r=bholley 2014-02-04 19:29:57 -08:00
Kannan Vijayan
2d0f2842b3 Bug 332176 - Change eval-ed scripts to have more descriptive filenames indicating the chain of evaluation, and give them absolute line numbers instead of the offset-from-lineno-of-eval-in-caller-script approach used currently. r=jimb 2014-02-04 16:23:20 -05:00
Nicholas D. Matsakis
dd309827d0 Bug 950458 - Emit type barrier for derived typed objects r=jandem 2014-01-30 23:52:25 -05:00
Benjamin Bouvier
09b21959a2 Backed out 2 changesets for linux x86 bustage on a CLOSED TREE (bug 966957)
Backed out changeset dfb2e4c12bc0 (bug 966957)
Backed out changeset d983a44ff5b8 (bug 966957)

--HG--
extra : rebase_source : 99605acf06a8c5a32b12213eb64f14e8cc679cae
2014-02-04 17:07:20 +01:00
Bobby Holley
a58a2ef3e5 Bug 959013 - Convert the Date object to use ClassSpec. r=luke 2014-02-04 07:51:54 -08:00
Bobby Holley
d5707a3515 Bug 959013 - Add a standardized initialization mechanism based on the ClassSpec. r=luke 2014-02-04 07:51:54 -08:00
Bobby Holley
0b3b15c234 Bug 959013 - Add a mechanism to map from JSProtoKey to js::Class*. r=luke 2014-02-04 07:51:54 -08:00
Bobby Holley
8bf2c8aa3b Bug 959013 - Create storage for declarative class bootstrapping information on js::Class. r=luke 2014-02-04 07:51:54 -08:00
Benjamin Bouvier
cc0bd78a91 Backed out changeset 5b3dd105258e for Windows build failures
--HG--
extra : rebase_source : 83cadf05aaff31283f52bca8e0c9b90b2d8c6cc0
2014-02-04 16:33:21 +01:00
Benjamin Bouvier
65734bc299 Bug 878488: Implement asm.js Math constants; r=luke 2014-02-04 16:11:54 +01:00
Andy Wingo
1ed386a14c Bug 967434 - Remove JS_HAS_DESTRUCTURING ifdefs r=jorendorff
--HG--
extra : rebase_source : 961f0b07a7d3ae0f2598a23eaf12269186b05294
2014-02-04 15:51:28 +01:00
Andy Wingo
eb8a975bb3 Backed out changeset d45ebc647b51 (missing r= line)
--HG--
extra : rebase_source : 8152fc0672e27c423494cb302eae8edd089e086f
2014-02-04 15:49:13 +01:00
Benjamin Bouvier
b01ba7ec3d Bug 966957: Concat Float32 too; r=h4writer 2014-02-04 15:50:17 +01:00
Benjamin Bouvier
a8554fd15e Bug 966957: Specialize ToString for Float32; r=h4writer 2014-02-04 15:48:05 +01:00
Andy Wingo
607f85cbf4 Bug 967434 - Remove JS_HAS_DESTRUCTURING ifdefs 2014-02-04 15:43:00 +01:00
Andy Wingo
811ddba8e5 Bug 966912 - Part 1: Rename blockChain to staticScope r=luke 2014-02-04 14:24:42 +01:00
Benjamin Bouvier
b2f56a0473 Bug 966926: Force ToString not to have Float32 inputs; r=h4writer
--HG--
extra : rebase_source : beef551756493a697923db13607f41a3680c1eb6
2014-02-03 18:22:40 +01:00
Dan Minor
ceeebb6a73 Bug 959155 - Jit-test basic\bug698584.js fails on Windows test machines; r=terrence 2014-02-03 08:50:19 -05:00
Dan Minor
68dda40a93 Bug 959158 - Jit-test tests\asm.js\testZOOB.js fails on Windows 8 test machines; r=luke 2014-02-03 09:16:11 -05:00
Jan de Mooij
1ed07a7179 Bug 967039 - Fix a bogus assert in DebugLeaveBlock. r=wingo 2014-02-04 11:57:20 +01:00
Nicholas Nethercote
91ad2e51cf Bug 964238 (part 2) - Remove AutoStringRooter, because it's no longer used. r=terrence.
--HG--
extra : rebase_source : 3d3253f2bc1a867679841d60e4b49c62b8f917c5
2014-01-30 14:59:18 -08:00
Nicholas Nethercote
8ad98d5f7b Bug 964238 (part 1) - Remove JSStableString and StableTwoByteChars. r=terrence.
--HG--
extra : rebase_source : 1859ce0b42661494fa13628551359a5a5d5663c0
2014-01-30 14:58:53 -08:00
Boris Zbarsky
3c296f449e Bug 966665. Don't DCE DOM method calls and getters that can throw exceptions. r=jandem 2014-02-03 11:04:06 -05:00
Ryan VanderMeulen
f98cef98c3 Backed out changesets 45840c6628d7 and acadb164dbc5 (bug 941805) for causing bug 966782. 2014-02-03 08:34:51 -05:00
Benjamin Peterson
7bc6472379 Bug 966695 - Fix signed/unsigned comparison warning. r=Waldo 2014-02-01 21:16:42 -05:00
Till Schneidereit
16ef03bc74 Bug 960513 - Ensure LazyScript has script set for non-lazy canonical functions. r=jandem
--HG--
extra : rebase_source : ae490f18cd2a78c2d7afecf9ee32f11c38ab3cda
2014-02-01 23:31:57 +01:00
Till Schneidereit
45c1196bc2 Bug 952870 - Treat -0 and 0 as the same key in Maps and Sets. r=jorendorff
--HG--
extra : rebase_source : c5fb6daf43530d67bfb60c24ac8ceecd2fa0b60d
2014-02-01 23:30:44 +01:00
Till Schneidereit
f8b6247976 Bug 958951 - Return IteratorResult object for completed generators instead of throwing. r=jorendorff
--HG--
extra : rebase_source : 8f9d5f592ac36713fe66a471c7213ac297d232cb
2014-02-01 23:20:14 +01:00
Andrew McCreight
49a90b2102 Bug 965994 - Add extra braces around subobject initialization to fix build warning. r=Waldo 2014-02-01 16:20:26 -05:00
Douglas Crosher
23cb1c3227 Bug 965762 - ARM Simulator: Support an environment variable and shell argument to drop into the debugger after a given number of instructions. r=jandem 2014-02-01 12:25:15 +11:00
Douglas Crosher
70328485a7 Bug 966570 - ARM Simulator: Avoid using the cmd pointer when it has not been set in the debugger. r=jandem 2014-02-01 12:21:27 +11:00
Douglas Crosher
00d485b338 Bug 857071 - Ionmonkey ARM: Support a HWCAP environment variable override. r=mjrosenb 2014-02-01 19:02:32 +11:00
Terrence Cole
0a7bc5b58b Bug 966040 - Allocate dynamic slots for createObject and createArray in the nursery in GGC; r=jonco 2014-01-31 11:43:44 -08:00
Terrence Cole
6faab639f2 Bug 966040 - Simplify and minimize the allocation path for non-objects; r=jonco 2014-01-31 11:43:43 -08:00
Jon Coppeard
4df3aa4450 Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Jan de Mooij
38a728ac63 Bug 966264 - Don't allocate new "[object Foo]" strings for the most common classes. r=njn 2014-02-01 13:13:41 +01:00
Eric Faust
225b0cbc1c Bug 924720 - Followup: Remove js::IsProxyClass(clasp), and use clasp->isProxy() instead. (r=jwalden) 2014-02-01 00:30:44 -08:00
Eric Faust
6635c05430 Bug 947487 - Part 2: Generate and use js::Class structs for DOM proxies. (r=bz) 2014-02-01 00:29:52 -08:00
Kyle Huey
d21c9ac055 Bug 961286 - Use move semantics for JSAutoStructuredCloneBuffer and wrappers. r=jorendorff, r=bent 2014-01-31 21:50:07 -05:00
Brian Hackett
6501e7c80a Bug 941805 - Unbreak non-threadsafe JS builds. 2014-01-31 19:43:40 -07:00
Brian Hackett
b6f3f5ff92 Bug 941805 - Make the pool of JS workers be per process rather than per runtime, r=billm. 2014-01-31 18:58:16 -07:00
Shu-yu Guo
40089fb9be Bug 966181 - Rename ForkJoinSlice to ForkJoinContext. (r=pnkfelix) 2014-01-31 14:57:57 -08:00
Bobby Holley
3fbba66dcb Bug 962449 - Make various getOrCreate methods static to efficiently fix hazards. r=Waldo 2014-01-31 14:51:42 -08:00
Bobby Holley
115e0eaa1a Bug 962449 - Don't call initIteratorClasses directly, and use ensureConstructor. r=luke
This isn't strictly necessary at this point. The basic issue is that there are
a few new classes (iterator stuff, intl stuff, and typed objects) that use this
kind of constructor bootstrap scheme, and each of them will need something like
this to move to ClassSpecs. But that doesn't actually need to happen until we
convert them. I wrote this patch before I realized this, and I believe it's
correct, so I figured I'd get it landed along with everything. But I'm also ok
to skip it for now.
2014-01-31 14:51:41 -08:00
Bobby Holley
1420779b91 Bug 962449 - Remove init functions from JSStdName, and pipe everything through ensureConstructor. r=luke 2014-01-31 14:51:41 -08:00
Bobby Holley
2bb0bbda3c Bug 962449 - Stop manually invoking initialization routines in GlobalObject.h. r=luke 2014-01-31 14:51:41 -08:00
Bobby Holley
7809eb3767 Bug 962449 - Don't directly invoke init functions in GlobalObject::initStandardClasses. r=luke 2014-01-31 14:51:41 -08:00
Niko Matsakis
a59aef36cb Bug 959334 - Invoking js_InitTypedObjectModuleObject or js_InitSIMDClass in GlobalObject::initStandardClasses causes mochitest-plain to fail. r=Waldo 2014-01-31 14:51:41 -08:00
Jeff Walden
013fc50cd5 Bug 924839 - Update our embedded ICU to 52.1, plus a very few local patches. r=lots of people, see subsequent lines in this commit message for the original subcomponents (merged together for landing), and the original bug for the original patch divisions
Bug 924839 - Remove a patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10283 but also note the relevant code was removed completely upstream.  r=glandium
* * *
Bug 924839 - Remove another patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10290 for that.  r=gaston
* * *
Bug 924839 - Remove another patch already in ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10045 for more.  r=Norbert
* * *
Bug 924839 - Remove another patch already applied upstream.  See http://bugs.icu-project.org/trac/changeset/32937 for more.  r=gaston
* * *
Bug 924839 - Update the ICU update script to update to 52.1, *without* applying any of our local patches.  r=glandium
* * *
Bug 924839 - Make the ICU update script only do updating within intl/icu/source and nowhere else.  r=glandium
* * *
Bug 924839 - Implement the changes that would be made by |cd intl/; ./update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-52-1/;|, run with the prior changesets' changes made (thus not applying any of our local patches).  These changes don't actually work without subsequent adjustments, but this provides a codebase upon which those adjustments can be made, for the purpose of generating local patches to be kept in intl/icu-patches/.  rs=the-usual-suspects
* * *
Bug 924839 - Update the bug 899722 local patch to make runConfigureICU not override CC/CXX on BSD systems.  r=gaston
* * *
Bug 924839 - Update the bug 724533 patch that makes ICU builds with MozillaBuild on Windows.  r=glandium
* * *
Bug 924839 - Import an upstream patch fixing the genrb tool to properly handle the -R (--omitCollationRules) option.  See http://bugs.icu-project.org/trac/ticket/10043 for the original bug report and a link to the ultimate upstream landing.  r=Norbert
* * *
Bug 924839 - Import the upstream fix for http://bugs.icu-project.org/trac/ticket/10486 so that ICU with -DU_USING_ICU_NAMESPACE=0 will compile on Windows.  r=Norbert
* * *
Bug 924839 - Adjust the update script to update ICU, then to apply all local patches (rather than skipping the second step).  Thus if the update script is properly run, now, the final result should be no changes at all to the tree.  NOT REVIEWED YET
* * *
Bug 924839 - Update jstests that depend on CLDR locale data to match CLDR 24.  r=Norbert
2013-11-12 16:23:48 -08:00
Carsten "Tomcat" Book
f4bc96a601 Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE 2014-01-31 12:11:23 +01:00
Jon Coppeard
50bf59a96c Bug 965904 - Fix some rooting hazards in the browser r=terrence 2014-01-31 09:56:40 +00:00
Jon Coppeard
ba27569312 Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz 2014-01-31 09:55:20 +00:00
Jon Coppeard
e0514d8124 Bug 950931 - Re-enable disbaled jit tests r=terrence 2014-01-31 09:55:12 +00:00
Hannes Verschore
dc7726f7a3 Bug 964229 - IonMonkey: Split StringPolicy and support all primitives to MToString, r=jandem,sstangl 2014-01-31 10:24:02 +01:00
Chris Peterson
f6f08af0a0 Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc 2014-01-29 20:40:34 -08:00
Nathan Froyd
7a2ec99350 Bug 946546 - copy JS strings directly into the destination compartment; r=billm 2014-01-27 17:24:35 -05:00
Wes Kocher
88ce51d5d1 Backed out changeset be0c71ad1f18 (bug 948227) under suspicion of turning mochitest-1 intermittently orange to hopefully fix a CLOSED TREE 2014-01-30 17:17:01 -08:00
Wes Kocher
6c799d0313 Backed out changeset 6e956de758ce (bug 924839) for xperf bustage on a CLOSED TREE 2014-01-30 16:57:49 -08:00
Jonathan Watt
ca1d07b8ea Bug 960505 - Make it easier for Mozilla code to include ICU headers. r=glandium 2014-01-15 23:45:45 +00:00
Jeff Walden
48e9df7dd1 Bug 924839 - Update our embedded ICU to 52.1, plus a very few local patches. r=lots of people, see subsequent lines in this commit message for the original subcomponents (merged together for landing), and the original bug for the original patch divisions
Bug 924839 - Remove a patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10283 but also note the relevant code was removed completely upstream.  r=glandium
* * *
Bug 924839 - Remove another patch already part of ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10290 for that.  r=gaston
* * *
Bug 924839 - Remove another patch already in ICU 52.1.  See http://bugs.icu-project.org/trac/ticket/10045 for more.  r=Norbert
* * *
Bug 924839 - Remove another patch already applied upstream.  See http://bugs.icu-project.org/trac/changeset/32937 for more.  r=gaston
* * *
Bug 924839 - Update the ICU update script to update to 52.1, *without* applying any of our local patches.  r=glandium
* * *
Bug 924839 - Make the ICU update script only do updating within intl/icu/source and nowhere else.  r=glandium
* * *
Bug 924839 - Implement the changes that would be made by |cd intl/; ./update-icu.sh http://source.icu-project.org/repos/icu/icu/tags/release-52-1/;|, run with the prior changesets' changes made (thus not applying any of our local patches).  These changes don't actually work without subsequent adjustments, but this provides a codebase upon which those adjustments can be made, for the purpose of generating local patches to be kept in intl/icu-patches/.  rs=the-usual-suspects
* * *
Bug 924839 - Update the bug 899722 local patch to make runConfigureICU not override CC/CXX on BSD systems.  r=gaston
* * *
Bug 924839 - Update the bug 724533 patch that makes ICU builds with MozillaBuild on Windows.  r=glandium
* * *
Bug 924839 - Import an upstream patch fixing the genrb tool to properly handle the -R (--omitCollationRules) option.  See http://bugs.icu-project.org/trac/ticket/10043 for the original bug report and a link to the ultimate upstream landing.  r=Norbert
* * *
Bug 924839 - Import the upstream fix for http://bugs.icu-project.org/trac/ticket/10486 so that ICU with -DU_USING_ICU_NAMESPACE=0 will compile on Windows.  r=Norbert
* * *
Bug 924839 - Adjust the update script to update ICU, then to apply all local patches (rather than skipping the second step).  Thus if the update script is properly run, now, the final result should be no changes at all to the tree.  NOT REVIEWED YET
* * *
Bug 924839 - Update jstests that depend on CLDR locale data to match CLDR 24.  r=Norbert

--HG--
extra : rebase_source : e993b6e4a507f92d1b1a24949185d00d1f6201f2
2013-11-12 16:23:48 -08:00
Jeff Walden
9b518290f2 Bug 948227 - Make the Object.prototype.__proto__ setter strongly warn against its use, for perf reasons (and suggest Object.create instead). r=efaust
--HG--
extra : rebase_source : ef0159fc67ddaab4c46ccfc5a918a37a26d19f87
2014-01-23 14:35:08 -08:00
Jeff Walden
96f3bc7269 Bug 948583 - Make __proto__ in object literals use JSObject::setProto, rather than depending on Object.prototype.__proto__. r=jorendorff, r=bholley, r=efaust
--HG--
extra : rebase_source : acd757234ac2838b8c1c9bec971b210499361019
2013-12-18 20:14:17 -05:00
Terrence Cole
9cea3e07cf Bug 963840 - Move MallocProvider out and add a comment about allocation in SpiderMonkey; r=jorendorff 2014-01-24 13:22:31 -08:00
Eric Faust
6e72a2f58a Bug 924720 - Followup: Add better comments to window convert stub change.(r=bholley over IRC)
DONTBUILD because comment-only.
2014-01-30 12:36:37 -08:00
Andrew McCreight
4eaf764db3 Bug 963192, part 4 - Smart pointerize nsXPConnect::mDefaultSecurityManager. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
6e75f07112 Bug 963192, part 3 - Smart pointerize XPCContext::mException. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
a38650dea3 Bug 963192, part 2 - Smart pointerize IID2ThisTranslatorMap. r=bholley 2014-01-30 11:20:42 -08:00
Andrew McCreight
6eb23bd2c8 Bug 963192, part 1 - Smart pointerize XPCWrappedJSClass::mInfo. r=bholley 2014-01-30 11:20:41 -08:00
Dan Minor
e98620e826 Bug 959164 - Jit-test basic\bug710947.js fails on Windows 8 test machines; r=terrence 2014-01-30 08:53:59 -05:00
Bobby Holley
c94db7536e Bug 872273 - Remove manual rooting from js_ReportUncaughtException. r=Waldo
This stuff is exactly rooted now, so this is all unnecessary.
2014-01-30 09:30:29 -08:00
Bobby Holley
ae4b881834 Bug 872273 - Don't ToString the exn if we already got a report out of it. r=Waldo
Note that we have to update a test that was previously expecting to hit the
bail-out case at the bottom of js_ReportUncaughtException.
2014-01-30 09:30:29 -08:00
Bobby Holley
f3bf0bcbef Bug 872273 - Generate a JSErrorReport when we need one. r=Waldo
This lets js_ReportUncaughtException get the report directly from the underlying
Error object, rather than trying to duck-type it (which fails for security
wrappers).
2014-01-30 09:30:29 -08:00
Bobby Holley
7166faea0a Bug 872273 - Remove non-cx variant of ErrorFromException, and make it take a HandleObject. r=Waldo
We're going to need to start doing more work in js_ErrorFromException, which
will require a |cx| and may GC.
2014-01-30 09:30:29 -08:00
Felix S. Klock II
c200f20793 Bug 961821: tests for jit-support for writes into TypedObject arrays (r=pnkfelix).
These iteration counts were selected to be close to the minimum number
necessary to expose bugs while working on this patch (see comments in
Bug 961821 for more details here).  Note that they are all 500
iterations (not 5000); please be wary of reducing the iteration count
further without first ensuring that the jit has time to compile this
code.
2014-01-30 17:47:14 +01:00
Felix S. Klock II
fba7012b6a Bug 961821: jit-support for writes into TypedObject arrays.
As part of above, alpha-renamed IonBuilder::setElemTryTyped to
IonBuilder::setElemTryTypedArray to keep clear the current distinction
between TypedObject and TypedArray.

Drive-by fix: Reference to Bug 894105 in comment had off-by-one typo.
Bug 961821: jit-support for writes into TypedObject arrays (r=nmatsakis).

As part of above, alpha-renamed IonBuilder::setElemTryTyped to
IonBuilder::setElemTryTypedArray to keep clear the current distinction
between TypedObject and TypedArray.

Drive-by fix: Reference to Bug 894105 in comment had off-by-one typo.
2014-01-28 04:33:00 +01:00
Douglas Crosher
f5388f98e7 Bug 965247 - ARM simulator: Support an environment variable and shell argument to enabling icache checks. r=jandem 2014-01-30 01:30:56 +11:00
Bobby Holley
331a1f6c7b Bug 959012 - Clean up and separate the semantics of js_{Get,Find}Class{Prototype,Object}. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
fd6a49474c Bug 959012 - Create separate js_GetClassPrototype and js_FindClassPrototype to mimic js_{Get,Find}ClassObject. r=jorendorff
The current behavior is crazy, and most definitely not Xray-safe.
2014-01-30 07:45:16 -08:00
Bobby Holley
8ce02091dd Bug 959012 - Move js_GetClassObject creation logic into GlobalObject. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
8b2a3c8d5b Bug 959012 - Remove unused cx parameter from JS_IdentifyClassPrototype. r=jorendorff 2014-01-30 07:45:16 -08:00
Bobby Holley
bf55a48710 Bug 959012 - When resolving iterator classes, use JSProto_Iterator instead of JSProto_GeneratorFunction. r=luke
The former triggers all of the appropriate initialization, whereas the latter
is 'imaginary' in jsprototypes.h, which means that the is no initialization
function associated with it.
2014-01-30 07:45:15 -08:00
Hannes Verschore
12f8e2be0b Bug 958158 - IonMonkey: Optimize do {} while(false), r=djvj 2014-01-30 14:59:24 +01:00
Andrea Marchesini
7c745b83df Bug 964293 - Implement Cu.cloneInto() method, r=bholley 2014-01-30 04:45:48 -08:00
Andy Wingo
b6b3cfcc16 Bug 965243 - Remove dead constructor of ScopeIter r=jorendorff
--HG--
extra : amend_source : e11741d6b1e4baeaa08df1e041df303055d68634
2014-01-30 11:07:57 +01:00
Boris Zbarsky
0ec24be88b Bug 965144. Make the Window-specific bits of XrayWrapper work with WebIDL windows. r=bholley 2014-01-29 22:34:25 -08:00
Boris Zbarsky
8f926f8c8b Bug 963895. Add threadsafe versions of AutoJSContext/AutoSafeJSContext. r=bholley 2014-01-29 22:33:03 -08:00
Jeff Walden
5015b6268d Bustage fix, bug 947014 followup. r=bustage in a CLOSED TREE 2014-01-29 17:57:36 -08:00
Eric Faust
232ac6947a Bug 947014 - Allow callers of Wrapper::New to specify a prototype. (r=bholley) 2014-01-29 17:20:16 -08:00
Eric Faust
e131d468b7 Bug 924720 - Part 8: Remove BaseProxyHandler::isOuterWindow(). (r=bholley) 2014-01-29 17:20:16 -08:00
Eric Faust
78eb6b8a3e Bug 924720 - Part 7: Move and rename OuterWindowProxyObject::class_. (r=bholley) 2014-01-29 17:20:16 -08:00
Eric Faust
3fe2a7a886 Bug 924720 - Part 6: Allow callers of Wrapper::New to specify a Proxy JSClass. (r=bholley) 2014-01-29 17:20:16 -08:00
Eric Faust
fc6584c144 Bug 924720 - Part 5: Allow callers of NewProxyObject() to specify a Proxy JSClass. (r=jwalden) 2014-01-29 17:20:16 -08:00
Eric Faust
b81801afd3 Bug 924720 - Part 4: Create new macros for easy Proxy JSClass creation. (r=jwalden) 2014-01-29 17:20:16 -08:00
Eric Faust
ed67979cd3 Bug 924720 - Part 3: Allow future Proxy JSClasses to safely have extra reserved slots. (r=billm) 2014-01-29 17:20:16 -08:00
Eric Faust
9c04c0d68a Bug 924720 - Part 2: Make OuterWindowProxy use the proxy HasInstance and Convert stubs. (r=bholley) 2014-01-29 17:20:15 -08:00
Eric Faust
31541d75aa Bug 924720 - Part 1: Implement IsProxy() using new JSClass flag. (r=jwalden) 2014-01-29 17:20:15 -08:00
Eric Faust
5790c2c1cd Bug 924720 - Part 0: Free up spare JSClass flags. (r=jwalden) 2014-01-29 17:20:15 -08:00
Jeff Walden
f843026137 Bug 963641 - Make TI work correctly with respect to JSOP_MUTATEPROTO. r=jandem
--HG--
extra : rebase_source : bdd48aeae22ea418569910d470c329a8fc1fa2bf
2014-01-28 10:38:44 -08:00
Jeff Walden
7690017277 Bug 963641 - Add a test for __proto__ in destructuring patterns as a shorthand. r=jorendorff
--HG--
extra : rebase_source : 9d9e5ede1195b7e879a8ca539c9af432c5f2b5d9
2014-01-28 10:38:29 -08:00
Jeff Walden
45c5e06002 Bug 963641 - Remove PNK_MUTATEPROTO, and just make JSOP_MUTATEPROTO be generated for the PNK_INITPROP+__proto__ combination. r=jorendorff
--HG--
extra : rebase_source : 8317d2a90d55a57fb654f72a57ca40575613072c
2014-01-24 19:54:53 -08:00
Jeff Walden
7636ef8c84 Bug 963641 - Tests for __proto__ in object literals with jsreflect and asm.js module export objects. r=jorendorff
--HG--
extra : rebase_source : cc570fcbc018618079843df2d07f87bbf30f18a7
2014-01-27 21:39:58 -08:00
Jeff Walden
357d670c46 Bug 963641 - Miscellaneous cleanups not implicated in actual bugs. r=jorendorff
--HG--
extra : rebase_source : a7969e756bc5456b6524fab8f602f61a7ed83a13
2014-01-27 16:33:03 -08:00
Terrence Cole
33accad77b Bug 962256 - Remove extraneous roots from some hot paths in Baseline; r=jonco 2014-01-27 16:51:57 -08:00
Terrence Cole
6dab4aa4c1 Bug 963738 - Fix some false positives in the Array analysis; r=jonco 2014-01-28 12:05:35 -08:00
Bobby Holley
b23fdb2143 Bug 965082 - Tests. r=mrbkap,r=gabor 2014-01-29 13:07:13 -08:00
Bobby Holley
4261137095 Bug 965082 - Only run the {get,set}PrototypeOf override for non-SecurityWrappers. r=mrbkap,r=gabor 2014-01-29 13:07:13 -08:00
Bobby Holley
6a1e0258a1 Bug 965082 - Unify duplicate bits of state of proxies. r=mrbkap,r=gabor
Conceptually, these all boil down to "is this a security wrapper?"
2014-01-29 13:07:13 -08:00
Benjamin Bouvier
f007a4d86c Bug 952306: Allow global const literals as variable initializers; r=luke 2014-01-29 14:27:01 +01:00
Benjamin Bouvier
ae6b76dca6 Bug 952306: Refactor Variable into Variable, ConstantImport and ConstantLiteral in Odin; r=luke 2014-01-29 14:27:00 +01:00
Sankha Narayan Guria
c17939b1d2 Bug 848512 - JSOP_DIV: int32 stub handles lhs == 0 case. r=jandem 2014-01-29 15:28:13 +05:30
Douglas Crosher
c51ad0f9a5 Bug 959597 - Odinmonkey (ARM): fix a commit conflict with bug 964005. r=jandem 2014-01-29 11:39:56 +11:00
Jan de Mooij
8be6ba80de Bug 959597 part 3 - Add ARM simulator for JIT code. r=nbp 2014-01-29 13:34:14 +01:00
Benjamin Bouvier
78204715aa Bug 942550: Take care of all particular cases in ecmaPow instead of js_math_pow; r=jandem 2014-01-29 12:12:03 +01:00
Ed Morley
271b7ece33 Merge mozilla-central and inbound 2014-01-29 10:39:41 +00:00
Ed Morley
65824f4564 Merge latest green b2g-inbound changeset and mozilla-central 2014-01-29 10:33:43 +00:00
Jon Coppeard
4bd291ee00 Bug 959787 - Handlify some JS friend APIs r=sfink 2014-01-29 10:01:33 +00:00
Jon Coppeard
d0ac1956cc Bug 959787 - Handlify some misc JS APIs r=sfink r=smaug 2014-01-29 10:00:40 +00:00