Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

--HG--
extra : rebase_source : 5f5fcf8fff315097638829d95594e347052955ed
  • Loading branch information...
commit e28cff4b8850662ff63c5466a975cacc8fa6d163 1 parent d6655fa
Jacek Caban authored
1  tools/profiler/sps/platform-linux.cc
View
@@ -34,7 +34,6 @@
#include <strings.h> // index
#include <errno.h>
#include <stdarg.h>
-#include "v8-support.h"
#include "platform.h"
#include <string.h>
1  tools/profiler/sps/platform-macos.cc
View
@@ -25,7 +25,6 @@
#include <errno.h>
-#include "v8-support.h"
#include "platform.h"
// this port is based off of v8 svn revision 9837
1  tools/profiler/sps/platform-win32.cc
View
@@ -3,7 +3,6 @@
// found in the LICENSE file.
#include <windows.h>
-#include "v8-support.h"
#include "platform.h"
#include <process.h>
13 tools/profiler/sps/platform.h
View
@@ -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:
6 tools/profiler/sps/v8-support.h
View
@@ -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) {
Please sign in to comment.
Something went wrong with that request. Please try again.