Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 623e08d8fae6b776c0c8dad24d294f6b18132f1f..d94d7e59d8e37cac9e765efb73725a48211a3c85 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -320,6 +320,7 @@ class PerfJitLogger : public CodeEventLogger { |
static const uint32_t kElfMachX64 = 62; |
static const uint32_t kElfMachARM = 40; |
static const uint32_t kElfMachMIPS = 10; |
+ static const uint32_t kElfMachX87 = 3; |
struct jitheader { |
uint32_t magic; |
@@ -359,6 +360,8 @@ class PerfJitLogger : public CodeEventLogger { |
return kElfMachARM; |
#elif V8_TARGET_ARCH_MIPS |
return kElfMachMIPS; |
+#elif V8_TARGET_ARCH_X87 |
+ return kElfMachX87; |
#else |
UNIMPLEMENTED(); |
return 0; |
@@ -554,6 +557,8 @@ void LowLevelLogger::LogCodeInfo() { |
const char arch[] = "arm"; |
#elif V8_TARGET_ARCH_MIPS |
const char arch[] = "mips"; |
+#elif V8_TARGET_ARCH_X87 |
+ const char arch[] = "x87"; |
#else |
const char arch[] = "unknown"; |
#endif |