Re: [v8-users] Re: [v8-team] [v8-status-updates] Intent to ship: module namespace exports

2018-10-15 Thread Jochen Eisinger
v8-status-updates to BCC Please don't mix internal and external mailing lists Sathya Gunasekaran schrieb am Mo., 15. Okt. 2018, 06:22: > LGTM > On Mon, Oct 15, 2018 at 2:58 PM Georg Neis wrote: > > > > Summary > > This feature extends the existing syntax for module exports by the form > >

Re: [blink-dev] Re: [v8-users] Intent to Ship: Optional catch binding

2018-01-26 Thread Jochen Eisinger
I thought V8 wanted to use the blink process nowadays? On Thu, Jan 18, 2018 at 10:32 PM Adam Klein wrote: > LGTM! > > Note that this is a v8/JavaScript feature, so this is just an FYI for > blink-dev at the moment. > > On Thu, Jan 18, 2018 at 12:19 PM, Sathya Gunasekaran

Re: [v8-users] Adding Signature to my FunctionTemplate but "derived types" calling functions get Illegal Invocation errors

2017-05-29 Thread Jochen Eisinger
chain for an object of >> that type when the function is called. >> >> >> Given my code, I don't understand why making an object that directly sets >> its prototype as an object capable of calling a function with a signature >> wouldn't be able to call that s

Re: [v8-users] Adding Signature to my FunctionTemplate but "derived types" calling functions get Illegal Invocation errors

2017-05-29 Thread Jochen Eisinger
A signature requires the object either be constructed from the same FunctionTemplate (as e.g. new MyType() does), or from a FunctionTemplate that inherited from the signature's FunctionTemplate. Note however that the "info.Holder" would still point at the receiver, and not the prototype with the

Re: [v8-users] Cryptic out-of-memory error

2017-05-11 Thread Jochen Eisinger
Thank you for the detailed bug report. I tried reproducing this on the latest version of V8, but couldn't observe the behavior you described. Have you considered updating to at least the latest stable version of V8? On Wed, May 10, 2017 at 7:50 PM Andre Cunha wrote:

Re: [v8-users] Re: Isolate Creation Times

2017-02-23 Thread Jochen Eisinger
Hey That sounds odd. Could you file a bug at crbug.com/v8/new and provide the gn args you used for building? Thanks Jochen Brendan Bates schrieb am Do., 23. Feb. 2017, 18:07: > I should also note that I can replicate this by simply running the d8 > executable, which

Re: [v8-users] Can not generate v8_version.lib on Windows

2017-02-09 Thread Jochen Eisinger
fix here: https://chromium-review.googlesource.com/c/440244/ On Wed, Feb 8, 2017 at 11:10 AM Dongbo wrote: > On windows, with gn args is_debug=false v8_static_library=true > v8_use_external_startup_data=false > I got the following error when building v8 via 'ninja -C xxx' >

Re: [v8-users] v8 linker issues for android build on Mac

