diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-01-17 11:32:56 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-01-17 11:32:56 -0800 |
commit | cf2e4f44afbfb208c5976786c96ec963930323cc (patch) | |
tree | 7e9ddac16d51490f1428abb610afd02eda98aacf /deps/v8/src/globals.h | |
parent | 082a4b6033df22a68518c58d320e86f688db7bda (diff) | |
download | node-new-cf2e4f44afbfb208c5976786c96ec963930323cc.tar.gz |
Upgrade V8 to 3.0.8
Diffstat (limited to 'deps/v8/src/globals.h')
-rw-r--r-- | deps/v8/src/globals.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/deps/v8/src/globals.h b/deps/v8/src/globals.h index 35156ae606..9b24bf6350 100644 --- a/deps/v8/src/globals.h +++ b/deps/v8/src/globals.h @@ -181,10 +181,6 @@ typedef byte* Address; #define USING_BSD_ABI #endif -// Code-point values in Unicode 4.0 are 21 bits wide. -typedef uint16_t uc16; -typedef int32_t uc32; - // ----------------------------------------------------------------------------- // Constants @@ -228,6 +224,15 @@ const int kBinary32MinExponent = 0x01; const int kBinary32MantissaBits = 23; const int kBinary32ExponentShift = 23; +// ASCII/UC16 constants +// Code-point values in Unicode 4.0 are 21 bits wide. +typedef uint16_t uc16; +typedef int32_t uc32; +const int kASCIISize = kCharSize; +const int kUC16Size = sizeof(uc16); // NOLINT +const uc32 kMaxAsciiCharCode = 0x7f; +const uint32_t kMaxAsciiCharCodeU = 0x7fu; + // The expression OFFSET_OF(type, field) computes the byte-offset // of the specified field relative to the containing type. This |