mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 712254 - Use StdInt.h in platform.h r=BenWa
--HG-- extra : rebase_source : 5f5fcf8fff315097638829d95594e347052955ed
This commit is contained in:
parent
31925a170d
commit
4d919fd3bd
@ -34,7 +34,6 @@
|
||||
#include <strings.h> // index
|
||||
#include <errno.h>
|
||||
#include <stdarg.h>
|
||||
#include "v8-support.h"
|
||||
#include "platform.h"
|
||||
|
||||
#include <string.h>
|
||||
|
@ -25,7 +25,6 @@
|
||||
#include <errno.h>
|
||||
|
||||
|
||||
#include "v8-support.h"
|
||||
#include "platform.h"
|
||||
|
||||
// this port is based off of v8 svn revision 9837
|
||||
|
@ -3,7 +3,6 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <windows.h>
|
||||
#include "v8-support.h"
|
||||
#include "platform.h"
|
||||
#include <process.h>
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user