2017-01-26 Thread Jochen Eisinger
ny prebuilts? I know you had been submitting patches in December to > move this forward > > On Wed, Jan 25, 2017 at 5:04 AM, Jochen Eisinger <joc...@chromium.org> > wrote: > > Using gn to build for android on mac is not yet supported, sorry (and I > realize that the make

Re: [v8-users] v8 build issues for Android.

2017-01-25 Thread Jochen Eisinger
Building with gyp is no longer support (sorry about the outdated docs). You'll have to use gn and set target_os = "android" and target_cpu = "arm" hth -jochen On Tue, Jan 24, 2017 at 6:11 PM Dzung Tran wrote: > I followed the instructions on >

Re: [v8-users] v8 linker issues for android build on Mac

2017-01-25 Thread Jochen Eisinger
Using gn to build for android on mac is not yet supported, sorry (and I realize that the make based version is also no longer supported...) sorry about that :/ On Wed, Jan 25, 2017 at 2:08 AM Mindy DelliCarpini wrote: > > > I built libv8_base, libv8_libbase, these as full

Re: [v8-users] how to get the v8 the type T value of handle type

2017-01-19 Thread Jochen Eisinger
location_ should be of type T**, so you could print *(v8::internal::Script)**0x5562ae08 or (assuming the compiler didn't inline the operator*), you could just derefence the handle and print *$2 On Fri, Jan 20, 2017 at 6:25 AM Jason Zoo wrote: > Hi,I use lldb debug v8 >

Re: [v8-users] LINK PROBLEM sqlite wants system ICU libs, v8 wants private 3rd party versions

2017-01-19 Thread Jochen Eisinger
You should be able to compile v8 against the system ICU library following these steps: https://cs.chromium.org/chromium/src/build/linux/unbundle/?q=src/build/linux/unbundle If you set v8_static_library = true and is_component_build = false you should get static libraries best -jochen On Thu,

Re: [v8-users] Streams and InternalPackedArray queue scalability

2017-01-17 Thread Jochen Eisinger
+Domenic Denicola On Wed, Jan 18, 2017 at 4:25 AM Adam Rice wrote: > I work on the Chrome implementation of ReadableStream and WritableStream > . They are implemented in Javascript > using v8 extras. > > They currently

Re: [v8-users] Implication of the context parameter in v8::Object::Set().

2017-01-17 Thread Jochen Eisinger
right. also, it makes it explicit in which context a possible exception should be thrown On Wed, Jan 18, 2017 at 8:19 AM Ben Noordhuis wrote: > On Tue, Jan 17, 2017 at 9:03 PM, Jane Chen wrote: > > Why does v8::Object::Set() takes a context parameter

Re: [v8-users] How to compile the samples/hello-world.cc example on ubuntu 64 bit ?

2017-01-11 Thread Jochen Eisinger
can you build a current version of V8 (using gn/ninja)? On Fri, Jan 6, 2017 at 8:25 PM <vertabso...@gmail.com> wrote: > Thank you for your answer Jochen Eisinger, but I tried this and it didn't > work, of course. I couldn't switch to the 4.8 version of v8, I don't know > why. Mo

Re: [v8-users] Re: Building with MSVC & GN - Where do the static files go?

2017-01-11 Thread Jochen Eisinger
With the latest dev version of V8 (5.7), you should be able to get static libraries using the gn flag v8_static_library = true On Tue, Jan 10, 2017 at 4:26 PM Hans Maier wrote: > Hi, > > I had the same issue. I ended up creating the static libs from the > obj-files using

Re: [v8-users] How to compile the samples/hello-world.cc example on ubuntu 64 bit ?

2017-01-02 Thread Jochen Eisinger
https://github.com/v8/v8/wiki/Getting%20Started%20with%20Embedding explains how to compile the sample note that if you build all of v8, the hello world sample will be compiled automatically On Sun, Dec 25, 2016 at 8:39 PM wrote: > Hello everyone, > > I am new to v8. I am

Re: [v8-users] building V8 for Android on Mac or ubuntu w static libs?

2016-12-22 Thread Jochen Eisinger
hey, to build for android, you should add target_os = "android" and target_cpu = "arm". you'll also have to add target_os = ['android', 'mac'] to your .gclient file (which should be one level up from your v8 checkout), so gclient sync will download the android specific deps hth -jochen On Thu,

Re: [v8-users] Looking for streamlined way to access object properties

2016-12-07 Thread Jochen Eisinger
You could use v8::Object::GetOwnPropertyNames instead of trying each key individually On Tue, Dec 6, 2016 at 11:04 PM kent williams wrote: > There's a convention that we use for our C++ native functions called from > C++, where required arguments are followed

Re: [v8-users] gypfiles/gyp_v8 options to this script

2016-12-07 Thread Jochen Eisinger
no, the options aren't documented :-/ However, gyp is deprecated, have you looked at gn yet? On Wed, Dec 7, 2016 at 9:30 AM wrote: > Is there anywhere documented what options and values does gypfiles/gyp_v8 > script take ? > > -- > -- > v8-users mailing list >

Re: [v8-users] Re: What's the correct way to build V8 as a static library on macOS?

2016-12-05 Thread Jochen Eisinger
pting to load shared libraries from > the executable's path, which doesn't work for the intended directory > arrangement: > > lib > lib/libv8.dylib > lib/libicuuc.dylib > lib/libicui18n.dylib > bin > bin/v8 > > > On Monday, 28 November 2016 20:51:45 UTC+1

Re: [v8-users] Segfault calling v8::Persistent::Reset.

2016-12-02 Thread Jochen Eisinger
Can you reproduce this and catch it in a debugger? Or run with ASAN enabled? On Fri, Dec 2, 2016 at 2:18 AM Jane Chen wrote: > Embedding v8 5.3. Seeing a segfault in our stress test: > > Critical: #6 0x7fbf3f6c0173 in > v8::internal::GlobalHandles::Node::Release() ()

Re: [v8-users] Re: What's the correct way to build V8 as a static library on macOS?

2016-11-28 Thread Jochen Eisinger
with https://codereview.chromium.org/2373783002/ it should be possible to set v8_static_library to true to get static libraries On Sat, Nov 26, 2016 at 9:05 AM John Gardner wrote: > A tracking issue at > Electron's

Re: [v8-users] v8 gyp for inspector dll configuration fails

2016-11-28 Thread Jochen Eisinger
I guess https://codereview.chromium.org/2529333002 should fix this On Thu, Nov 24, 2016 at 7:48 PM iva wrote: > Hi, > > I am trying to build v8 with the inspector support. The v8 is linked as > dll. On Windows 10, environment variable set for vs2015. Generator set to >

Re: [v8-users] InternalFieldCount seems to be ignored when ConstructorBehavior is kThrow

2016-11-28 Thread Jochen Eisinger
could you file a bug including a repro at crbug.com/v8/new please? thanks -jochen On Sat, Nov 26, 2016 at 2:14 AM wrote: > When I set the constructor behavior on my FunctionTemplate to kThrow > (instead of the default kAllow), then create an object from the template > using

Re: [v8-users] Unable to download V8 on Ubuntu Linux

2016-11-12 Thread Jochen Eisinger
it looks like the connection to the download servers timed out. Maybe try again? On Thu, Nov 10, 2016 at 7:39 AM wrote: > Trying to compile V8 for Android. I have Depot Tools, G++ etc all setup > and running. > > The "gclient sync" command seems to exit with an error. On

Re: [v8-users] libstdc++ from gcc4.6 used to build ICU and v8?

2016-11-12 Thread Jochen Eisinger
sh. Does v8 support swapping sysroot with > something else? If so, where can I find some information in doing so? > > > On Wednesday, November 2, 2016 at 3:48:37 AM UTC-7, Jochen Eisinger wrote: > > This is because the sysroot (in build/linux/) is outdated. I filed > crbug.co

Re: [v8-users] Re: Linking V8 to app on Windows

2016-11-10 Thread Jochen Eisinger
on 5.3, it's not yet possible to build the libplatform as a shared library (dll), sorry. This is fixed in the current development branch. also, by default we don't actually create static libraries, but gn just keeps track of the object files you need. You can change that by manually replacing

Re: [v8-users] Embedded v8 in Android: crash when executing persistent Function in another thread

2016-11-10 Thread Jochen Eisinger
can you file a bug at crbug.com/v8/new please? It would be great if you could provide a complete repro case! thanks -jochen On Thu, Nov 10, 2016 at 11:14 AM Kevin Read wrote: > Hi all, > > I'm in the process of porting my embedded v8 from a very old version to > current

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

2016-11-08 Thread Jochen Eisinger
Looks like you might need to install the g++ package? On Mon, Nov 7, 2016 at 12:39 PM Trekkie Ufo wrote: > 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" >

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

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

2016-11-06 Thread Jochen Eisinger
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 Trekkie Ufo wrote: > Hi > I am trying to build V8 for use in a plugin I am developing for the Unreal > Engine 4. My aim is to run the project on the

Re: [v8-users] Compiling 5.4 v8 for Android

2016-11-02 Thread Jochen Eisinger
I'm not sure, but I think component builds aren't fully supported yet on 5.4, sorry On Fri, Oct 28, 2016 at 9:25 PM Kevin Read wrote: > Hi all, > > I'm trying to compile 5.4.500.36 for android using GN. My GN config is: > > is_debug=false v8_target_cpu="x86"

Re: [v8-users] Breaking On Native Function Calls

2016-10-19 Thread Jochen Eisinger
As far as I know that's not possible. Could you file a feature request for this (probably on crbug.com if you also want to cover DOM functions) On Wed, Oct 19, 2016 at 7:38 PM PhistucK wrote: > I wanted to know whether there is a V8 (or Chrome) flag of some sort that > will

Re: [v8-users] ICU options in GN

2016-10-19 Thread Jochen Eisinger
You have to follow the steps outlined in build/linux/unbundle/README to use the system icu implementation On Wed, Oct 19, 2016 at 7:50 PM Andre Cunha wrote: > Hello, > > The Building with GYP > Wiki page describes >

Re: [v8-users] Re: get error try to get v8 code ,clone depot_tools

2016-10-19 Thread Jochen Eisinger
This implies that either you don't have an up to date list of trusted root certificates installed, or there's a proxy somewhere between you and the internet that intercepts ssl traffic. In both cases, you need to fix your local network configuration. On Thu, Oct 20, 2016 at 3:35 AM Zuheng Song

Re: [v8-users] Re: building v8 fails on bytecode-peephole-table.cc because libv8_libbase.dylib not found

2016-10-19 Thread Jochen Eisinger
gyp, because it's > supported until gn works on a platform".. but when neither works, I don't > know which to ask about how to use. > > Thank you for all your help. > > --Zac > > On Tue, Oct 18, 2016 at 12:49 PM, Jochen Eisinger <joc...@chromium.org> >

Re: [v8-users] Re: building v8 fails on bytecode-peephole-table.cc because libv8_libbase.dylib not found

2016-10-18 Thread Jochen Eisinger
; > Linking against the static version takes forever, so dylibs are the only > way to go. > > On Tue, Oct 18, 2016 at 12:31 AM, Jochen Eisinger <joc...@chromium.org> > wrote: > > I'm surprised that the component build with gyp on mac ever worked for > you, it neve

Re: [v8-users] 18n support flags with gn build

2016-10-18 Thread Jochen Eisinger
I haven't tried this myself yet, but you should be able to use the system icu by following the steps outlined here: https://cs.chromium.org/chromium/src/build/linux/unbundle/README for icu. On Mon, Oct 17, 2016 at 7:25 PM Temuri Imnaishvili wrote: > Hi, > > There's this

Re: [v8-users] Re: building v8 fails on bytecode-peephole-table.cc because libv8_libbase.dylib not found

2016-10-18 Thread Jochen Eisinger
I'm surprised that the component build with gyp on mac ever worked for you, it never did for me :-/ On Tue, Oct 18, 2016 at 5:32 AM Zac Hansen wrote: > manually copying the file into /usr/local/lib works. Someone said it > might have to do with the "install_name" being

Re: [v8-users] Building v8

2016-10-17 Thread Jochen Eisinger
roblem. Can you provide us with help on compiling it > correctly? > > Thanks! > > > On Tuesday, 20 September 2016 03:25:21 UTC-4, Jochen Eisinger wrote: > > If you want to build v8 with shared libraries, set the gn arg > is_component_build=true > > Yes, we intend to

Re: [v8-users] Re: How to build V8 on Linux using GCC instead of Clang?

2016-10-12 Thread Jochen Eisinger
I assume that CentOS 7 doesn't have the required libraries to compile the latest version of V8. On Tue, Oct 11, 2016 at 4:19 PM Ivan Pizhenko wrote: > Tried this. I have following args.gn > > is_debug=true > is_component_build=true > target_cpu="x64" >

Re: [v8-users] Temporary ObjectTemplate

2016-10-12 Thread Jochen Eisinger
t for? > > > On Monday, October 10, 2016 at 5:08:54 AM UTC-7, Riccardo Corsi wrote: > > will do, thanks! > > On Fri, Oct 7, 2016 at 7:19 AM, Jochen Eisinger <joc...@chromium.org> > wrote: > > If possible, reusing the object template will save space, and is pr

Re: [v8-users] How to retain or reacquire v8::ScriptCompiler::Source object?

2016-10-12 Thread Jochen Eisinger
you can get the ScriptOrigin from a v8::Function via GetScriptOrigin. You can also ToString a function to get the source, but you could as well create a global to the source. On Wed, Oct 12, 2016 at 12:49 AM Zac Hansen wrote: > I'd like to keep around the data in a

Re: [v8-users] Temporary ObjectTemplate

2016-10-06 Thread Jochen Eisinger
If possible, reusing the object template will save space, and is preferable On Thu, Oct 6, 2016 at 8:18 PM Riccardo Corsi wrote: > Hi all, > > I'm using ObjectTemplate to create JS empty objects that are simple > wrappers of a c++ object > (in the JS code they are

Re: [v8-users] Re: Weak callback for function callback data never getting called

2016-10-04 Thread Jochen Eisinger
bl...@icloud.com> wrote: > > Interesting. So when a function template is created, its callback data > will never be freed? > > ~Theodore > > On Oct 4, 2016, at 1:17 AM, Jochen Eisinger <joc...@chromium.org> wrote: > > v8 has an per-isolate cache of function temp

Re: [v8-users] Re: Building V8 on FreeBSD

2016-10-04 Thread Jochen Eisinger
If you run the mb.py command directly (python -u tools/mb/mb.py gen -f infra/mb/mb_config.pyl -m developer_default -b x64.release out.gn/x64.release) does it print a more verbose error message? On Tue, Oct 4, 2016 at 9:17 PM Jose Madrigal wrote: > I been trying follow the

Re: [v8-users] linking error while building V8 for Android device using GN and Ninja

2016-09-28 Thread Jochen Eisinger
did you install the arm64 sysroot? On Wed, Sep 21, 2016 at 9:33 AM Yakir E wrote: > Hi all, > I am trying in the last few days to build V8 for Android. I am using > Ubuntu 64bit as the build machine. After a lot of tries I was able to make > ninja to start the build but after

Re: [v8-users] Re: Disabling All Of The Optimizations

2016-09-27 Thread Jochen Eisinger
; includes the change)? I had to instruct the test teams to use > --js-flags="--no-crankshaft" for now, which is not ideal... > > > ☆*PhistucK* > > On Mon, Sep 26, 2016 at 9:42 AM, Jochen Eisinger <joc...@chromium.org> > wrote: > > Thanks for tracking this

Re: [v8-users] No libv8.a generated for either X64 or ARM64 build.

2016-09-27 Thread Jochen Eisinger
Currently, we don't create an .a file, but assume that the embedding app also uses gn which would then just pass the list of all object files on. I filed https://bugs.chromium.org/p/v8/issues/detail?id=5435 to track this issue in general On Mon, Sep 26, 2016 at 10:21 PM Nonny Mouse

Re: [v8-users] Re: Getting invalid (very high) line numbers from failed compile within v8::ScriptCompiler::CompileFunctionInContext

2016-09-26 Thread Jochen Eisinger
CompileFunctionInContext is equivalent to using with (context_extension) { } around your function which is different from pretending it was inside some other function. As for the odd line numbers, can you provide a complete repro case? On Sat, Sep 24, 2016 at 1:12 PM Zac Hansen

Re: [v8-users] Re: Disabling All Of The Optimizations

2016-09-26 Thread Jochen Eisinger
Thanks for tracking this down. In general, if you're willing / able to provide a repro case, we're happy to investigate suchs bugs ourselves, so you don't have to go through the trouble of bisecting this.. On Sun, Sep 25, 2016 at 6:06 PM PhistucK wrote: > After bisecting,

Re: [v8-users] Building v8 with gn.

2016-09-22 Thread Jochen Eisinger
On Thu, Sep 22, 2016 at 1:22 AM Jane Chen wrote: > Trying to build v8 5.3-lkgr with gn for embedding use. > > When I build with GYP, I need to set "-Dv8_use_external_startup_data=0". > Is there an equivalent setting flag for gn? > the equivalent gn setting is

Re: [v8-users] Building v8 with Visual Studio 2015 on Windows 10

2016-09-21 Thread Jochen Eisinger
If you want to build with MSVS, you need the msvs gyp generator. msvs-ninja only supports browsing the project, not building it On Tue, Sep 20, 2016 at 10:04 AM Pieter wrote: > > I have been struggling for a couple of days to get the correct > incantations to get a

Re: [v8-users] Undefined reference to `v8::platform::CreateDefaultPlatform(int)`

2016-09-21 Thread Jochen Eisinger
I filed https://bugs.chromium.org/p/v8/issues/detail?id=5412 as feature request On Wed, Sep 21, 2016 at 10:50 AM Jochen Eisinger <joc...@chromium.org> wrote: > libplatform currently does not support dynamic linking. > > On Tue, Sep 20, 2016 at 7:43 PM Andre Cunha <andre.

Re: [v8-users] Undefined reference to `v8::platform::CreateDefaultPlatform(int)`

2016-09-21 Thread Jochen Eisinger
libplatform currently does not support dynamic linking. On Tue, Sep 20, 2016 at 7:43 PM Andre Cunha wrote: > Hello, > > I'm trying to dynamically load libplatform in an application I'm writing. > I searched through the available gn options, but I couldn't find an

Re: [v8-users] Building v8

2016-09-20 Thread Jochen Eisinger
and give that a shot. Are there any plans on upgrading the > Embedded Guide to something more recent than v4.8? > If I work this out - would I be able to contribute to the wiki to update > it for everyone else? > > > On Thursday, September 15, 2016 at 10:11:01 PM UTC-7, Jochen Eisinger

Re: [v8-users] Problem getting V8 sources

2016-09-20 Thread Jochen Eisinger
To get dll files, you'll need to set component=shared_library in your GYP_DEFINES env variable, or set is_component_build = true in your gn args, depending on which build system you use. On Mon, Sep 19, 2016 at 6:11 AM Ivan Pizhenko wrote: > Thank you Pavel. This may be

Re: [v8-users] Re: Need to re-run gn for build options to take effect

2016-09-20 Thread Jochen Eisinger
v8gen creates the input for gn. gn creates the input for ninja. ninja builds the binaries. You can use gn gen out.gn/x64.release instead of gn args if you don't intend to change the args anyways. best -jochen On Mon, Sep 19, 2016 at 9:19 PM Andre Cunha wrote: > PS:

Re: [v8-users] Problem getting V8 sources

2016-09-16 Thread Jochen Eisinger
load_gold_plugin.py' in 'L:\v8-build' > Gold plugin download not supported on windows. > > running 'L:\depot_tools\python276_bin\python.exe > v8/tools/clang/scripts/update.py --if-needed' in 'L:\v8-build' > > > running 'L:\depot_tools\python276_bin\pyth

Re: [v8-users] Modules and TypeScript in plain V8 embedding Project

2016-09-15 Thread Jochen Eisinger
V8 itself doesn't support typescript, you'll have to compile your sources to javascript first. We're currently working on native module support, but that's not yet ready for use, so if you want modules, you will need to implement a module loader yourself (as e.g. node.js does) On Thu, Sep 15,

Re: [v8-users] Building v8

2016-09-15 Thread Jochen Eisinger
by default, we build thin archives which are suitable for static linking against other apps, and yes, you will need the .o files around for that. If you'd rather have shared libraries (.so files), set the gn arg is_component_build = true br -jochen On Thu, Sep 15, 2016 at 5:07 PM Travis Sharp

Re: [v8-users] Problem getting V8 sources

2016-09-15 Thread Jochen Eisinger
Please set the env variable DEPOT_TOOLS_WIN_TOOLCHAIN to 0 and try again On Thu, Sep 15, 2016 at 3:44 PM Ivan Pizhenko wrote: > Actually, differs a bit but still similar to previous one. > > -- > -- > v8-users mailing list > v8-users@googlegroups.com >

Re: [v8-users] Problem getting V8 sources

2016-09-15 Thread Jochen Eisinger
If you manually run L:\\depot_tools\\python276_bin\\python.exe v8/gypfiles/landmines.py what error message do you get? On Wed, Sep 14, 2016 at 4:11 PM Ivan P. wrote: > I am attempting to get V8 sources to build on Windows, using VS2013. OS is > Win2008 Server R2 x64. >

Re: [v8-users] Build v8 with VS2015 and use prefered v8 version

2016-09-13 Thread Jochen Eisinger
You can also manually download all dependencies, but that's not documented, so yes, it's pretty much fetch only Raefaldhi Amartya Junior schrieb am Mi., 14. Sep. 2016, 03:11: > So i must use fetch v8, no other way? > > -- > -- > v8-users mailing list >

Re: [v8-users] Build v8 with VS2015 and use prefered v8 version

2016-09-13 Thread Jochen Eisinger
Please follow these steps: https://github.com/v8/v8/wiki/Building%20with%20GN If you want to use a specific version, you can check out that branch / tag and re-run gclient sync On Tue, Sep 13, 2016 at 3:16 AM Raefaldhi Amartya Junior < raefaldhiamar...@gmail.com> wrote: > How to build prefered

Re: [v8-users] GN cross build from X64 to ARM64

2016-09-13 Thread Jochen Eisinger
It looks like you don't have the aarch64 toolchain installed, so you can't cross compile. On Tue, Sep 13, 2016 at 1:42 AM Nonny Mouse wrote: > I've been using V8 on X64 Linux for several years, but not previously > building with GN. For the future, I want to use the same

Re: [v8-users] Build v8 with visual studio 2015

2016-09-05 Thread Jochen Eisinger
the msvs-ninja gyp generator only creates an VS project that is suitable for browsing and editting the sources, but not for compiling. If you want to compile with MSVS, set the GYP_GENERATOR to msvs only. On Fri, Sep 2, 2016 at 5:31 PM Илья Королевский wrote: > Hello. Im so

Re: [v8-users] Building v8 with a networking stack

2016-09-02 Thread Jochen Eisinger
chromium's implementation is here: https://cs.chromium.org/chromium/src/net/proxy/proxy_resolver_v8.cc?rcl=1472733616=703 On Fri, Sep 2, 2016 at 3:53 AM Nick Chambers wrote: > Hello everyone! I have successfully built v8, however I have run into a > snag. Essentially what I

Re: [v8-users] Need to SetInternalFieldCount for both PrototypeTemplate and FunctionTemplate?

2016-09-02 Thread Jochen Eisinger
I don't know how nan expects bindings to work, so I can't really help you there. Maybe somebody with more nan knowledge can chime in, or maybe consider reaching out to the nan authors? On Fri, Sep 2, 2016 at 5:42 AM Zach Bjornson wrote: > Hello, > > I'm trying to fix some

Re: [v8-users] Why I can't find "base/trace_event/common/trace_event_common.h"

2016-08-30 Thread Jochen Eisinger
did you run "gclient sync"? It should create that file On Mon, Aug 29, 2016 at 8:22 AM wrote: > when i open the v8.sln and compile it > there have some errors > > libplatform\tracing\trace-writer.cc(9): fatal error C1083: 无法打开包括文件: >

Re: [v8-users] Can V8 crash due to memory allocation failure? Can this crash the entire process?

2016-08-05 Thread Jochen Eisinger
V8 doesn't (consistently) handle oom situations but expects the allocator to crash the process if it can't fulfill a request. Paul Baker schrieb am Mi., 3. Aug. 2016, 11:55: > It appears that V8 allocates JavaScript objects on a manually-managed > heap, memory for which is

Re: [v8-users] Link failure with libv8

2016-08-01 Thread Jochen Eisinger
Maybe your target system doesn't have the gold linker? ld -v should say something like: GNU gold (GNU Binutils 2.26.20160125) 1.11 You can also try to compile v8 without gold by setting linux_use_bundled_gold=0 and linux_use_gold_flags=0 in your GYP_DEFINES On Sat, Jul 30, 2016 at 6:13 PM Mark

Re: [v8-users] Exposing nested maps from C++ into JS world

2016-07-29 Thread Jochen Eisinger
help. I’ll share a standalone program that simulates problem I > see, maybe that would help you to see what the problem could be? Would be > some bit of effort for me, but will do given it will be very useful to have > nested c++ maps exposed to JS. > > On 28-Jul-2016, at

Re: [v8-users] v8 gyp build fail

2016-07-28 Thread Jochen Eisinger
I wonder whether you have curl installed? On Thu, Jul 28, 2016 at 6:53 PM chaony wrote: > Hi, > I want to try v8 engine in my project, but it seems something wrong. I > do it in following way: > > 1. git clone: git clone >

Re: [v8-users] Re[3]: gyp_v8 error when building

2016-07-28 Thread Jochen Eisinger
Steve, I have to ask you to immediately stop this escalatory behavior. Failure to do so will result in a ban from this mailing list, and other chromium communication channels. best -jochen On Thu, Jul 28, 2016 at 2:50 PM Steve Paesani wrote: > I think you jumping

Re: [v8-users] Exposing nested maps from C++ into JS world

2016-07-28 Thread Jochen Eisinger
Local map_ptr = External::New(GetIsolate(), _body); > > result->SetInternalField(0, map_ptr); > > return handle_scope.Escape(result); > } > > > On 27-Jul-2016, at 7:47 PM, Jochen Eisinger <joc...@chromium.org> wrote: > > Can you provide a complete example? I

