Commit Graph

56392 Commits

Author SHA1 Message Date
Eddy Bruel
a34f37a145 Bug 1278562 - Implement a C++ interface for DebuggerObject.promiseReason. r=jimb 2016-08-26 14:09:17 +02:00
Eddy Bruel
af094784e5 Bug 1278562 - Implement a C++ interface for DebuggerObject.promiseValue. r=jimb 2016-08-26 14:08:53 +02:00
Eddy Bruel
8c3262835f Bug 1278562 - Implement a C++ interface for DebuggerObject.promiseState. r=jimb 2016-08-26 14:08:33 +02:00
Eddy Bruel
1addb2460a Bug 1278562 - Make the isPromise getter infallible. r=jimb 2016-08-26 14:08:10 +02:00
Eddy Bruel
5ebc819f4f Bug 1278562 - Split promiseState into promiseState/Value/Reason. r=jimb 2016-08-26 14:07:46 +02:00
Eddy Bruel
6988bb7423 Bug 1278562 - Rename isPromise to getIsPromise. r=jimb 2016-08-26 10:33:14 +02:00
Eddy Bruel
38b90da8b4 Bug 1278562 - Rename scriptedProxyTarget/Handler to getScriptedProxyTarget/Handler. r=jimb 2016-08-26 10:32:30 +02:00
Tooru Fujisawa
ed75f228bc Bug 1294940 - Part 3: Add ConstUTF8CharsZ variant for UTF8CharsToNewTwoByteCharsZ and LossyUTF8CharsToNewTwoByteCharsZ. r=jwalden
--HG--
extra : rebase_source : 0e58c098e1b898b5e3d1e7216ae2384af072b5a7
2016-08-15 14:52:56 +09:00
Tooru Fujisawa
c12ce2fc48 Bug 1294940 - Part 2: Add validation for ConstUTF8CharsZ. r=jwalden
--HG--
extra : rebase_source : eb101f4fa5eacf839908d3f5f6729763dca78992
2016-08-13 23:03:30 +09:00
Tooru Fujisawa
fc1c230284 Bug 1294940 - Part 1: Add ConstUTF8CharsZ class for const UTF8 string. r=jwalden
--HG--
extra : rebase_source : 6f8b433038c1db36902aaeba1c7f5694bf5900a5
2016-08-15 14:52:56 +09:00
Tooru Fujisawa
a60af5b6e9 Bug 1294940 - Part 0.2: Make InflateUTF8StringHelper template function instead of passing count action function. r=jwalden
--HG--
extra : rebase_source : 1c951880961df07744e00ce61bd8141492bde020
2016-08-15 14:52:56 +09:00
Tooru Fujisawa
ad712d491e Bug 1294940 - Part 0.1: Capitalize template parameter "action" of InflateUTF8StringToBuffer. r=jwalden
--HG--
extra : rebase_source : b30dea0109cef5a03d36ff8179a13f835e63c6e3
2016-08-15 14:52:55 +09:00
Steve Fink
f67135bc5e Bug 1296878 - TraceLogger: report thread name when available, r=h4writer
--HG--
extra : rebase_source : f36d81f2a56f04a3d1fd0c03c3686ed03dbeaae8
extra : source : 05f3d17beffe1409c77122f32ffbff450d3b0cd1
2016-08-22 15:30:12 -07:00
Steve Fink
d11313e8cd Bug 1296878 - Implement js::ThisThread::GetName for limited set of platforms, r=fitzgen,glandium
--HG--
extra : rebase_source : 53c84abaf62a045894b502c9fb7b206766b45019
2016-08-22 16:07:53 -07:00
Steve Fink
69a5acf100 Bug 1296876 - TraceLogger: write files to $TLDIR, r=h4writer
--HG--
extra : rebase_source : aeecbca402b37b716f5fb0976a75d36aec9f4484
extra : source : 3fe209e9ca79cf9b93140b4906ca62ab5d7d59d6
2016-08-25 11:10:34 -07:00
Steve Fink
1d98c6b03f Bug 1296875 - Minor TraceLogger cleanups, comments, refactoring; r=h4writer
--HG--
extra : rebase_source : 71c1484374b8cf97a9991db85cbcb1ccbd01271b
extra : source : 8b45dd84cc086a76c197de13a81d8783dfd866c3
2016-08-18 13:10:07 -07:00
Phil Ringnalda
52892dd9cf Backed out changeset c1cf1e462ff9 (bug 1287967) for SM shell build bustage
CLOSED TREE

