v8.h   v8.h 
skipping to change at line 108 skipping to change at line 108
class HeapProfiler; class HeapProfiler;
class ImplementationUtilities; class ImplementationUtilities;
class Int32; class Int32;
class Integer; class Integer;
class Isolate; class Isolate;
class Number; class Number;
class NumberObject; class NumberObject;
class Object; class Object;
class ObjectOperationDescriptor; class ObjectOperationDescriptor;
class ObjectTemplate; class ObjectTemplate;
class Platform;
class Primitive; class Primitive;
class RawOperationDescriptor; class RawOperationDescriptor;
class Signature; class Signature;
class StackFrame; class StackFrame;
class StackTrace; class StackTrace;
class String; class String;
class StringObject; class StringObject;
class Symbol; class Symbol;
class SymbolObject; class SymbolObject;
class Private; class Private;
skipping to change at line 1711 skipping to change at line 1712
const ExternalAsciiStringResource* GetExternalAsciiStringResource() const ; const ExternalAsciiStringResource* GetExternalAsciiStringResource() 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. If omitted, * The second parameter 'length' gives the buffer length. If omitted,
* the function calls 'strlen' to determine the buffer length. * the function calls 'strlen' to determine the buffer length.
*/ */
V8_DEPRECATED( V8_DEPRECATED(
"Use NewFromOneByte instead", "Use NewFromUtf8 instead",
V8_INLINE static Local<String> New(const char* data, int length = -1) ); V8_INLINE 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.*/
V8_DEPRECATED( V8_DEPRECATED(
"Use NewFromTwoByte instead", "Use NewFromTwoByte instead",
V8_INLINE static Local<String> New( V8_INLINE static Local<String> New(
const uint16_t* data, int length = -1)); const uint16_t* data, int length = -1));
/** /**
* Creates an internalized string (historically called a "symbol", * Creates an internalized string (historically called a "symbol",
skipping to change at line 2494 skipping to change at line 2495
int GetScriptColumnNumber() const; int GetScriptColumnNumber() const;
/** /**
* Tells whether this function is builtin. * Tells whether this function is builtin.
*/ */
bool IsBuiltin() const; bool IsBuiltin() const;
/** /**
* Returns scriptId object. * Returns scriptId object.
*/ */
V8_DEPRECATED("Use ScriptId instead", Handle<Value> GetScriptId()) const; V8_DEPRECATED("Use ScriptId instead", Handle<Value> GetScriptId() const);
/** /**
* Returns scriptId. * Returns scriptId.
*/ */
int ScriptId() const; int ScriptId() const;
ScriptOrigin GetScriptOrigin() const; ScriptOrigin GetScriptOrigin() const;
V8_INLINE static Function* Cast(Value* obj); V8_INLINE static Function* Cast(Value* obj);
static const int kLineOffsetNotFound; static const int kLineOffsetNotFound;
skipping to change at line 2844 skipping to change at line 2845
/** /**
* An instance of the built-in Date constructor (ECMA-262, 15.9). * An instance of the built-in Date constructor (ECMA-262, 15.9).
*/ */
class V8_EXPORT Date : public Object { class V8_EXPORT Date : public Object {
public: public:
static Local<Value> New(double time); static Local<Value> New(double time);
V8_DEPRECATED( V8_DEPRECATED(
"Use ValueOf instead", "Use ValueOf instead",
double NumberValue()) const { return ValueOf(); } double NumberValue() const) { return ValueOf(); }
/** /**
* A specialization of Value::NumberValue that is more efficient * A specialization of Value::NumberValue that is more efficient
* because we know the structure of this object. * because we know the structure of this object.
*/ */
double ValueOf() const; double ValueOf() const;
V8_INLINE static Date* Cast(v8::Value* obj); V8_INLINE static Date* Cast(v8::Value* obj);
/** /**
skipping to change at line 2881 skipping to change at line 2882
/** /**
* A Number object (ECMA-262, 4.3.21). * A Number object (ECMA-262, 4.3.21).
*/ */
class V8_EXPORT NumberObject : public Object { class V8_EXPORT NumberObject : public Object {
public: public:
static Local<Value> New(double value); static Local<Value> New(double value);
V8_DEPRECATED( V8_DEPRECATED(
"Use ValueOf instead", "Use ValueOf instead",
double NumberValue()) const { return ValueOf(); } double NumberValue() const) { return ValueOf(); }
/** /**
* Returns the Number held by the object. * Returns the Number held by the object.
*/ */
double ValueOf() const; double ValueOf() const;
V8_INLINE static NumberObject* Cast(v8::Value* obj); V8_INLINE static NumberObject* Cast(v8::Value* obj);
private: private:
static void CheckCast(v8::Value* obj); static void CheckCast(v8::Value* obj);
skipping to change at line 2903 skipping to change at line 2904
/** /**
* A Boolean object (ECMA-262, 4.3.15). * A Boolean object (ECMA-262, 4.3.15).
*/ */
class V8_EXPORT BooleanObject : public Object { class V8_EXPORT BooleanObject : public Object {
public: public:
static Local<Value> New(bool value); static Local<Value> New(bool value);
V8_DEPRECATED( V8_DEPRECATED(
"Use ValueOf instead", "Use ValueOf instead",
bool BooleanValue()) const { return ValueOf(); } bool BooleanValue() const) { return ValueOf(); }
/** /**
* Returns the Boolean held by the object. * Returns the Boolean held by the object.
*/ */
bool ValueOf() const; bool ValueOf() const;
V8_INLINE static BooleanObject* Cast(v8::Value* obj); V8_INLINE static BooleanObject* Cast(v8::Value* obj);
private: private:
static void CheckCast(v8::Value* obj); static void CheckCast(v8::Value* obj);
skipping to change at line 2925 skipping to change at line 2926
/** /**
* A String object (ECMA-262, 4.3.18). * A String object (ECMA-262, 4.3.18).
*/ */
class V8_EXPORT StringObject : public Object { class V8_EXPORT StringObject : public Object {
public: public:
static Local<Value> New(Handle<String> value); static Local<Value> New(Handle<String> value);
V8_DEPRECATED( V8_DEPRECATED(
"Use ValueOf instead", "Use ValueOf instead",
Local<String> StringValue()) const { return ValueOf(); } Local<String> StringValue() const) { return ValueOf(); }
/** /**
* Returns the String held by the object. * Returns the String held by the object.
*/ */
Local<String> ValueOf() const; Local<String> ValueOf() const;
V8_INLINE static StringObject* Cast(v8::Value* obj); V8_INLINE static StringObject* Cast(v8::Value* obj);
private: private:
static void CheckCast(v8::Value* obj); static void CheckCast(v8::Value* obj);
skipping to change at line 2949 skipping to change at line 2950
* A Symbol object (ECMA-262 edition 6). * A Symbol object (ECMA-262 edition 6).
* *
* This is an experimental feature. Use at your own risk. * This is an experimental feature. Use at your own risk.
*/ */
class V8_EXPORT SymbolObject : public Object { class V8_EXPORT SymbolObject : public Object {
public: public:
static Local<Value> New(Isolate* isolate, Handle<Symbol> value); static Local<Value> New(Isolate* isolate, Handle<Symbol> value);
V8_DEPRECATED( V8_DEPRECATED(
"Use ValueOf instead", "Use ValueOf instead",
Local<Symbol> SymbolValue()) const { return ValueOf(); } Local<Symbol> SymbolValue() const) { return ValueOf(); }
/** /**
* Returns the Symbol held by the object. * Returns the Symbol held by the object.
*/ */
Local<Symbol> ValueOf() const; Local<Symbol> ValueOf() const;
V8_INLINE static SymbolObject* Cast(v8::Value* obj); V8_INLINE static SymbolObject* Cast(v8::Value* obj);
private: private:
static void CheckCast(v8::Value* obj); static void CheckCast(v8::Value* obj);
skipping to change at line 3955 skipping to change at line 3956
* Requires: this == Isolate::GetCurrent(). * Requires: this == Isolate::GetCurrent().
*/ */
void Exit(); void Exit();
/** /**
* Disposes the isolate. The isolate must not be entered by any * Disposes the isolate. The isolate must not be entered by any
* thread to be disposable. * thread to be disposable.
*/ */
void Dispose(); void Dispose();
/** V8_DEPRECATED("Use SetData(0, data) instead.",
* Associate embedder-specific data with the isolate. This legacy method V8_INLINE void SetData(void* data));
* puts the data in the 0th slot. It will be deprecated soon. V8_DEPRECATED("Use GetData(0) instead.", V8_INLINE void* GetData());
*/
V8_INLINE void SetData(void* data);
/** /**
* Associate embedder-specific data with the isolate. |slot| has to be * Associate embedder-specific data with the isolate. |slot| has to be
* between 0 and GetNumberOfDataSlots() - 1. * between 0 and GetNumberOfDataSlots() - 1.
*/ */
V8_INLINE void SetData(uint32_t slot, void* data); V8_INLINE void SetData(uint32_t slot, void* data);
/** /**
* Retrieve embedder-specific data from the isolate. This legacy method
* retrieves the data from slot 0. It will be deprecated soon.
* Returns NULL if SetData has never been called.
*/
V8_INLINE void* GetData();
/**
* Retrieve embedder-specific data from the isolate. * Retrieve embedder-specific data from the isolate.
* Returns NULL if SetData has never been called for the given |slot|. * Returns NULL if SetData has never been called for the given |slot|.
*/ */
V8_INLINE void* GetData(uint32_t slot); V8_INLINE void* GetData(uint32_t slot);
/** /**
* Returns the maximum number of available embedder data slots. Valid slo ts * Returns the maximum number of available embedder data slots. Valid slo ts
* are in the range of 0 - GetNumberOfDataSlots() - 1. * are in the range of 0 - GetNumberOfDataSlots() - 1.
*/ */
V8_INLINE static uint32_t GetNumberOfDataSlots(); V8_INLINE static uint32_t GetNumberOfDataSlots();
skipping to change at line 4690 skipping to change at line 4682
* V8 had a chance to clean up. * V8 had a chance to clean up.
*/ */
static int ContextDisposedNotification(); static int ContextDisposedNotification();
/** /**
* Initialize the ICU library bundled with V8. The embedder should only * Initialize the ICU library bundled with V8. The embedder should only
* invoke this method when using the bundled ICU. Returns true on success . * invoke this method when using the bundled ICU. Returns true on success .
*/ */
static bool InitializeICU(); static bool InitializeICU();
/**
* Sets the v8::Platform to use. This should be invoked before V8 is
* initialized.
*/
static void InitializePlatform(Platform* platform);
/**
* Clears all references to the v8::Platform. This should be invoked afte
r
* V8 was disposed.
*/
static void ShutdownPlatform();
private: private:
V8(); V8();
static internal::Object** GlobalizeReference(internal::Isolate* isolate, static internal::Object** GlobalizeReference(internal::Isolate* isolate,
internal::Object** handle); internal::Object** handle);
static internal::Object** CopyPersistent(internal::Object** handle); static internal::Object** CopyPersistent(internal::Object** handle);
static void DisposeGlobal(internal::Object** global_handle); static void DisposeGlobal(internal::Object** global_handle);
typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback; typedef WeakReferenceCallbacks<Value, void>::Revivable RevivableCallback;
typedef WeakCallbackData<Value, void>::Callback WeakCallback; typedef WeakCallbackData<Value, void>::Callback WeakCallback;
static void MakeWeak(internal::Object** global_handle, static void MakeWeak(internal::Object** global_handle,
skipping to change at line 5157 skipping to change at line 5161
class V8_EXPORT Locker { class V8_EXPORT Locker {
public: public:
/** /**
* Initialize Locker for a given Isolate. * Initialize Locker for a given Isolate.
*/ */
V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); } V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); }
~Locker(); ~Locker();
V8_DEPRECATED("This will be remvoed.",
static void StartPreemption(Isolate *isolate, int every_n_m
s));
V8_DEPRECATED("This will be removed",
static void StopPreemption(Isolate* isolate));
/** /**
* Returns whether or not the locker for a given isolate, is locked by th e * Returns whether or not the locker for a given isolate, is locked by th e
* current thread. * current thread.
*/ */
static bool IsLocked(Isolate* isolate); static bool IsLocked(Isolate* isolate);
/** /**
* Returns whether v8::Locker is being used by this V8 instance. * Returns whether v8::Locker is being used by this V8 instance.
*/ */
static bool IsActive(); static bool IsActive();
skipping to change at line 5882 skipping to change at line 5880
Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const { Handle<Boolean> ScriptOrigin::ResourceIsSharedCrossOrigin() const {
return resource_is_shared_cross_origin_; return resource_is_shared_cross_origin_;
} }
Handle<Boolean> Boolean::New(bool value) { Handle<Boolean> Boolean::New(bool value) {
Isolate* isolate = Isolate::GetCurrent(); Isolate* isolate = Isolate::GetCurrent();
return value ? True(isolate) : False(isolate); return value ? True(isolate) : False(isolate);
} }
void Template::Set(const char* name, v8::Handle<Data> value) { void Template::Set(const char* name, v8::Handle<Data> value) {
Set(v8::String::New(name), value); Set(v8::String::NewFromUtf8(Isolate::GetCurrent(), name), value);
} }
Local<Value> Object::GetInternalField(int index) { Local<Value> Object::GetInternalField(int index) {
#ifndef V8_ENABLE_CHECKS #ifndef V8_ENABLE_CHECKS
typedef internal::Object O; typedef internal::Object O;
typedef internal::HeapObject HO; typedef internal::HeapObject HO;
typedef internal::Internals I; typedef internal::Internals I;
O* obj = *reinterpret_cast<O**>(this); O* obj = *reinterpret_cast<O**>(this);
// Fast path: If the object is a plain JSObject, which is the common case , we // Fast path: If the object is a plain JSObject, which is the common case , we
// know where to find the internal fields and can return the value direct ly. // know where to find the internal fields and can return the value direct ly.
 End of changes. 13 change blocks. 
27 lines changed or deleted 25 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/