[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1

2009-07-16 Thread Stephan Beal
On Thu, Jul 16, 2009 at 3:23 AM, Tom Robinson tlrobin...@gmail.com wrote: #define __amd64 1 According to the v8 home page, i32 and ARM are supported, but not i64. Then again, the wording is a bit ambiguous: ...runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use

[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1

2009-07-16 Thread Tom Robinson
Someone mentioned to me that the bleeding_edge branch as i64 support, so I tried compiling that with the arch=x64 flag, but no such luck. Different error though: [3][0] ~/scratch/v8-bleeding $ scons arch=x64 scons: Reading SConscript files ... scons: done reading SConscript files. scons:

[v8-users] Property Interceptors - anything similar for functions?

2009-07-16 Thread Ravi
Hi, The property interceptors provide a way to handle any object property with a callback. I was wondering if there is something similar to handle any object method. Thank you, Ravi --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com

[v8-users] Re: Property Interceptors - anything similar for functions?

2009-07-16 Thread Matthias Ernst
A method is nothing but a property with a function as value. So you can do: object_template-Set( f, FunctionTemplate::New(callback)-GetFunction()); or with a property accessor: HandleValue return_data(LocalString property, const AccessorInfo info) { return info.Data(); }

[v8-users] Re: Property Interceptors - anything similar for functions?

2009-07-16 Thread Ravi
Thanks Stephan. Interceptors do seem to handle functions, but, I couldn't figure out a way to access the function arguments. I wish there were an example for such a scenario. On Jul 16, 11:22 am, Stephan Beal sgb...@googlemail.com wrote: On Thu, Jul 16, 2009 at 5:06 PM, Ravi chinn...@yahoo.com

[v8-users] Re: Property Interceptors - anything similar for functions?

2009-07-16 Thread Dean McNamee
The interceptor just returns the function, you aren't calling the function. The arguments come in when you call the function. On Thu, Jul 16, 2009 at 5:39 PM, Ravichinn...@yahoo.com wrote: Thanks Stephan. Interceptors do seem to handle functions, but, I couldn't figure out a way to access

[v8-users] novel use of v8 - CSS Scripting Layout

2009-07-16 Thread darrel karisch
I've produced a proposal for a CSS Scripting Layout specification. I've extended Chrome as a sample implementation. Of course, it relies heavily on v8 and I have gleaned a lot of useful knowledge from this group over the course of its development. I think it is a novel use of v8 and may be of

[v8-users] Re: Property Interceptors - anything similar for functions?

2009-07-16 Thread Ravi
Thanks Dean. The scenario I'm working on is: having a generic handler to capture all the property and method calls on an object. For example, let's say an object Obj is being used in javaScript, I'd like to capture and record any operation on that Obj, like var a = Obj.A document.write(a)

[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1

2009-07-16 Thread Ivan Posva
Tom, Can you please try with bleeding_edge revision 2489? This should make sure that the gcc flags and the target architecture are consistent. I do not have a Snow Leopard machine to test on currently, but this change should fix the confusion of gcc building for a 64-bit target when we are