--HG--
extra : rebase_source : cd75d4d00f429ee9d5f5e97ef1f90616b0153855
2016-08-25 20:19:18 -07:00
Dimo
c8efba87ec Bug 1287967 - Baldr: Add current_memory and grow_memory (r=luke, sunfish) 2016-08-25 19:51:01 -07:00
Leo Gaspard
2df9fd1853 Bug 1297244 - Assert on the type given as a parameter to Heap. r=terrence
--HG--
extra : rebase_source : 2523f190a45bf3669f40392226df6a0b6fbc9806
2016-08-24 14:21:42 -07:00
Michael Smith
d12bd6f89d Bug 1297858: Check getPendingException status before clearing exception r=jandem
--HG--
extra : rebase_source : 7dd03ac437d254a51775d92498f11d7259bd9ad4
2016-08-24 15:16:55 -07:00
Michael Smith
c0d87090ab Bug 1296087: Improve getter cache r=nbp
--HG--
extra : rebase_source : f533477e09d0ecd6b3f3b9de74cd9728b92d633c
2016-08-17 13:53:08 -07:00
Wes Kocher
00bdbfd6e2 Backed out changeset bbd6bdd463b1 (bug 1296484) for asan leaks in XPCJSRuntime a=backout 2016-08-25 17:25:00 -07:00
Shu-yu Guo
c19214d4e7 Bug 1285213 - Fix runtime lexical errors with Debugger environments on the environment chain. (r=jimb)
Some background first. For names that must be looked up dynamically, TDZ
checks are built in to the various NAME ops. For an assignment |x = 42|,
we emit:

BINDNAME "x"
INT8 42
SETNAME "x"

where the order of operations is:

1) BINDNAME first looks up the env where "x" is bound,
2) The RHS is evaluated,
3) The resulting value is assigned to "x" in the env from step 1)

That is, spec requires it that 3) is what throws any TDZ violations,
meaning we must evaluate RHS first. However, the implementation of
SETNAME is ultimately a call into SetProperty. Slowing down SetProperty
calls with TDZ checks was a non-starter. What we do instead is that if
BINDNAME sees a TDZ poison value when looking up the environment,
instead of pushing the actual environment, it pushes a magical
LexicalRuntimeErrorObject, which throws TDZ errors if it's touched in
any way (sets, gets, has-own-property, etc).

The code that created the LexicalRuntimeErrorObject did not understand
how to unwrap DebugScopeObjects, thus it considered that
DebugScopeObjects could never generate TDZ errors, leading to this bug.
2016-08-25 15:59:13 -07:00
Terrence Cole
1432ea6638 Bug 1296484 - Automatically run a CC if COMPARTMENT_REVIVED GC ends mostly gray; r=jonco,r=mccr8
--HG--
extra : rebase_source : 26aa07342c0b286d772422401bd7d5dd4efbb2fa
2016-08-18 13:30:32 -07:00
Luke Wagner
ce850ee396 Bug 1283924 - Don't report error for failure to start async task during shutdown (r=till)
MozReview-Commit-ID: GmDoAxVe6Jl

--HG--
extra : rebase_source : fe08e031a3641cde20af97934882c2948875ec22
2016-08-25 10:26:41 -05:00
Luke Wagner
a6b437f810 Bug 1283924 - Store a UniquePtr in the PromiseTaskPtrVector (r=till)
MozReview-Commit-ID: 8qw64nxWrPu

