v8-debug.h   v8-debug.h 
skipping to change at line 235 skipping to change at line 235
static void SetDebugMessageDispatchHandler( static void SetDebugMessageDispatchHandler(
DebugMessageDispatchHandler handler, bool provide_locker = false); DebugMessageDispatchHandler handler, bool provide_locker = false);
/** /**
* Run a JavaScript function in the debugger. * Run a JavaScript function in the debugger.
* \param fun the function to call * \param fun the function to call
* \param data passed as second argument to the function * \param data passed as second argument to the function
* With this call the debugger is entered and the function specified is ca lled * With this call the debugger is entered and the function specified is ca lled
* with the execution state as the first argument. This makes it possible to * with the execution state as the first argument. This makes it possible to
* get access to information otherwise not available during normal JavaScr ipt * get access to information otherwise not available during normal JavaScr ipt
* execution e.g. details on stack frames. The following example show a * execution e.g. details on stack frames. Receiver of the function call w
* JavaScript function which when passed to v8::Debug::Call will return th ill
e * be the debugger context global object, however this is a subject to cha
* current line of JavaScript execution. nge.
* The following example show a JavaScript function which when passed to
* v8::Debug::Call will return the current line of JavaScript execution.
* *
* \code * \code
* function frame_source_line(exec_state) { * function frame_source_line(exec_state) {
* return exec_state.frame(0).sourceLine(); * return exec_state.frame(0).sourceLine();
* } * }
* \endcode * \endcode
*/ */
static Local<Value> Call(v8::Handle<v8::Function> fun, static Local<Value> Call(v8::Handle<v8::Function> fun,
Handle<Value> data = Handle<Value>()); Handle<Value> data = Handle<Value>());
skipping to change at line 300 skipping to change at line 301
* as V8 script would be invoked from, because: * as V8 script would be invoked from, because:
* a. with "evaluate" command it can do whatever normal script can do, * a. with "evaluate" command it can do whatever normal script can do,
* including all native calls; * including all native calls;
* b. no other thread should call V8 while this method is running * b. no other thread should call V8 while this method is running
* (v8::Locker may be used here). * (v8::Locker may be used here).
* *
* "Evaluate" debug command behavior currently is not specified in scope * "Evaluate" debug command behavior currently is not specified in scope
* of this method. * of this method.
*/ */
static void ProcessDebugMessages(); static void ProcessDebugMessages();
/**
* Debugger is running in it's own context which is entered while debugge
r
* messages are being dispatched. This is an explicit getter for this
* debugger context. Note that the content of the debugger context is sub
ject
* to change.
*/
static Local<Context> GetDebugContext();
}; };
} // namespace v8 } // namespace v8
#undef EXPORT #undef EXPORT
#endif // V8_V8_DEBUG_H_ #endif // V8_V8_DEBUG_H_
 End of changes. 2 change blocks. 
4 lines changed or deleted 16 lines changed or added


 v8.h   v8.h 
skipping to change at line 2669 skipping to change at line 2669
public: public:
/** Returns the global object of the context. */ /** Returns the global object of the context. */
Local<Object> Global(); Local<Object> Global();
/** /**
* Detaches the global object from its context before * Detaches the global object from its context before
* the global object can be reused to create a new context. * the global object can be reused to create a new context.
*/ */
void DetachGlobal(); void DetachGlobal();
/**
* Reattaches a global object to a context. This can be used to
* restore the connection between a global object and a context
* after DetachGlobal has been called.
*
* \param global_object The global object to reattach to the
* context. For this to work, the global object must be the global
* object that was associated with this context before a call to
* DetachGlobal.
*/
void ReattachGlobal(Handle<Object> global_object);
/** Creates a new context. */ /** Creates a new context. */
static Persistent<Context> New( static Persistent<Context> New(
ExtensionConfiguration* extensions = NULL, ExtensionConfiguration* extensions = NULL,
Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(), Handle<ObjectTemplate> global_template = Handle<ObjectTemplate>(),
Handle<Value> global_object = Handle<Value>()); Handle<Value> global_object = Handle<Value>());
/** Returns the last entered context. */ /** Returns the last entered context. */
static Local<Context> GetEntered(); static Local<Context> GetEntered();
/** Returns the context that is on the top of the stack. */ /** Returns the context that is on the top of the stack. */
skipping to change at line 3242 skipping to change at line 3254
} }
External* External::Cast(v8::Value* value) { External* External::Cast(v8::Value* value) {
#ifdef V8_ENABLE_CHECKS #ifdef V8_ENABLE_CHECKS
CheckCast(value); CheckCast(value);
#endif #endif
return static_cast<External*>(value); return static_cast<External*>(value);
} }
Local<Value> AccessorInfo::Data() const { Local<Value> AccessorInfo::Data() const {
return Local<Value>(reinterpret_cast<Value*>(&args_[-3])); return Local<Value>(reinterpret_cast<Value*>(&args_[-2]));
} }
Local<Object> AccessorInfo::This() const { Local<Object> AccessorInfo::This() const {
return Local<Object>(reinterpret_cast<Object*>(&args_[0])); return Local<Object>(reinterpret_cast<Object*>(&args_[0]));
} }
Local<Object> AccessorInfo::Holder() const { Local<Object> AccessorInfo::Holder() const {
return Local<Object>(reinterpret_cast<Object*>(&args_[-1])); return Local<Object>(reinterpret_cast<Object*>(&args_[-1]));
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 13 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/