Commit graph

1753 commits

Author SHA1 Message Date
Eric Faust
215779c22f Bug 1101905 - Part 7: Use CompileOptions to pass strictness in eval, rather than the invoking script. (r=Waldo) 2014-11-26 14:42:53 -08:00
Boris Zbarsky
dcb78a0257 Bug 1100579 part 2. Kill off JS_Evaluate(UC)Script. r=waldo 2014-11-18 23:27:16 -05:00
Boris Zbarsky
67d7197390 Bug 1100579 part 1. Remove the overloads of JS::Evaluate that don't take an rval mutable handle, and control the behavior via the JS::CompileOptions instead. r=waldo,bholley 2014-11-18 23:27:16 -05:00
Shu-yu Guo
8d09083020 Bug 1100320 - Don't call onExceptionUnwind and onPop debugger hooks on over-recursion. (r=jimb) 2014-11-18 16:42:02 -08:00
Boris Zbarsky
d76620aecc Bug 1095660 part 4. Add overloads of JS_ExecuteScript and JS::Evaluate that take an explicit scope chain argument. r=waldo 2014-11-12 17:04:29 -05:00
Boris Zbarsky
6f09de16d4 Bug 1095660 part 1. Remove the pointless JS_ExecuteScriptVersion API. r=waldo,bholley 2014-11-12 17:04:28 -05:00
Luke Wagner
176eac56f4 Bug 1087178 - OdinMonkey: explain why 'not stored in cache' (r=bbouvier,janv)
--HG--
extra : rebase_source : d37893913a09d5a5b339e4ae4ee42f873d449d1e
2014-10-22 17:28:07 -05:00
Luke Wagner
0bbf234774 Bug 1091916 - simplify the interrupt/jitStackLimit situation (r=bhackett)
--HG--
extra : rebase_source : 44ac5dbc77174414f4596aa7c318fdaa23b8e292
2014-10-30 17:35:35 -05:00
Ryan VanderMeulen
1533f5ace3 Backed out changeset 583284c299fb (bug 1091916) for causing intermittent "too much recursion" jit-test failures on Win32 and OSX 10.6.
CLOSED TREE
2014-11-11 14:53:11 -05:00
Luke Wagner
1b5e06a738 Bug 1091916 - simplify the interrupt/jitStackLimit situation (r=bhackett) 2014-10-30 17:35:35 -05:00
Tom Schuster
cc421a900c Bug 993026 - Simplify JS resolve hook. r=jorendorff 2014-11-08 01:07:12 +01:00
Steve Fink
dfb2f27cf1 Bug 1088249 - Report OOMs from the js_alloc*CanGC functions, r=luke
--HG--
extra : rebase_source : 47f348d2d448ee51fb6e1f6929fd6b35e14b1e60
2014-11-03 13:59:31 -08:00
Ryan VanderMeulen
776ece8f48 Backed out changeset 10616214c160 (bug 1091916) for Android x86 S4 permafail. 2014-10-31 18:58:42 -04:00
Luke Wagner
4934cbb089 Bug 1091916 - simplify the interrupt/jitStackLimit situation (r=bhackett)
--HG--
extra : rebase_source : 4acdf2009f9f490f636b29ab1c3eeb3de3a12f75
2014-10-30 17:35:35 -05:00
Boris Zbarsky
e80be7f15c Bug 1089026 part 5. Eliminate the ability to provide a non-global parent object to JS::CompileFunction and company except via the scopeChain API. r=waldo 2014-10-30 19:40:29 -04:00
Boris Zbarsky
5cdadade62 Bug 1089026 part 2. Refactor the CompileFunction code to allow cleanly separating whether we're passing in an object to define the function on or a scope chain. This change should not cause any behavior changes. r=shu 2014-10-30 19:40:28 -04:00
Boris Zbarsky
b78b66a6c7 Bug 1089026 part 1. Eliminate the "parent" argument to JS_CloneFunctionObject to make callers use the scopeChain version if they want something other than the global. r=shu,peterv 2014-10-30 19:40:28 -04:00
Boris Zbarsky
7156407be9 Bug 1088228 part 4. Add a version of JS_CloneFunctionObject that allows passing in a scope chain. r=shu 2014-10-30 17:40:15 -04:00
Wes Kocher
e0d9ddc182 Backed out 6 changesets (bug 1088228) for static analysis bustage
Backed out changeset 13ecff800114 (bug 1088228)
Backed out changeset de692c3335f2 (bug 1088228)
Backed out changeset 2d449a2b4e1c (bug 1088228)
Backed out changeset 49ac8f33ab70 (bug 1088228)
Backed out changeset 920d50e84a17 (bug 1088228)
Backed out changeset 55f4818378e4 (bug 1088228)
2014-10-30 16:24:02 -07:00
Boris Zbarsky
347688a3f0 Bug 1088228 part 4. Add a version of JS_CloneFunctionObject that allows passing in a scope chain. r=shu 2014-10-30 17:40:15 -04:00
Jason Orendorff
2cacf236ed Bug 918828, part 1 - Change iteration code to call iterable[Symbol.iterator]() rather than iterable["@@iterator"](). r=Waldo with earlier review work by nbp.
--HG--
extra : rebase_source : 5780eed342b1780570650d140c7f14f966b7f1e1
2014-07-01 21:01:21 -05:00
Boris Zbarsky
6ee4ab8789 Bug 1088002 part 2. Change JS_DefineElement, JS_DefineProperty, JS_DefineUCProperty, JS_DefinePropertyById, and JS_DefineProperties to default to using JSNative accessors, not JSPropertyOp accessors. r=waldo 2014-10-29 15:06:31 -04:00
Jeff Walden
58d479699e Bug 712939 - Replace a bunch more JS_STATIC_ASSERTs with static_assert. r=jandem 2014-10-26 20:23:15 -04:00
Boris Zbarsky
26dc2be07b Bug 1083648 part 2. Add JSAPI for compiling a function with a given scope chain (represented as a vector of JSObjects). r=shu 2014-10-25 00:50:28 -04:00
Boris Zbarsky
f6f2036023 Bug 1083648 part 1. Add a way to pass an enclosing static scope to CompileFunction. r=shu 2014-10-25 00:50:28 -04:00
Lars T Hansen
dd2a241361 Bug 979594 - Atomics object, atomic operations on SharedArrayBuffer (no jit support). r=luke 2014-10-23 14:23:16 +02:00
Jeff Walden
0855b78393 Bug 1052139 - Reorder the preventExtensions trap just after the [[Prototype]]-access traps. r=code-motion
--HG--
extra : rebase_source : ea85bf1daa26ec7a32caf2656ebf99c6e2757cfa
2014-10-21 11:40:04 -07:00
Jeff Walden
777c2ff26e Bug 1085566 - Make the preventExtensions hook return succeeded/failed rather than always indicate failure by reporting an error. r=efaust
--HG--
extra : rebase_source : 487b569d23ce18f39fc53697e5f25cc789885803
2014-10-19 01:18:43 -07:00
Carsten "Tomcat" Book
fcc0eb1e30 Backed out changeset 9e900e87b4bb (bug 1085566) 2014-10-22 08:59:09 +02:00
Carsten "Tomcat" Book
aca347b75c Backed out changeset 4eee647a5bd4 (bug 1052139) 2014-10-22 08:59:05 +02:00
Jeff Walden
b012538ad3 Bug 1052139 - Reorder the preventExtensions trap just after the [[Prototype]]-access traps. r=code-motion
--HG--
extra : rebase_source : 18f69552bad6922c1b602cbf81d6961883e4d5b8
2014-10-21 11:40:04 -07:00
Jeff Walden
1d2a7aa6cd Bug 1085566 - Make the preventExtensions hook return succeeded/failed rather than always indicate failure by reporting an error. r=efaust
--HG--
extra : rebase_source : 3b61c22efe8b5b2b3135b11556b6b329479d3dcd
2014-10-19 01:18:43 -07:00
Terrence Cole
671ac92f07 Bug 1063241 - Use a constructor instead of manual PodZero to initialize JSErrorReport; r=sfink
--HG--
extra : rebase_source : 7e1e35345b613da651abd0405daac6c823b3c65c
2014-10-20 10:13:03 -07:00
Jason Orendorff
8ec9f238d9 Bug 1082672, part 4 - Change XrayWrapper code to be able to resolve symbol-keyed methods. r=bz, r=bholley.
--HG--
extra : rebase_source : f78cbb83f63dfffd648c6d3c280273f4a61c9fe8
extra : amend_source : f006a096174eee166125430753e65e9a31bd930b
2014-09-18 12:30:38 -05:00
Jason Orendorff
07d717f6df Bug 1082672, part 1 - Add JSAPI macros JS_SYM_FN etc. to support defining functions with well-known symbol keys. r=Waldo.
--HG--
extra : rebase_source : 9791c940599844802c9a262fe8b1610a0de3ef40
2014-07-25 18:50:48 -05:00
Tom Schuster
b19fa39e01 Bug 1081660 - Remove property iterator from JSAPI. r=Waldo 2014-10-16 18:39:30 +02:00
Tom Schuster
e57363be0c Bug 1069694 - Remove OldDebugAPI from js/src. r=shu 2014-10-12 19:37:40 +02:00
Nicolas B. Pierron
206d7d6d49 Bug 1074911 - Replace JS_ASSERT by MOZ_ASSERT. r=jorendorff
Apply the following script

