Bug 712254 - Use StdInt.h in platform.h r=BenWa

--HG--
extra : rebase_source : 5f5fcf8fff315097638829d95594e347052955ed
This commit is contained in:
Jacek Caban 2011-12-23 13:21:35 +01:00
parent 31925a170d
commit 4d919fd3bd
5 changed files with 3 additions and 19 deletions

View File

@ -34,7 +34,6 @@
#include <strings.h> // index
#include <errno.h>
#include <stdarg.h>
#include "v8-support.h"
#include "platform.h"
#include <string.h>

View File

@ -25,7 +25,6 @@
#include <errno.h>
#include "v8-support.h"
#include "platform.h"
// this port is based off of v8 svn revision 9837

View File

@ -3,7 +3,6 @@
// found in the LICENSE file.
#include <windows.h>
#include "v8-support.h"
#include "platform.h"
#include <process.h>

View File

@ -8,6 +8,7 @@
#define __android_log_print(a, ...)
#endif
#include "mozilla/StdInt.h"
#include "mozilla/Util.h"
#include "mozilla/unused.h"
#include "mozilla/TimeStamp.h"
@ -21,17 +22,7 @@
#define LOG(text) printf("Profiler: %s\n", text)
#endif
#ifdef _MSC_VER
typedef __int8 byte;
typedef __int32 int32_t;
typedef unsigned __int32 uint32_t;
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
typedef uint8 byte;
#endif
typedef byte* Address;
typedef uint8_t* Address;
class MapEntry {
public:

View File

@ -51,11 +51,7 @@
#warning Please add support for your architecture in chromium_types.h
#endif
#ifdef _WIN32
typedef __int32 Atomic32;
#else
typedef int32_t Atomic32;
#endif
typedef int32_t Atomic32;
#if defined(V8_HOST_ARCH_X64) || defined(V8_HOST_ARCH_IA32) || defined(V8_HOST_ARCH_ARM)
inline void NoBarrier_Store(volatile Atomic32* ptr, Atomic32 value) {