X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fv8%2Fsrc%2Fglobals.h;h=d207b39ea478ea11b1fa3df069fd1eed5e7beadf;hb=e398c97ebacad45278d9b4b727fabd09309d510e;hp=ae7903826dfb1f9bd51416f1a4a7e236c0951f9a;hpb=1afa4dd80ef85af7c90efaea6959db1d92330844;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/v8/src/globals.h b/src/v8/src/globals.h index ae79038..d207b39 100644 --- a/src/v8/src/globals.h +++ b/src/v8/src/globals.h @@ -104,6 +104,16 @@ typedef byte* Address; // ----------------------------------------------------------------------------- // Constants +struct float32x4_value_t { float storage[4]; }; +struct float64x2_value_t { double storage[2]; }; +struct int32x4_value_t { int32_t storage[4]; }; +union simd128_value_t { + double d[2]; + float32x4_value_t f4; + float64x2_value_t d2; + int32x4_value_t i4; +}; + const int KB = 1024; const int MB = KB * KB; const int GB = KB * KB * KB; @@ -120,14 +130,19 @@ const int kMinUInt16 = 0; const uint32_t kMaxUInt32 = 0xFFFFFFFFu; -const int kCharSize = sizeof(char); // NOLINT -const int kShortSize = sizeof(short); // NOLINT -const int kIntSize = sizeof(int); // NOLINT -const int kInt32Size = sizeof(int32_t); // NOLINT -const int kInt64Size = sizeof(int64_t); // NOLINT -const int kDoubleSize = sizeof(double); // NOLINT -const int kIntptrSize = sizeof(intptr_t); // NOLINT -const int kPointerSize = sizeof(void*); // NOLINT +const int kCharSize = sizeof(char); // NOLINT +const int kShortSize = sizeof(short); // NOLINT +const int kIntSize = sizeof(int); // NOLINT +const int kInt32Size = sizeof(int32_t); // NOLINT +const int kInt64Size = sizeof(int64_t); // NOLINT +const int kDoubleSize = sizeof(double); // NOLINT +const int kFloatSize = sizeof(float); // NOLINT +const int kFloat32x4Size = sizeof(float32x4_value_t); // NOLINT +const int kFloat64x2Size = sizeof(float64x2_value_t); // NOLINT +const int kInt32x4Size = sizeof(int32x4_value_t); // NOLINT +const int kSIMD128Size = sizeof(simd128_value_t); // NOLINT +const int kIntptrSize = sizeof(intptr_t); // NOLINT +const int kPointerSize = sizeof(void*); // NOLINT #if V8_TARGET_ARCH_X64 && V8_TARGET_ARCH_32_BIT const int kRegisterSize = kPointerSize + kPointerSize; #else