v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1182 | skipping to change at line 1182 | |||
V8EXPORT static Local<String> New(const uint16_t* data, int length = -1); | V8EXPORT static Local<String> New(const uint16_t* data, int length = -1); | |||
/** Creates a symbol. Returns one if it exists already.*/ | /** Creates a symbol. Returns one if it exists already.*/ | |||
V8EXPORT static Local<String> NewSymbol(const char* data, int length = -1 ); | V8EXPORT static Local<String> NewSymbol(const char* data, int length = -1 ); | |||
/** | /** | |||
* Creates a new string by concatenating the left and the right strings | * Creates a new string by concatenating the left and the right strings | |||
* passed in as parameters. | * passed in as parameters. | |||
*/ | */ | |||
V8EXPORT static Local<String> Concat(Handle<String> left, | V8EXPORT static Local<String> Concat(Handle<String> left, | |||
Handle<String>right); | Handle<String> right); | |||
/** | /** | |||
* Creates a new external string using the data defined in the given | * Creates a new external string using the data defined in the given | |||
* resource. When the external string is no longer live on V8's heap the | * resource. When the external string is no longer live on V8's heap the | |||
* resource will be disposed by calling its Dispose method. The caller of | * resource will be disposed by calling its Dispose method. The caller of | |||
* this function should not otherwise delete or modify the resource. Neit her | * this function should not otherwise delete or modify the resource. Neit her | |||
* should the underlying buffer be deallocated or modified except through the | * should the underlying buffer be deallocated or modified except through the | |||
* destructor of the external string resource. | * destructor of the external string resource. | |||
*/ | */ | |||
V8EXPORT static Local<String> NewExternal(ExternalStringResource* resourc e); | V8EXPORT static Local<String> NewExternal(ExternalStringResource* resourc e); | |||
skipping to change at line 3771 | skipping to change at line 3771 | |||
static const int kHeapObjectMapOffset = 0; | static const int kHeapObjectMapOffset = 0; | |||
static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSi ze; | static const int kMapInstanceTypeOffset = 1 * kApiPointerSize + kApiIntSi ze; | |||
static const int kStringResourceOffset = | static const int kStringResourceOffset = | |||
InternalConstants<kApiPointerSize>::kStringResourceOffset; | InternalConstants<kApiPointerSize>::kStringResourceOffset; | |||
static const int kForeignAddressOffset = kApiPointerSize; | static const int kForeignAddressOffset = kApiPointerSize; | |||
static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | static const int kJSObjectHeaderSize = 3 * kApiPointerSize; | |||
static const int kFullStringRepresentationMask = 0x07; | static const int kFullStringRepresentationMask = 0x07; | |||
static const int kExternalTwoByteRepresentationTag = 0x02; | static const int kExternalTwoByteRepresentationTag = 0x02; | |||
static const int kJSObjectType = 0xa7; | static const int kJSObjectType = 0xa8; | |||
static const int kFirstNonstringType = 0x80; | static const int kFirstNonstringType = 0x80; | |||
static const int kForeignType = 0x85; | static const int kForeignType = 0x85; | |||
static inline bool HasHeapObjectTag(internal::Object* value) { | static inline bool HasHeapObjectTag(internal::Object* value) { | |||
return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | return ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == | |||
kHeapObjectTag); | kHeapObjectTag); | |||
} | } | |||
static inline bool HasSmiTag(internal::Object* value) { | static inline bool HasSmiTag(internal::Object* value) { | |||
return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | return ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag); | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||