sed -i '
   /JS_ASSERT(/ {
     s/JS_ASSERT(/MOZ_ASSERT(/;
     :b;
     s/ \\$/\\/;
     /;/ { p; d; };
     n;
     s/^/ /;
     b b;
  };
  s/JS_ASSERT (/MOZ_ASSERT(/;
'

Except where the JS_ASSERT macro does not end with a semi-colon, where empty
lines are in the middle of the macro, and where the backslahes are always the
same-length after the expression.
2014-10-01 19:17:51 +02:00
Bobby Holley
b55f40845d Bug 1067009 - Const-correct a few jsapi methods. r=billm 2014-10-01 17:22:14 +02:00
Boris Zbarsky
9804f71306 Bug 1066432. Update ForOfIterator to the changes in Web IDL's handling of sequences as iterables. We now commit to an iterable if we get a non-undefined value for the Symbol.iterator property, not just if we get a callable value. r=jorendorff 2014-09-30 21:26:28 -04:00
Bobby Holley
a24c29adc9 Bug 1070131 - Switch originPrincipals to a mutedError flags. r=luke,r=bz
--HG--
rename : js/src/jsapi-tests/testOriginPrincipals.cpp => js/src/jsapi-tests/testMutedErrors.cpp
2014-09-29 10:44:30 +02:00
Bobby Holley
2a1c09c3d0 Bug 1070131 - Stop XDR-serializing origin principals. r=luke,r=bz 2014-09-29 10:44:30 +02:00
Bobby Holley
db168e5cde Bug 1065811 - Expose isCallable()/isConstructor() in JS_PUBLIC_API. r=billm 2014-09-25 13:13:28 +02:00
Jon Coppeard
132fb38dd4 Bug 650161 - Unify the finalization and moving GC callbacks into a weak pointer update callback r=terrence r=bholley 2014-09-24 12:54:11 +01:00
Tom Schuster
7782444d76 Bug 1069694 - Remove or move around functions in OldDebugAPI. r=shu 2014-09-23 15:25:31 +02:00
Jon Coppeard
c3469f6c0c Bug 1068697 - Add a compartment option to preserve JIT code in non-shrinking GCs r=terrence 2014-09-22 08:43:36 +01:00
Jon Coppeard
63feeb0f58 Bug 1063468 - Remove unnecessary use of address() r=sfink 2014-09-15 16:49:37 +01:00
Benjamin Bouvier
dd59d59062 Bug 1066020: Remove fields in JSConstScalarSpec and invert fields order; r=till 2014-09-15 15:13:08 +02:00
Benjamin Bouvier
4482068d51 Bug 1066020: Add JSConstIntegerSpec to jsapi; r=till 2014-09-15 15:13:05 +02:00
Terrence Cole
db73ecb350 Bug 1019611 - Expose the GC's max-pause statistic to chrome JS; r=sfink
--HG--
extra : rebase_source : 352622bb02cd2bd5347d17c05cfa20831431d641
2014-07-15 13:49:43 -07:00