зеркало из https://github.com/mozilla/gecko-dev.git
Bug 925807 - define JS_BITS_PER_WORD in terms of JS_64BIT; r=njn
This commit is contained in:
Родитель
10b501297f
Коммит
2255a3c89f
|
@ -15,6 +15,8 @@
|
|||
|
||||
#include <limits> /* for std::numeric_limits */
|
||||
|
||||
#include "jstypes.h"
|
||||
|
||||
#include "js/Anchor.h"
|
||||
#include "js/RootingAPI.h"
|
||||
#include "js/Utility.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "jsgc.h"
|
||||
#include "jsonparser.h"
|
||||
#include "jsprf.h"
|
||||
#include "jstypes.h"
|
||||
#include "jswatchpoint.h"
|
||||
|
||||
#include "builtin/MapObject.h"
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
#include "mozilla/PodOperations.h"
|
||||
|
||||
#include "jsinfer.h"
|
||||
#include "jstypes.h"
|
||||
|
||||
#include "gc/Heap.h"
|
||||
#include "jit/IonTypes.h"
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include "jit/StupidAllocator.h"
|
||||
|
||||
#include "jstypes.h"
|
||||
|
||||
using namespace js;
|
||||
using namespace js::jit;
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "jsobj.h"
|
||||
#include "jsscript.h"
|
||||
#include "jstypes.h"
|
||||
|
||||
namespace js {
|
||||
class FunctionExtended;
|
||||
|
|
|
@ -13,6 +13,7 @@
|
|||
|
||||
#include "jsalloc.h"
|
||||
#include "jsfriendapi.h"
|
||||
#include "jstypes.h"
|
||||
|
||||
#include "ds/IdValuePair.h"
|
||||
#include "ds/LifoAlloc.h"
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
*/
|
||||
|
||||
#include "jsbytecode.h"
|
||||
#include "jstypes.h"
|
||||
#include "NamespaceImports.h"
|
||||
|
||||
#include "frontend/SourceNotes.h"
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#endif
|
||||
#include "jsobj.h"
|
||||
#include "jsopcode.h"
|
||||
#include "jstypes.h"
|
||||
|
||||
#include "gc/Barrier.h"
|
||||
#include "gc/Rooting.h"
|
||||
|
|
|
@ -238,7 +238,11 @@
|
|||
#define JS_BITS_PER_BYTE 8
|
||||
#define JS_BITS_PER_BYTE_LOG2 3
|
||||
|
||||
#define JS_BITS_PER_WORD (JS_BITS_PER_BYTE * JS_BYTES_PER_WORD)
|
||||
#if defined(JS_64BIT)
|
||||
# define JS_BITS_PER_WORD 64
|
||||
#else
|
||||
# define JS_BITS_PER_WORD 32
|
||||
#endif
|
||||
|
||||
/***********************************************************************
|
||||
** MACROS: JS_FUNC_TO_DATA_PTR
|
||||
|
|
Загрузка…
Ссылка в новой задаче