Re: [v8-users] Building V8 libs for Android on Windows 10

2016-11-07 Thread Trekkie Ufo
Ah thanks Jochen ! Got Ubuntu running in a Virtual box and making good progress. Sanjit On Monday, 7 November 2016 07:35:35 UTC, Jochen Eisinger wrote: > > Hi, > > we currently only support building for Android on a Linux or a Mac host. > > best > -jochen > > On Sun, Nov 6, 2016 at 2:37 PM Tr

[v8-users] Re: Different stack between strict and sloppy mode.

2016-11-07 Thread Yang Guo
Could it be that you somehow enabled tail call optimization? What happens if you use --no-harmony-tailcalls? If that's not it... we indeed also changed the implementation of stack traces a bit between 4.6 and 5.3. A (preferably reduced) repro would be great to find out what exactly is going on.

Re: [v8-users] Memory allocation tracking in V8

2016-11-07 Thread Michael Lippautz
On Fri, Nov 4, 2016 at 4:01 PM Ivan P. wrote: Hello, I am porting my app to latest stable version of the V8 engine from quite legacy V8 3.19. I was using v8::V8::AddMemoryAllocationCallback() to set callaback on the memory allocation actions. But now I can't find this function. What is analog to

Re: [v8-users] Memory allocation tracking in V8

2016-11-07 Thread Jochen Eisinger
in general, you can check bit.ly/v8-api-changes to learn about replacements for deprecated and removed APIs On Mon, Nov 7, 2016 at 11:51 AM Michael Lippautz wrote: > On Fri, Nov 4, 2016 at 4:01 PM Ivan P. wrote: > > Hello, I am porting my app to latest stable version of the V8 engine from > qui

Re: [v8-users] Building V8 libs for Android on Windows 10

2016-11-07 Thread Trekkie Ufo
Hi, managed to install everything on Ubuntu Linux and fired off a V8 build for Android. (1) gn gen out.gn/foo --args='is_debug=false target_cpu="arm64" v8_target_cpu="arm64" use_goma=false target_os = "android" is_component_build = true ' (2) ninja -C out.gn/foo I keep getting errors like the

Re: [v8-users] V8 build failure for PowerPC

2016-11-07 Thread Yugandha Deshpande
Hi, I tried gclient sync after switching branches: git checkout branch-heads/5.4 gclient sync Now I am getting following error: *Error Log:* running 'download_from_google_storage --no_resume --platform=linux* --no_auth --bucket chromium-gn -s v8/buildtools/linux64/gn.sha1' in '/roo

[v8-users] How extend a C++ created class in JavaScript

2016-11-07 Thread George Marques
I'm trying to embed V8 5.4 into a game engine. I want to expose the engine types to JavaScript as ES6 classes. I am actually able to do that, but when I extend the class in JavaScript the methods are not being overridden by the JS code. Here's a sample of how I am doing it: class Point { publi

[v8-users] Re: How extend a C++ created class in JavaScript

2016-11-07 Thread George Marques
Solved my problem. I had to use point_constructor->InstanceTemplate() only to set the internal field count. To set the methods I need to use point_constructor->PrototypeTemplate(). Still struggling a bit to understand *why* it has to be that way. V8 internals is kind of a mystery. On Monday, N