зеркало из https://github.com/mozilla/gecko-dev.git
Bug 731492: Remove obsolete typedef JSPackedBool, r=luke
--HG-- extra : rebase_source : 95423985f55547755a988ba19629678997bfa553
This commit is contained in:
Родитель
b11d895a75
Коммит
f2a90de0cb
|
@ -165,6 +165,7 @@ template <> struct IsPodType<long> { static const bool result =
|
|||
template <> struct IsPodType<unsigned long> { static const bool result = true; };
|
||||
template <> struct IsPodType<long long> { static const bool result = true; };
|
||||
template <> struct IsPodType<unsigned long long> { static const bool result = true; };
|
||||
template <> struct IsPodType<bool> { static const bool result = true; };
|
||||
template <> struct IsPodType<float> { static const bool result = true; };
|
||||
template <> struct IsPodType<double> { static const bool result = true; };
|
||||
template <> struct IsPodType<wchar_t> { static const bool result = true; };
|
||||
|
|
|
@ -820,8 +820,8 @@ class TokenStream
|
|||
void *listenerTSData;/* listener data for this TokenStream */
|
||||
CharBuffer tokenbuf; /* current token string buffer */
|
||||
int8_t oneCharTokens[128]; /* table of one-char tokens */
|
||||
JSPackedBool maybeEOL[256]; /* probabilistic EOL lookup table */
|
||||
JSPackedBool maybeStrSpecial[256];/* speeds up string scanning */
|
||||
bool maybeEOL[256]; /* probabilistic EOL lookup table */
|
||||
bool maybeStrSpecial[256];/* speeds up string scanning */
|
||||
JSVersion version; /* (i.e. to identify keywords) */
|
||||
bool xml; /* see JSOPTION_XML */
|
||||
JSContext *const cx;
|
||||
|
|
|
@ -148,7 +148,7 @@ ScriptAnalysis::analyzeBytecode(JSContext *cx)
|
|||
numSlots = TotalSlots(script);
|
||||
|
||||
codeArray = tla.newArray<Bytecode*>(length);
|
||||
escapedSlots = tla.newArray<JSPackedBool>(numSlots);
|
||||
escapedSlots = tla.newArray<bool>(numSlots);
|
||||
|
||||
if (!codeArray || !escapedSlots) {
|
||||
setOOM(cx);
|
||||
|
|
|
@ -853,7 +853,7 @@ class ScriptAnalysis
|
|||
bool outOfMemory;
|
||||
bool hadFailure;
|
||||
|
||||
JSPackedBool *escapedSlots;
|
||||
bool *escapedSlots;
|
||||
|
||||
/* Which analyses have been performed. */
|
||||
bool ranBytecode_;
|
||||
|
|
|
@ -6470,7 +6470,7 @@ JS_PUBLIC_API(JSBool)
|
|||
JS_ReportPendingException(JSContext *cx)
|
||||
{
|
||||
JSBool ok;
|
||||
JSPackedBool save;
|
||||
bool save;
|
||||
|
||||
AssertNoGC(cx);
|
||||
CHECK_REQUEST(cx);
|
||||
|
|
|
@ -846,7 +846,7 @@ struct JSContext : js::ContextFriendFields
|
|||
* True if generating an error, to prevent runaway recursion.
|
||||
* NB: generatingError packs with throwing below.
|
||||
*/
|
||||
JSPackedBool generatingError;
|
||||
bool generatingError;
|
||||
|
||||
/* GC heap compartment. */
|
||||
JSCompartment *compartment;
|
||||
|
|
|
@ -231,14 +231,6 @@ typedef int JSBool;
|
|||
#define JS_TRUE (int)1
|
||||
#define JS_FALSE (int)0
|
||||
|
||||
/************************************************************************
|
||||
** TYPES: JSPackedBool
|
||||
** DESCRIPTION:
|
||||
** Use JSPackedBool within structs where bitfields are not desireable
|
||||
** but minimum and consistent overhead matters.
|
||||
************************************************************************/
|
||||
typedef uint8_t JSPackedBool;
|
||||
|
||||
/***********************************************************************
|
||||
** MACROS: JS_LIKELY
|
||||
** JS_UNLIKELY
|
||||
|
|
Загрузка…
Ссылка в новой задаче