Commit Graph

39038 Commits

Author SHA1 Message Date
Steve Fink
a1a2c0a9dc Bug 1120655 - Bustage fix for single-arg constructor on a CLOSED TREE 2015-03-19 22:03:15 -07:00
Boris Zbarsky
6e426da9c4 Bug 1145282. Reverse the sense of IsValidTerminatingScope and rename it to IsSyntacticScope. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
457c7466d5 Bug 1145294. Remove the obj argument from JS::CloneAndExecuteScript. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
9019492a10 Bug 1144802 part 8. Drop the scopechain member from GlobalSharedContext, since it's not needed anymore. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
3262699e31 Bug 1144802 part 7. Remove the scopechain walk in the FunctionBox constructor, since consumers should now set hasPollutedGlobalScope as needed. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
d6d342aa24 Bug 1144802 part 6. Remove the scopechain walk in BytecodeEmitter::needsImplicitThis, since consumers should now set hasPollutedGlobalScope as needed. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
59bf2e03c3 Bug 1144802 part 5. Flag eval scripts as having a polluted scopechain when inside a with scope. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
36f4c22c40 Bug 1144802 part 4. Stop returning true from ByteCodeEmitter::needsImplicitThis based on the compileAndGo flag. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
9c20b629b0 Bug 1144802 part 3. Output JSOP_GIMPLICITTHIS whenever we have a JSOP_GETNAME in call context and don't know for a fact that we need an implicit this. r=luke 2015-03-20 00:34:08 -04:00
Boris Zbarsky
bf77212af0 Bug 1144802 part 2. Add JIT and interpreter fast paths for JSOP_GIMPLICITTHIS when the script doesn't have a polluted scope. r=jandem 2015-03-20 00:34:08 -04:00
Boris Zbarsky
09018e7a88 Bug 1144802 part 1. Add a JSOP_GIMPLICITTHIS which acts like JSOP_IMPLICITTHIS when the script hasPollutedGlobalScope and JSOP_UNDEFINED otherwise. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
2ec53394e1 Bug 1144743 part 6. Set the hasPollutedGlobalScope flag correctly when executing scripts. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
06f281bdd1 Bug 1144743 part 5. Set the hasPollutedGlobalScope flag correctly when cloning functions. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
90a117442a Bug 1144743 part 4. Set the hasPollutedGlobalScope flag correctly when compiling functions. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
985513ef44 Bug 1144743 part 3. Set hasPollutedGlobalScope when we're compiling scripts we know will be executed with a non-global scope without cloning them. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
7cc43054ad Bug 1144743 part 2. Add an option to JS::CompileOptions for hasPollutedGlobalScope. r=luke 2015-03-20 00:34:07 -04:00
Boris Zbarsky
fe3dc858f9 Bug 1144743 part 1. Add a hasPollutedGlobalScope flag to scripts. r=luke 2015-03-20 00:34:07 -04:00
Steve Fink
ce4450564c Bug 1120655 - Suppress zone/compartment collection while iterating, r=terrence 2015-03-17 09:26:03 -07:00
Steve Fink
728cd7d83b Bug 1120655 - Rename lastGC -> destroyingRuntime, r=terrence 2015-03-16 16:23:38 -07:00
Steve Fink
8b856d820c Bug 1145255. r=luke, a=dveditz 2015-03-19 15:46:24 -07:00
Ryan VanderMeulen
b5cebd766a Backed out changeset b79cddbe7de8 (bug 1142669) for causing bug 1112947 to spike. 2015-03-19 13:31:14 -04:00
Terrence Cole
d9aa475dc5 Bug 1144920 - Move gray buffer clearing out of GCMarker; r=jonco 2015-03-19 08:51:12 -07:00
Terrence Cole
b2f8da5c1c Bug 1144834 - Move resetBufferedGrayRoots to GCRuntime; r=jonco 2015-03-19 08:50:52 -07:00
Terrence Cole
80940bc41f Bug 1144832 - Move grayBufferState manipulation out of GCMarker; r=jonco 2015-03-19 08:50:32 -07:00
Terrence Cole
7cc399fb52 Bug 1144817 - Move hasBufferedGrayRoots to GCRuntime; r=jonco 2015-03-18 11:17:03 -07:00
Terrence Cole
bbe06b7a1c Bug 1144811 - Inline the start and end buffering gray roots methods on GCMarker; r=jonco 2015-03-18 11:11:57 -07:00
Tom Schuster
308ff4d0ec Bug 837630 - Stop hiding __proto__ from O.getOwnPropertyNames. r=Waldo,peterv,past 2015-03-19 17:42:15 +01:00
Boris Zbarsky
0202d1a774 Bug 1143793 part 6. Drop the obj argument of JS::Compile. r=luke
This is technically a behavior change for the shell's disfile() function, but
I really doubt anyone is doing disfile.call(someObj).
2015-03-19 10:13:34 -04:00
Boris Zbarsky
46362299ab Bug 1143793 part 5. Release-assert that a script being executed against a non-global scopechain is not compileAndGo. r=luke 2015-03-19 10:13:34 -04:00
Boris Zbarsky
f0a4481730 Bug 1143793 part 4. Stop supporting load.call(somerandomobj) in xpcshell. r=bholley
I guess I should have done this in bug 1097987.
2015-03-19 10:13:34 -04:00
Boris Zbarsky
2f422f4b65 Bug 1143793 part 3. Stop passing null as the obj argument of JS::Compile. r=luke.
Note that this is not a behavior change in the aRunInGlobalScope case in
nsFrameMessageManager, because that case never does setCompileAndGo(true) anyway.
2015-03-19 10:13:34 -04:00
Boris Zbarsky
12214cbce0 Bug 1143793 part 2. Remove the obj argument of JS_CompileUCScript. r=luke 2015-03-19 10:13:34 -04:00
Boris Zbarsky
3550ddd74e Bug 1143793 part 1. Remove the obj argument of JS_CompileScript. r=luke 2015-03-19 10:13:33 -04:00
Boris Zbarsky
54c64f20a9 Bug 1117172 part 3. Change the wrappercached WrapObject methods to allow passing in aGivenProto. r=peterv
The only manual changes here are to BindingUtils.h, BindingUtils.cpp,
Codegen.py, Element.cpp, IDBFileRequest.cpp, IDBObjectStore.cpp,
dom/workers/Navigator.cpp, WorkerPrivate.cpp, DeviceStorageRequestChild.cpp,
Notification.cpp, nsGlobalWindow.cpp, MessagePort.cpp, nsJSEnvironment.cpp,
Sandbox.cpp, XPCConvert.cpp, ExportHelpers.cpp, and DataStoreService.cpp.  The
rest of this diff was generated by running the following commands:

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObjectInternal\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapNode\((?:aCx|cx|aContext|aCtx|js))\)/\1, aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(WrapObject\(JSContext *\* *(?:aCx|cx|aContext|aCtx|js))\)/\1, JS::Handle<JSObject*> aGivenProto)/g'

  find . -name "*.h" -o -name "*.cpp" | xargs perl -pi -e 'BEGIN { $/ = undef } s/(Binding(?:_workers)?::Wrap\((?:aCx|cx|aContext|aCtx|js), [^,)]+)\)/\1, aGivenProto)/g'
