Bug 925807 - define JS_BITS_PER_WORD in terms of JS_64BIT; r=njn

This commit is contained in:
Nathan Froyd 2013-10-11 15:11:48 -04:00
Родитель 10b501297f
Коммит 2255a3c89f
9 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -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