--HG--
extra : rebase_source : 5a4de3bc5baf293ea78b574e89c53c061f229dc0
2016-08-25 10:26:34 -05:00
Wes Kocher
1465871242 Backed out 1 changesets (bug 1295034) for spidermonkey failures a=backout
Backed out changeset 024e7dc7a219 (bug 1295034)
2016-08-25 13:19:48 -07:00
Sumit Tiwari
0f1e872d3f Bug 1295034 - Assertion failure when sorting TypedArrays constructed under JIT; r=mrrrgn 2016-08-25 12:21:51 -07:00
Nathan Froyd
82b3f6d3c5 Bug 1297486 - mark xpc::NonVoidStringToJsval as an ordinary inline function instead of MOZ_ALWAYS_INLINE; r=bz
This change has a negligible impact on benchmarks, and saves a lot of
space (550K+ on x86-64 Linux).
2016-08-25 20:33:01 -04:00
Till Schneidereit
4855eb2784 Bug 1293285 - Ignore reentrant calls to the JS shell's drainJobQueue function. r=efaust 2016-08-25 16:39:40 +02:00
Emanuel Hoogeveen
8210833803 Bug 1294732 - Back out all of bug 1271165 as it has served its purpose. r=glandium 2016-08-23 08:45:00 -04:00
Jon Coppeard
9a8de4b899 Bug 1297667 - Add array buffer compartment checking assertions at the API level r=sfink 2016-08-25 12:00:56 +01:00
Jon Coppeard
a30843aba8 Bug 1297026 - Replace outdated references to 'compartment GC' with 'zone GC' r=terrence 2016-08-25 12:00:56 +01:00
Jon Coppeard
1977427503 Bug 1297343 - Make some more object classes background finalized r=sfink 2016-08-25 12:00:56 +01:00
Jon Coppeard
ed08c39923 Bug 1295967 - Update some comments now shapes are shared within a zone r=jandem 2016-08-25 12:00:55 +01:00
Shu-yu Guo
4d275cec0d Bug 1263355 - Fix Scope->zone() comparison to use zoneFromAnyThread to fix CLOSED TREE. 2016-08-25 02:51:50 -07:00
Shu-yu Guo
89a8081f72 Bug 1263355 - Fuzz tests. 2016-08-25 01:28:47 -07:00
Shu-yu Guo
03569f36dd Bug 1263355 - Report memory metrics for Scopes. (r=njn) 2016-08-25 01:28:47 -07:00
Shu-yu Guo
e2b6833e0a Bug 1263355 - Rewrite the frontend: bindings. (r=jorendorff,Waldo) 2016-08-25 01:28:47 -07:00
Nicholas Nethercote
c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Heiher
a2d3815921 Bug 1297581 - IonMonkey: MIPS64: Fix crash on running octane richards. r=jonco
---
 js/src/jit/mips64/MacroAssembler-mips64.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
2016-08-24 23:59:55 +08:00
Andi-Bogdan Postelnicu
366e6556f1 Bug 1282408 - add ignore initialization check flag for variables from ElemSegment. r=luke
MozReview-Commit-ID: 1jd0JbeVapq
2016-08-24 17:27:52 +03:00
Nick Fitzgerald
957dd2a412 Bug 1297404 - Remove the JS_CallOnce JSAPI function. r=terrence
--HG--
extra : rebase_source : 7f751d6a11887096fbe66ee9800b21c8c3b900bf
2016-08-23 11:25:00 -04:00
Andi-Bogdan Postelnicu
bc874a67d5 Bug 1282408 - add ignore initialization check flag for pod from FuncExport. r=luke
MozReview-Commit-ID: 71zQBOwH6tS
2016-08-24 17:05:03 +03:00
Jon Coppeard
12b04bb312 Bug 1293057 - Add compartment checking assertions to promise API r=till 2016-08-24 14:18:11 +01:00
Jon Coppeard
24b7080184 bug 1296016 - Store shell off thread compilation state in ShellContext r=jandem 2016-08-24 14:18:11 +01:00
Jon Coppeard
d1435a2a8c Bug 1296688 - Add JSCLASS_FOREGROUND_FINALIZE flag r=sfink r=smaug 2016-08-24 14:18:10 +01:00
Jon Coppeard
b62f84aa49 Bug 1288579 - Fix hang when GC is decommitting r=terrence
--HG--
extra : rebase_source : af726ecbebecd6c545c6e11342dee121e910b0f0
2016-08-24 10:13:58 +01:00
Terrence Cole
2d06bc1282 Bug 1297067 - Remove unused decommit threshold r=jonco
--HG--
extra : rebase_source : 83c4d2b86bdda4912c8213d60a8a3789c87e0c61
2016-08-22 15:01:40 -07:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00