2015-03-19 10:13:33 -04:00
Jan de Mooij
e4b471f346 Bug 1142669 - Fix some inlining issues and inline scripts with loops. r=h4writer 2015-03-19 15:10:07 +01:00
Jan de Mooij
290fafbe43 Bug 1143847 - Fix bogus asserts in x64 Assembler::finish(). r=sunfish 2015-03-19 15:10:05 +01:00
Jim Blandy
6cc9e4fad6 Bug 1144371: Implement DEBUG-only JS shell function |dumpStringRepresentation|. r=jandem 2015-03-17 13:45:35 -07:00
Jim Blandy
74e2adb0ff Bug 1063147: Clarify comments about extensible strings. DONTBUILD r=jandem 2015-03-16 18:40:21 -07:00
Jan de Mooij
7daec88092 Bug 1141583 - Store nargs in LambdaFunctionInfo to avoid a TSan false positive. r=bhackett 2015-03-19 10:11:55 +01:00
Jan de Mooij
908c4c5cb7 Bug 974418 - Fix a TSan race involving the double-elements flag on template objects. r=bhackett 2015-03-19 10:08:41 +01:00
Heiher
aea9910cc3 Bug 1144005 - IonMonkey: MIPS: Fix encode break instruction. r=rankov 2015-03-18 18:21:00 +01:00
Tooru Fujisawa
4acf2eea1b Bug 1116376 - Skip full GC triggered by atoms zone if keepAtoms is true, and retrigger it after keepAtoms becomes false. r=jonco 2015-03-19 10:12:37 +09:00
Brian Hackett
ef20bc498c Bug 1137180 - Add most functionality necessary for extensible unboxed objects, r=jandem. 2015-03-18 18:05:51 -07:00
Brian Hackett
1c8357ba59 Bug 1143521 - Remove IsPoisonedPtr stuff, r=sfink. 2015-03-18 18:01:35 -07:00
Daniel Holbert
92e8217dbd Bug 1038839 followup: Add missing MOZ_OVERRIDE annotation to mightAlias() impls in MIR.h. r=ehsan 2015-03-18 16:44:03 -07:00
Brian Hackett
e6582b51d4 Bug 1130640 - Don't unroll loops based on bounds using terms that have been discarded, r=jandem. 2015-03-18 16:42:53 -07:00
Andrew McCreight
4e3fcea818 Bug 1143760 - Do a tiny amount of code duplication to avoid a goto in XPCVariant::VariantDataToJS(). r=bholley 2015-03-18 11:36:04 -07:00
Andrew McCreight
f0b7c05cd7 Bug 1142717, part 5 - Eliminate XPC_WRAPPED_NATIVE_TEAROFFS_PER_CHUNK. r=bholley
This has been 1 since the what looks like the initial landing in 2001, so clearly we don't need this generality.
2015-03-18 11:36:04 -07:00
Andrew McCreight
57d42f4866 Bug 1142717, part 4 - Add MOZ_COUNT_CTOR/DTOR for XPCWrappedNativeTearOff. r=bholley 2015-03-18 11:36:03 -07:00
Andrew McCreight
f66e0a7b52 Bug 1142717, part 3 - Make XPCWrappedNativeTearOff::mNative a smart pointer. r=bholley 2015-03-18 11:36:03 -07:00