mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1021001
- Remove AutoCheckCannotGC from NamespaceImports.h, and require users to use the sole definition in GCAPI.h. r=terrence
This commit is contained in:
parent
f76da34a54
commit
7e698a4907
@ -42,8 +42,6 @@ class MOZ_STACK_CLASS SourceBufferHolder;
|
||||
|
||||
class HandleValueArray;
|
||||
|
||||
class AutoCheckCannotGC;
|
||||
|
||||
}
|
||||
|
||||
// Do the importing.
|
||||
@ -135,8 +133,6 @@ using JS::HandleValueArray;
|
||||
|
||||
using JS::Zone;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
} /* namespace js */
|
||||
|
||||
#endif /* NamespaceImports_h */
|
||||
|
@ -17,6 +17,8 @@
|
||||
using namespace js;
|
||||
using namespace jit;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
using parallel::Spew;
|
||||
using parallel::SpewOps;
|
||||
using parallel::SpewBailouts;
|
||||
|
@ -49,6 +49,8 @@ using mozilla::DebugOnly;
|
||||
using mozilla::IsNaN;
|
||||
using mozilla::PointerRangeSize;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
bool
|
||||
js::GetLengthProperty(JSContext *cx, HandleObject obj, uint32_t *lengthp)
|
||||
{
|
||||
|
@ -203,7 +203,7 @@ IdToTypeId(jsid id)
|
||||
|
||||
if (JSID_IS_STRING(id)) {
|
||||
JSAtom *atom = JSID_TO_ATOM(id);
|
||||
AutoCheckCannotGC nogc;
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
bool isNumeric = atom->hasLatin1Chars()
|
||||
? IdIsNumericTypeId(atom->latin1Range(nogc))
|
||||
: IdIsNumericTypeId(atom->twoByteRange(nogc));
|
||||
|
@ -46,6 +46,8 @@ using mozilla::NegativeInfinity;
|
||||
using mozilla::PodCopy;
|
||||
using mozilla::PositiveInfinity;
|
||||
using mozilla::RangedPtr;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
using JS::GenericNaN;
|
||||
|
||||
/*
|
||||
|
@ -45,6 +45,8 @@
|
||||
using namespace js;
|
||||
using namespace js::gc;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
using js::frontend::IsIdentifier;
|
||||
|
||||
/*
|
||||
|
@ -73,6 +73,8 @@ using mozilla::PodCopy;
|
||||
using mozilla::PodEqual;
|
||||
using mozilla::SafeCast;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
typedef Handle<JSLinearString*> HandleLinearString;
|
||||
|
||||
static JSLinearString *
|
||||
|
@ -33,6 +33,8 @@
|
||||
using namespace js;
|
||||
using namespace js::selfhosted;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
static void
|
||||
selfHosting_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ NewFatInlineString(ExclusiveContext *cx, Handle<JSLinearString*> base, size_t st
|
||||
if (!s)
|
||||
return nullptr;
|
||||
|
||||
AutoCheckCannotGC nogc;
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
mozilla::PodCopy(chars, base->chars<CharT>(nogc) + start, length);
|
||||
chars[length] = 0;
|
||||
return s;
|
||||
|
@ -24,6 +24,8 @@ using mozilla::PodCopy;
|
||||
using mozilla::RangedPtr;
|
||||
using mozilla::RoundUpPow2;
|
||||
|
||||
using JS::AutoCheckCannotGC;
|
||||
|
||||
size_t
|
||||
JSString::sizeOfExcludingThis(mozilla::MallocSizeOf mallocSizeOf)
|
||||
{
|
||||
|
@ -188,7 +188,7 @@ IsTypedArrayIndex(jsid id, uint64_t *indexp)
|
||||
if (MOZ_UNLIKELY(!JSID_IS_STRING(id)))
|
||||
return false;
|
||||
|
||||
AutoCheckCannotGC nogc;
|
||||
JS::AutoCheckCannotGC nogc;
|
||||
JSAtom *atom = JSID_TO_ATOM(id);
|
||||
size_t length = atom->length();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user