v8-preparser.h | v8-preparser.h | |||
---|---|---|---|---|
skipping to change at line 74 | skipping to change at line 74 | |||
#endif // _WIN32 | #endif // _WIN32 | |||
namespace v8 { | namespace v8 { | |||
class PreParserData { | class PreParserData { | |||
public: | public: | |||
PreParserData(size_t size, const uint8_t* data) | PreParserData(size_t size, const uint8_t* data) | |||
: data_(data), size_(size) { } | : data_(data), size_(size) { } | |||
// Create a PreParserData value where stack_overflow reports true. | // Create a PreParserData value where stack_overflow reports true. | |||
static PreParserData StackOverflow() { return PreParserData(NULL, 0); } | static PreParserData StackOverflow() { return PreParserData(0, NULL); } | |||
// Whether the pre-parser stopped due to a stack overflow. | // Whether the pre-parser stopped due to a stack overflow. | |||
// If this is the case, size() and data() should not be used. | // If this is the case, size() and data() should not be used. | |||
bool stack_overflow() { return size_ == 0u; } | bool stack_overflow() { return size_ == 0u; } | |||
// The size of the data in bytes. | // The size of the data in bytes. | |||
size_t size() const { return size_; } | size_t size() const { return size_; } | |||
// Pointer to the data. | // Pointer to the data. | |||
const uint8_t* data() const { return data_; } | const uint8_t* data() const { return data_; } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
v8.h | v8.h | |||
---|---|---|---|---|
skipping to change at line 1627 | skipping to change at line 1627 | |||
*/ | */ | |||
V8EXPORT bool IsDirty(); | V8EXPORT bool IsDirty(); | |||
/** | /** | |||
* Clone this object with a fast but shallow copy. Values will point | * Clone this object with a fast but shallow copy. Values will point | |||
* to the same values as the original object. | * to the same values as the original object. | |||
*/ | */ | |||
V8EXPORT Local<Object> Clone(); | V8EXPORT Local<Object> Clone(); | |||
/** | /** | |||
* Returns the context in which the object was created. | ||||
*/ | ||||
V8EXPORT Local<Context> CreationContext(); | ||||
/** | ||||
* Set the backing store of the indexed properties to be managed by the | * Set the backing store of the indexed properties to be managed by the | |||
* embedding layer. Access to the indexed properties will follow the rule s | * embedding layer. Access to the indexed properties will follow the rule s | |||
* spelled out in CanvasPixelArray. | * spelled out in CanvasPixelArray. | |||
* Note: The embedding program still owns the data and needs to ensure th at | * Note: The embedding program still owns the data and needs to ensure th at | |||
* the backing store is preserved while V8 has a reference. | * the backing store is preserved while V8 has a reference. | |||
*/ | */ | |||
V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); | V8EXPORT void SetIndexedPropertiesToPixelData(uint8_t* data, int length); | |||
V8EXPORT bool HasIndexedPropertiesInPixelData(); | V8EXPORT bool HasIndexedPropertiesInPixelData(); | |||
V8EXPORT uint8_t* GetIndexedPropertiesPixelData(); | V8EXPORT uint8_t* GetIndexedPropertiesPixelData(); | |||
V8EXPORT int GetIndexedPropertiesPixelDataLength(); | V8EXPORT int GetIndexedPropertiesPixelDataLength(); | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 5 lines changed or added | |||