Upgrade V8 to version 4.9.385.28
https://chromium.googlesource.com/v8/v8/+/4.9.385.28
FPIIM-449
Change-Id: I4b2e74289d4bf3667f2f3dc8aa2e541f63e26eb4
diff --git a/src/base/cpu.h b/src/base/cpu.h
index 8c41f9d..ca108fa 100644
--- a/src/base/cpu.h
+++ b/src/base/cpu.h
@@ -28,7 +28,7 @@
// architectures. For each architecture the file cpu_<arch>.cc contains the
// implementation of these static functions.
-class CPU FINAL {
+class CPU final {
public:
CPU();
@@ -50,6 +50,8 @@
int variant() const { return variant_; }
static const int NVIDIA_DENVER = 0x0;
int part() const { return part_; }
+
+ // ARM-specific part codes
static const int ARM_CORTEX_A5 = 0xc05;
static const int ARM_CORTEX_A7 = 0xc07;
static const int ARM_CORTEX_A8 = 0xc08;
@@ -57,6 +59,20 @@
static const int ARM_CORTEX_A12 = 0xc0c;
static const int ARM_CORTEX_A15 = 0xc0f;
+ // Denver-specific part code
+ static const int NVIDIA_DENVER_V10 = 0x002;
+
+ // PPC-specific part codes
+ enum {
+ PPC_POWER5,
+ PPC_POWER6,
+ PPC_POWER7,
+ PPC_POWER8,
+ PPC_G4,
+ PPC_G5,
+ PPC_PA6T
+ };
+
// General features
bool has_fpu() const { return has_fpu_; }
@@ -70,8 +86,14 @@
bool has_ssse3() const { return has_ssse3_; }
bool has_sse41() const { return has_sse41_; }
bool has_sse42() const { return has_sse42_; }
+ bool has_osxsave() const { return has_osxsave_; }
bool has_avx() const { return has_avx_; }
bool has_fma3() const { return has_fma3_; }
+ bool has_bmi1() const { return has_bmi1_; }
+ bool has_bmi2() const { return has_bmi2_; }
+ bool has_lzcnt() const { return has_lzcnt_; }
+ bool has_popcnt() const { return has_popcnt_; }
+ bool is_atom() const { return is_atom_; }
// arm features
bool has_idiva() const { return has_idiva_; }
@@ -106,8 +128,14 @@
bool has_ssse3_;
bool has_sse41_;
bool has_sse42_;
+ bool is_atom_;
+ bool has_osxsave_;
bool has_avx_;
bool has_fma3_;
+ bool has_bmi1_;
+ bool has_bmi2_;
+ bool has_lzcnt_;
+ bool has_popcnt_;
bool has_idiva_;
bool has_neon_;
bool has_thumb2_;
@@ -117,6 +145,7 @@
bool is_fp64_mode_;
};
-} } // namespace v8::base
+} // namespace base
+} // namespace v8
#endif // V8_BASE_CPU_H_