Re: [v8-users] Exposing nested maps from C++ into JS world

2016-07-27 Thread Jochen Eisinger
; > string key = ObjectToString(Local::Cast(name)); > string value = ToString(info.GetIsolate(), value_obj); > > map<string, string>* body = UnwrapMap(info.Holder()); > (*body)[key] = value; > > cout << "body field " << value << endl; &g

Re: [v8-users] Re: gyp_v8 error when building

2016-07-27 Thread Jochen Eisinger
btw, I want to point out that we have a code of conduct https://chromium.googlesource.com/chromium/src/+/master/CODE_OF_CONDUCT.md Offensive comments, jokes or otherwise, are explicitly called out as something we don't tolerate. Please take that into account for future communication. thanks

Re: [v8-users] Exposing nested maps from C++ into JS world

2016-07-25 Thread Jochen Eisinger
To create dynamic nested maps from C++, the outter object (response) would have to return another intercepted object (e.g. body) that then returns the actual values on access. On Fri, Jul 22, 2016 at 8:12 AM Abhishek Singh wrote: > Hi, > > I’m wondering if there is

Re: [v8-users] gyp_v8 error when building

2016-07-25 Thread Jochen Eisinger
can you paste the full error? On Sun, Jul 24, 2016 at 1:47 PM wrote: > Calling python gypfiles\gyp_v8 gives a CalledProcessError > > subprocess.check_call(get_toolchain_args) produces the error at line 540 > of check_call > > The call string in the error is a long

