author | Ehsan Akhgari <ehsan@mozilla.com> |
Tue, 19 Nov 2013 15:03:40 -0500 | |
changeset 156447 | 6be9a40c54b63caf1b74c30f8faefa7bd356a4ad |
parent 156446 | f7b74d242905ec8c8328aecda760aa52a85c390e |
child 156448 | 65a409f10de6e19f0b3be56689d924656e80bfa9 |
push id | 25678 |
push user | ryanvm@gmail.com |
push date | Wed, 20 Nov 2013 03:26:13 +0000 |
treeherder | mozilla-central@4f993fa378eb [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bholley |
bugs | 939608 |
milestone | 28.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/js/xpconnect/loader/mozJSComponentLoader.h +++ b/js/xpconnect/loader/mozJSComponentLoader.h @@ -1,14 +1,17 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#ifndef mozJSComponentLoader_h +#define mozJSComponentLoader_h + #include "mozilla/ModuleLoader.h" #include "nsISupports.h" #include "nsIObserver.h" #include "nsIURI.h" #include "xpcIJSModuleLoader.h" #include "nsClassHashtable.h" #include "nsDataHashtable.h" #include "jsapi.h" @@ -138,8 +141,10 @@ class mozJSComponentLoader : public mozi nsClassHashtable<nsCStringHashKey, ModuleEntry> mImports; nsDataHashtable<nsCStringHashKey, ModuleEntry*> mInProgressImports; nsDataHashtable<nsPtrHashKey<JSScript>, JSObject*> mThisObjects; bool mInitialized; bool mReuseLoaderGlobal; }; + +#endif
--- a/js/xpconnect/src/XPCJSID.cpp +++ b/js/xpconnect/src/XPCJSID.cpp @@ -820,17 +820,17 @@ nsJSCID::Construct(nsIXPConnectWrappedNa { RootedObject obj(cx, objArg); XPCJSRuntime* rt = nsXPConnect::GetRuntimeInstance(); if (!rt) return NS_ERROR_FAILURE; // 'push' a call context and call on it RootedId name(cx, rt->GetStringID(XPCJSRuntime::IDX_CREATE_INSTANCE)); - XPCCallContext ccx(JS_CALLER, cx, obj, NullPtr(), name, args.length(), args.array(), + XPCCallContext ccx(JS_CALLER, cx, obj, JS::NullPtr(), name, args.length(), args.array(), args.rval().address()); *_retval = XPCWrappedNative::CallMethod(ccx); return NS_OK; } /* bool hasInstance (in nsIXPConnectWrappedNative wrapper, in JSContextPtr cx, in JSObjectPtr obj, in jsval val, out bool bp); */ NS_IMETHODIMP
--- a/js/xpconnect/wrappers/XrayWrapper.h +++ b/js/xpconnect/wrappers/XrayWrapper.h @@ -1,15 +1,18 @@ /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * vim: set ts=4 sw=4 et tw=99 ft=cpp: * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#ifndef XrayWrapper_h +#define XrayWrapper_h + #include "mozilla/Attributes.h" #include "jswrapper.h" // Xray wrappers re-resolve the original native properties on the native // object and always directly access to those properties. // Because they work so differently from the rest of the wrapper hierarchy, // we pull them out of the Wrapper inheritance hierarchy and create a @@ -185,8 +188,9 @@ private: JS::HandleId mId; JS::RootedObject mHolder; ResolvingId *mPrev; bool mXrayShadowing; }; } +#endif