On 2009/12/09 22:26:33, Maxim.Mossienko wrote:
> As to CL#435003 (several v8 instances in process) there is no much  
> difference
to
> hold function pointer or instance of abstract class inside V8Context.

Soren, Maxim

Let me explain my point about point function vs. pointer to object of  
abstract
class in more words.

What seems important to me is that object can hold some data, while function
cannot.
If you should have N instances of V8 (like with CL#435003), you can provide  
N
different instances of abstract class, but you can't provide N different
functions.
And in function you'll have a challenge to tell which instance of V8 it  
should
work with and furthermore to get some embedder-specific data for this  
instance.

On the other hand functions may be a bit more cheaper, but since we are  
talking
about debugging, it doesn't really make sense.

http://codereview.chromium.org/481005

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to