Re: [v8-users] Accessing global object in javascript function call

2016-07-22 Thread Jochen Eisinger
Function::Call only allows you to set the receiver, not rebind the function to a different context. You should be able to access number1 using this.number1. You could pass the script in as a string and compile it for the target context for example. On Thu, Jul 21, 2016 at 11:58 PM Bryan Grim

Re: [v8-users] Building V8 Libraries Help. (Repositories Offline?)

2016-07-20 Thread Jochen Eisinger
Please reach out to IBM team. The svn server referenced in that documentation doesn't exist anymore, however, the s390(x) port is meanwhile (completely?) upstream, so just following the regular v8 build instructions might work? On Wed, Jul 20, 2016 at 12:33 AM Allen Ng wrote:

Re: [v8-users] How to inherit objects like a c++'s objects??

2016-07-11 Thread Jochen Eisinger
Right On Fri, Jul 8, 2016 at 11:01 AM Le_t0s <psychole...@gmail.com> wrote: > Yes, it should solve my problem. But object template hasn't any way to > inherit for now, am I right? > > пятница, 8 июля 2016 г., 11:38:27 UTC+4 пользователь Jochen Eisinger > напи

Re: [v8-users] How to inherit objects like a c++'s objects??

2016-07-08 Thread Jochen Eisinger
Does using FunctionTemplate::Inherit solve your problem? On Thu, Jul 7, 2016 at 9:08 AM Le_t0s wrote: > Hello. I have following situation. I have 2 classes (e.g. Parent and > Child). Parent has method "DoSmth", and Child have method "DoSmthElse". I > create two templates,

