Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: src/base/cpu.cc

Issue 371923006: Add mips64 port. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Remove clobbered test-assembler-mips from CL. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/base/cpu.cc
diff --git a/src/base/cpu.cc b/src/base/cpu.cc
index e96a71bc3147f877d7251340b8bb3bb70d063101..d81460a0e14879be39c49373f095c0e9843cc3f5 100644
--- a/src/base/cpu.cc
+++ b/src/base/cpu.cc
@@ -56,7 +56,8 @@ static V8_INLINE void __cpuid(int cpu_info[4], int info_type) {
#endif // !V8_LIBC_MSVCRT
-#elif V8_HOST_ARCH_ARM || V8_HOST_ARCH_ARM64 || V8_HOST_ARCH_MIPS
+#elif V8_HOST_ARCH_ARM || V8_HOST_ARCH_ARM64 \
+ || V8_HOST_ARCH_MIPS || V8_HOST_ARCH_MIPS64
#if V8_OS_LINUX
@@ -206,7 +207,7 @@ class CPUInfo V8_FINAL {
size_t datalen_;
};
-#if V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS
+#if V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS || V8_HOST_ARCH_MIPS64
// Checks that a space-separated list of items contains one given 'item'.
static bool HasListItem(const char* list, const char* item) {
@@ -232,7 +233,7 @@ static bool HasListItem(const char* list, const char* item) {
return false;
}
-#endif // V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS
+#endif // V8_HOST_ARCH_ARM || V8_HOST_ARCH_MIPS || V8_HOST_ARCH_MIPS64
#endif // V8_OS_LINUX
@@ -454,8 +455,7 @@ CPU::CPU() : stepping_(0),
#endif // V8_OS_LINUX
-#elif V8_HOST_ARCH_MIPS
-
+#elif V8_HOST_ARCH_MIPS || V8_HOST_ARCH_MIPS64
danno 2014/07/08 09:01:19 Please add the deleted line in again below.
dusmil 2014/07/08 11:03:41 Done.
// Simple detection of FPU at runtime for Linux.
// It is based on /proc/cpuinfo, which reveals hardware configuration
// to user-space applications. According to MIPS (early 2010), no similar

Powered by Google App Engine
This is Rietveld 408576698