Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 3ac47f8a89bca18e0a4c931c55cc351b208438c1..8ef718bd47e303860eb54511b6ee294c06a2bc32 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -2327,7 +2327,7 @@ class V8_EXPORT String : public Name { |
enum Encoding { |
UNKNOWN_ENCODING = 0x1, |
TWO_BYTE_ENCODING = 0x0, |
- ONE_BYTE_ENCODING = 0x4 |
+ ONE_BYTE_ENCODING = 0x8 |
}; |
/** |
* Returns the number of characters in this string. |
@@ -8451,10 +8451,10 @@ class Internals { |
static const int kFixedArrayHeaderSize = 2 * kApiPointerSize; |
static const int kContextHeaderSize = 2 * kApiPointerSize; |
static const int kContextEmbedderDataIndex = 5; |
- static const int kFullStringRepresentationMask = 0x07; |
- static const int kStringEncodingMask = 0x4; |
+ static const int kFullStringRepresentationMask = 0x0f; |
+ static const int kStringEncodingMask = 0x8; |
static const int kExternalTwoByteRepresentationTag = 0x02; |
- static const int kExternalOneByteRepresentationTag = 0x06; |
+ static const int kExternalOneByteRepresentationTag = 0x0a; |
static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize; |
static const int kExternalMemoryOffset = 4 * kApiPointerSize; |