Re: [v8-users] Build on Windows - cannot generate Visual Studio solution

2016-07-08 Thread Jochen Eisinger
do you have any gyp related environment variables set, e.g. GYP_GENERATORS? On Thu, Jul 7, 2016 at 6:13 PM Riccardo Corsi wrote: > Hi all, > > I've been following all the instructions to build V8 on Windows from here: >

Re: [v8-users] Executing JS within an android app

2016-07-04 Thread Jochen Eisinger
Hey, I don't know much about Android APIs and whether or not they include v8, sorry. You might have better luck asking on an Android related forum Best Jochen Poorna schrieb am Sa., 2. Juli 2016, 00:05: > Hello folks, > > We are writing an android app in which we want

Re: [v8-users] How to re-generate the .sln and the .vcxproj

2016-07-01 Thread Jochen Eisinger
//github.com/v8/v8/wiki/Building%20with%20Gyp>. > > set GYP_GENERATORS=ninja > python build\gyp_v8 > > > 在 2016年7月1日星期五 UTC+8下午3:15:57,Jochen Eisinger写道: >> >> Do you happen to have any gyp related environment variable set, e.g. >> GYP_GENERATORS? >> >&

Re: [v8-users] How to re-generate the .sln and the .vcxproj

2016-07-01 Thread Jochen Eisinger
Do you happen to have any gyp related environment variable set, e.g. GYP_GENERATORS? On Thu, Jun 30, 2016 at 2:25 PM Amaranth F wrote: > I've built v8 successfully some days ago, and today I'm following this > post to add extra files to my project. >

