v8.h   v8.h 
skipping to change at line 1237 skipping to change at line 1237
* Get the ExternalAsciiStringResource for an external ASCII string. * Get the ExternalAsciiStringResource for an external ASCII string.
* Returns NULL if IsExternalAscii() doesn't return true. * Returns NULL if IsExternalAscii() doesn't return true.
*/ */
V8EXPORT const ExternalAsciiStringResource* GetExternalAsciiStringResourc e() V8EXPORT const ExternalAsciiStringResource* GetExternalAsciiStringResourc e()
const; const;
V8_INLINE(static String* Cast(v8::Value* obj)); V8_INLINE(static String* Cast(v8::Value* obj));
/** /**
* Allocates a new string from either UTF-8 encoded or ASCII data. * Allocates a new string from either UTF-8 encoded or ASCII data.
* The second parameter 'length' gives the buffer length. * The second parameter 'length' gives the buffer length. If omitted,
* If the data is UTF-8 encoded, the caller must * the function calls 'strlen' to determine the buffer length.
* be careful to supply the length parameter.
* If it is not given, the function calls
* 'strlen' to determine the buffer length, it might be
* wrong if 'data' contains a null character.
*/ */
V8EXPORT static Local<String> New(const char* data, int length = -1); V8EXPORT static Local<String> New(const char* data, int length = -1);
/** Allocates a new string from 16-bit character codes.*/ /** Allocates a new string from 16-bit character codes.*/
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 );
/** /**
skipping to change at line 2260 skipping to change at line 2256
* child_instance.instance_accessor calls 'InstanceAccessorCallback' * child_instance.instance_accessor calls 'InstanceAccessorCallback'
* child_instance.instance_property == 3; * child_instance.instance_property == 3;
* \endcode * \endcode
*/ */
class V8EXPORT FunctionTemplate : public Template { class V8EXPORT FunctionTemplate : public Template {
public: public:
/** Creates a function template.*/ /** Creates a function template.*/
static Local<FunctionTemplate> New( static Local<FunctionTemplate> New(
InvocationCallback callback = 0, InvocationCallback callback = 0,
Handle<Value> data = Handle<Value>(), Handle<Value> data = Handle<Value>(),
Handle<Signature> signature = Handle<Signature>()); Handle<Signature> signature = Handle<Signature>(),
int length = 0);
/** Returns the unique function instance in the current execution context .*/ /** Returns the unique function instance in the current execution context .*/
Local<Function> GetFunction(); Local<Function> GetFunction();
/** /**
* Set the call-handler callback for a FunctionTemplate. This * Set the call-handler callback for a FunctionTemplate. This
* callback is called whenever the function created from this * callback is called whenever the function created from this
* FunctionTemplate is called. * FunctionTemplate is called.
*/ */
void SetCallHandler(InvocationCallback callback, void SetCallHandler(InvocationCallback callback,
Handle<Value> data = Handle<Value>()); Handle<Value> data = Handle<Value>());
/** Set the predefined length property for the FunctionTemplate. */
void SetLength(int length);
/** Get the InstanceTemplate. */ /** Get the InstanceTemplate. */
Local<ObjectTemplate> InstanceTemplate(); Local<ObjectTemplate> InstanceTemplate();
/** Causes the function template to inherit from a parent function templa te.*/ /** Causes the function template to inherit from a parent function templa te.*/
void Inherit(Handle<FunctionTemplate> parent); void Inherit(Handle<FunctionTemplate> parent);
/** /**
* A PrototypeTemplate is the template used to create the prototype objec t * A PrototypeTemplate is the template used to create the prototype objec t
* of the function created by this template. * of the function created by this template.
*/ */
skipping to change at line 3083 skipping to change at line 3083
static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorith m(); static StartupData::CompressionAlgorithm GetCompressedStartupDataAlgorith m();
static int GetCompressedStartupDataCount(); static int GetCompressedStartupDataCount();
static void GetCompressedStartupData(StartupData* compressed_data); static void GetCompressedStartupData(StartupData* compressed_data);
static void SetDecompressedStartupData(StartupData* decompressed_data); static void SetDecompressedStartupData(StartupData* decompressed_data);
/** /**
* Adds a message listener. * Adds a message listener.
* *
* The same message listener can be added more than once and in that * The same message listener can be added more than once and in that
* case it will be called more than once for each message. * case it will be called more than once for each message.
*
* If data is specified, it will be passed to the callback when it is cal
led.
* Otherwise, the exception object will be passed to the callback instead
.
*/ */
static bool AddMessageListener(MessageCallback that, static bool AddMessageListener(MessageCallback that);
Handle<Value> data = Handle<Value>());
/** /**
* Remove all message listeners from the specified callback function. * Remove all message listeners from the specified callback function.
*/ */
static void RemoveMessageListeners(MessageCallback that); static void RemoveMessageListeners(MessageCallback that);
/** /**
* Tells V8 to capture current stack trace when uncaught exception occurs * Tells V8 to capture current stack trace when uncaught exception occurs
* and report it to the message listeners. The option is off by default. * and report it to the message listeners. The option is off by default.
*/ */
 End of changes. 5 change blocks. 
14 lines changed or deleted 8 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/