Re: [v8-users] Are valid Smis ever stored in a HeapNumber?

2014-12-08 Thread Adam Klein
Makes sense, thanks. On Mon, Dec 8, 2014 at 1:12 PM, 'Andreas Rossberg' via v8-users < v8-users@googlegroups.com> wrote: > On 8 December 2014 at 20:53, Adam Klein wrote: > > Subject says it all. I was surprised not to find a DCHECK in > > Heap::AllocateHeapNumber asserting this is the case, and

Re: [v8-users] Are valid Smis ever stored in a HeapNumber?

2014-12-08 Thread 'Andreas Rossberg' via v8-users
On 8 December 2014 at 20:53, Adam Klein wrote: > Subject says it all. I was surprised not to find a DCHECK in > Heap::AllocateHeapNumber asserting this is the case, and wondered why. You mean, do we normalise all numbers within smi range to smis? No, since that would require potentially expensive

[v8-users] Are valid Smis ever stored in a HeapNumber?

2014-12-08 Thread Adam Klein
Subject says it all. I was surprised not to find a DCHECK in Heap::AllocateHeapNumber asserting this is the case, and wondered why. - Adam -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to t

[v8-users] Re: [blink-dev] Re: Shipping new Javascript features in V8

2014-12-08 Thread Dmitry Lomov
On Sun, Dec 7, 2014 at 5:39 PM, wrote: > Thanks Dmitry. I like the enhanced level of control the feature-shipping > process now exposes. One piece of feedback: in about:flags the labelling > for "#disable-javascript-harmony-shipping" is *Disable latest stable > JavaScript features.* > > For a dev

Re: [v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-08 Thread Jakob Kummerow
Yes. Essentially, you can copy any raw data (in the C++ sense: ints, doubles, strings, etc.), nothing that's stored in a handle. JSON is your friend. You can also work with external ArrayBuffers, but then you'll have to ensure that no two threads can access the same buffer at any time. On Mon, Dec

Re: [v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-08 Thread Nick Kelly
So, I guess I will have to manually copy over certain members that I need and create a new object/handle on the new isolate? On Monday, December 8, 2014 3:31:01 AM UTC-6, Jakob Kummerow wrote: > > You can't move objects from one isolate to another. > > > On Sun, Dec 7, 2014 at 6:35 AM, Nick Kelly

Re: [v8-users] xcode not detecting full SetAccessor function definition.

2014-12-08 Thread Jakob Kummerow
On Sun, Dec 7, 2014 at 2:59 AM, Alberto Gonzalez wrote: > I'm having this compilation problem with the latest version of xcode. When > trying to use the class SetAccessor > SetAccessor is not a class. > and passing a setter function, it tells me "No matching member function > for call to 'SetA

Re: [v8-users] Local Handle to Persistent (Multiple Isolates)

2014-12-08 Thread Jakob Kummerow
You can't move objects from one isolate to another. On Sun, Dec 7, 2014 at 6:35 AM, Nick Kelly wrote: > Hello, > > I am modifying the v8 engine to basically pass control of a function over > to the embedder. Basically, I currently have a runtime function which > gathers the current function, ar