Re: [v8-users] [v8-embedding] - Exposing result-set as an array in javascript

2016-06-29 Thread Jochen Eisinger
The enumerator callback returns what is used for eg Object.getOwnPropertyNames(queryObj) If you want queryObj["foo"] to return an array, just create on in the getter callback and set it as return value. The getter takes a PropertyCallbackInfo and Array drives from Value Best Jochen Abhishek

Re: [v8-users] Current value in interceptors

2016-06-27 Thread Jochen Eisinger
ReturnValue::Get only tells you what the return value you previously have set is. Ideally, you use a non-masking interceptor. In that case, you know that the current value is not defined. best -jochen On Mon, Jun 27, 2016 at 11:24 AM Ben Noordhuis wrote: > On Sun, Jun 26,

Re: [v8-users] Isolate::GetCurrent() inside a FunctionCallback returns NULL

2016-06-22 Thread Jochen Eisinger
; > On Wednesday, 11 May 2016 06:05:14 UTC+1, Jochen Eisinger wrote: > >> Could you file a bug please, if possible with a complete reproduction >> case? >> >> Thanks >> Jochen >> >> Joris Wijnant <wijnan...@gmail.com> schrieb am Mo.,

Re: [v8-users] Protecting IP

2016-06-22 Thread Jochen Eisinger
Have you considered using a less-easy-to-read format like asm.js, run a obfuscator over the source, or put your IP into a binary node module? On Tue, Jun 14, 2016, 3:33 PM Joe Bloggs wrote: > Hi, > > My employer is looking to shift major development to node.js.

Re: [v8-users] Cross compile for RaspberryPi (arm64)

2016-06-20 Thread Jochen Eisinger
I suspect you have to pass -Dclang=0 to gyp_v8 Your compiler should define __ARCH64EL__ if you pass -m64 best jochen On Fri, Jun 17, 2016, 2:10 PM kin wrote: > Hi, > > I'm trying to cross compile the v8 engine. My host is an Ubuntu 14.04 x64, > the target is arm64 and the

Re: [v8-users] Will Clone also clone private symbols?

2016-06-10 Thread Jochen Eisinger
Yes, it should work, but I'd recommend to just try it out to be sure On Fri, Jun 10, 2016 at 4:36 AM Francisco Tolmasky wrote: > Not much more to say, just curious if I do Clone whether I'll also get the > private symbols. > > Thanks, > > Francisco > > -- > -- > v8-users

Re: [v8-users] V8_WARN_UNUSED_RESULT on DefineOwnProperty?

2016-06-08 Thread Jochen Eisinger
The reason we added V8_WARN_UNUSED_RESULT was that ignoring an exception will lead to lots of unexpected and hard to debug behavior. This annotation helps embedders to not miss any place where you have to check for an exception. On Fri, Jun 3, 2016 at 7:27 PM Ben Noordhuis

Re: [v8-users] what are the official steps to bulid v8 on windows 8 using visual studio?

2016-06-08 Thread Jochen Eisinger
do the steps for MSVS outlined here work for you: https://github.com/v8/v8/wiki/Building%20with%20Gyp On Sat, Jun 4, 2016 at 6:11 PM blackthirt33n wrote: > what are the official steps to bulid v8 on windows 8 using visual studio? > > -- > -- > v8-users mailing list >

Re: [v8-users] Function line and column numbers with accessor callbacks in CpuProfileNode.

2016-06-06 Thread Jochen Eisinger
? Shall I work on a standalone reproducing test case? > > > On Thursday, June 2, 2016 at 11:31:44 PM UTC-7, Jochen Eisinger wrote: > >> I suspect that profiling wasn't enabled at the time the function was >> compiled. In that case, the information required for mapping code

Re: [v8-users] Why UTF surrogate pairs are modified by V8?

2016-06-03 Thread Jochen Eisinger
Your input string is encoded as CESU-8, not UTF-8. Older versions of V8 would silently accept that encoding, however, this leads to broken behavior when interacting with libraries actually expecting UTF-8, so we changed our implementation to actually require UTF-8, and invalid characters are

Re: [v8-users] Function line and column numbers with accessor callbacks in CpuProfileNode.

2016-06-03 Thread Jochen Eisinger
I suspect that profiling wasn't enabled at the time the function was compiled. In that case, the information required for mapping code positions back to line numbers isn't available. Jane Chen schrieb am Do., 2. Juni 2016, 20:40: > Testing profiling against v8 4.6.88. > > I

  1   2   3   >