Re: [v8-users] Creating persistent weak handles on primitive values did not collected by GC?

2013-04-27 Thread Jochen Eisinger
On Fri, Apr 26, 2013 at 9:54 PM, Vyacheslav Egorov vego...@chromium.orgwrote: So it is possible that persistent weak handles built on top of primitive values did not collected? Boolean values are eternal --- they never die. Small integers (31 bits on ia32 and 32bits on x64) are not even

Re: [v8-users] Profiling v8 inside chromium/content_shell

2013-06-11 Thread Jochen Eisinger
+kentaro for some profiling insights On Tue, Jun 11, 2013 at 7:24 AM, Adam Klein ad...@chromium.org wrote: I'm trying to profile the v8 execution of a web app using Chromium's content_shell with some success. But I'm also getting some odd results. I'm using a commandline like:

[v8-users] I18N support in V8

2013-07-31 Thread Jochen Eisinger
Hey all, as some of you may have noticed, V8 started to depend on ICU (if you run make dependencies, a patched version of ICU 4.6 as used by chromium is checked out into third_party/icu). This enables building with i18n support http://www.ecma-international.org/ecma-402/1.0/ The i18n support is

Re: [v8-users] HandleValue to JSON?

2013-08-20 Thread Jochen Eisinger
Hey, there's no direct way currently. However, the JSON::Parse method also just forwards to the JSON.parse JavaScript method. best -jochen On Tue, Aug 20, 2013 at 11:04 PM, Luke l...@webconnex.com wrote: There seems to be a way to convert JSON to HandleValue: class V8_EXPORT JSON {

[v8-users] ECMA-402 API

2013-09-23 Thread Jochen Eisinger
Hi, we just turned on ECMA-402 support by default in V8. It's been available as an extension and used by Chrome for a few years now. Recently, we moved the extension code in V8 and turned it into a built-in feature, i.e. the i18n code is now part of the snapshot and available to all embedders.

Re: [v8-users] Re: v8/android_arm: error: unexpected token in '.section' directive: .note.GNU-stack,,%progbits

2013-09-27 Thread Jochen Eisinger
On Fri, Sep 27, 2013 at 1:32 PM, smith.winston@gmail.com wrote: On Thursday, September 26, 2013 11:29:33 PM UTC-4, smith.wi...@gmail.comwrote: I'm trying to build v8 for Android on a Mac ... However it fails as follows: CXX(target)

Re: [v8-users] Make v8 project more package managers friendly

2013-10-04 Thread Jochen Eisinger
On Fri, Oct 4, 2013 at 8:25 AM, Anatol Pomozov anatol.pomo...@gmail.comwrote: Hi Thanks for your response. On Thu, Oct 3, 2013 at 10:35 PM, Louis Santillan lpsan...@gmail.com wrote: 1) gyp is a hard dependency. ICU is not. I'm not aware of gyp being available as a stand alone package

Re: [v8-users] Intent to Implement Promises in V8

2013-10-04 Thread Jochen Eisinger
On Fri, Oct 4, 2013 at 12:19 PM, Yutaka Hirano yhir...@chromium.org wrote: Promises are currently being specified at [1] and according to [2] they will be introduced in ES6. I would like to implement them behind a flag. The implementation will replace the Promises implementation in Blink in

Re: [blink-dev] Re: [v8-users] Intent to Implement Promises in V8

2013-10-04 Thread Jochen Eisinger
To clarify, we won't expose threads to the language, but clean-up the thread usage of V8 internally, e.g. the optimizing compiler thread. best -jochen On Fri, Oct 4, 2013 at 7:37 PM, Dirk Pranke dpra...@chromium.org wrote: On Fri, Oct 4, 2013 at 3:29 AM, Jochen Eisinger joc

Re: [v8-users] Make v8 project more package managers friendly

2013-10-07 Thread Jochen Eisinger
and point icu_gyp_path to it? I hate pulling 100's of MB that I'm not using. Would 'svn co icu46/icu.gyp' suffice? I'm building with i18nsupport=off. -L On Thu, Oct 3, 2013 at 11:55 PM, Jochen Eisinger joc...@chromium.org wrote: On Fri, Oct 4, 2013 at 8:25 AM, Anatol Pomozov anatol.pomo

Re: [v8-users] Run v8 hello_world demo error

2013-10-27 Thread Jochen Eisinger
You shouldn't link against the obj.host libraries. Also, if you link against the .a files, you need to link first against v8 and then against icu. best -jochen On Sun, Oct 27, 2013 at 2:39 AM, t...@ainfach.de t...@ainfach.de wrote: i have the same issue, i tryed to link against everything:

Re: [v8-users] no gyp.script_main()

2014-01-04 Thread Jochen Eisinger
I would suspect you have an old gyp version installed somewhere What is the output for python -c 'import gyp; print gyp.__file__' best -jochen On Sat, Jan 4, 2014 at 8:06 PM, Lilli Nonah lillino...@gmail.com wrote: first time builder so probably something simple i've missed following

Re: [v8-users] no gyp.script_main()

2014-01-07 Thread Jochen Eisinger
for the quick response here is the output: # python -c 'import gyp; print gyp.__file__' /usr/lib/python2.6/site-packages/gyp/__init__.pyc i guess that's it then, i should be using the gyp in the v8 build folder, thanks On Saturday, January 4, 2014 2:39:04 PM UTC-5, Jochen Eisinger wrote

Re: [v8-users] Build projects broken

2014-01-07 Thread Jochen Eisinger
what version of gyp did you check out? best -jochen On Tue, Jan 7, 2014 at 8:26 PM, Alejandro F. Reimondo alereimo...@smalltalking.net wrote: Hi, I am using gyp build command to build Visual Studio projects for V8, as first stage of updating my V8 engines, e.g. :

Re: [v8-users] Build projects broken

2014-01-08 Thread Jochen Eisinger
Please update gyp to r1831 best -jochen On Wed, Jan 8, 2014 at 3:26 PM, Alejandro F. Reimondo alereimo...@smalltalking.net wrote: Thank you for the link! It worked here for x64 build under VS Express 2012. Failed to load icui18n.vcproj for target_arch=ia32 build under VC++ Express 2008.

Re: [v8-users] New is not a member of v8::String

2014-01-22 Thread Jochen Eisinger
That's because New is indeed not part of the String API. I guess in your case, you'd want v8::String::NewFromUTF8(v8::Isolate::GetCurrent(), foo); best -jochen On Wed, Jan 22, 2014 at 5:02 PM, Stefan Pöter stefan.poe...@gmail.comwrote: Hi, i downloaded the latest v8 from the github

Re: [v8-users] Re: Error in v8.h (HandleScope::Create)

2014-01-22 Thread Jochen Eisinger
Hey, alternatively, you can use Handle::New(isolate, persistent) to create a new handle pointing to the same object which is safe to copy (assuming proper usage of handle scopes). best -jochen On Wed, Jan 22, 2014 at 4:55 PM, Chris Adams chris.ah.ad...@gmail.comwrote: I've got it fixed, I

Re: [v8-users] Re: Lack of documentation

2014-01-26 Thread Jochen Eisinger
the V8 embedder's guide is probably a good first start: https://developers.google.com/v8/embed If you use a recent version of V8, you might need to adopt some of the examples, e.g. FunctionTemplate::New() now requires an Isolate* to be passed. best -jochen On Sun, Jan 26, 2014 at 7:23 PM, Sara

Re: [v8-users] Re: running a script...

2014-01-26 Thread Jochen Eisinger
Right, Handle (and Local) can only be stack allocated and have to live within a HandleScope. If you want to store a reference to a V8 object, you need a Persistent, see esp. https://developers.google.com/v8/embed#handles best -jochen On Sat, Jan 25, 2014 at 8:52 PM, Kevin Ingwersen

Re: [v8-users] C++ API: Making a function with captured state

2014-01-26 Thread Jochen Eisinger
If you have a v8::Function you can pass the global state as first argument to Function::Call. best -jochen On Thu, Jan 23, 2014 at 10:07 PM, Kenton Varda tempo...@gmail.com wrote: Hi v8-users, I'm trying to figure out how, from the C++ API, I can create a function that effectively has some

Re: [v8-users] Re: running a script...

2014-01-28 Thread Jochen Eisinger
On Tue, Jan 28, 2014 at 9:20 AM, Pierre Saunier pierre.saun...@ppmodeler.com wrote: Thanks a lot, I figure it also... But, I have still 3 (related) questions: Why Persistent are not a subclass of handle? so that it is possible to use Handle (Local) and persistent in the same way, without the

Re: [v8-users] Re: running a script...

2014-01-29 Thread Jochen Eisinger
Yes, you'd usually either store a Persistent in the C++ class itself or maintain a map. The Persistent would usually be weak, so you get notified if the object is no longer needed by V8, and you can create new Local handles to the js object when needed. A common pattern to get from the js object

Re: [v8-users] Does V8 engine support multithreading programming?

2014-01-31 Thread Jochen Eisinger
There are two options: (1) use different isolates on each thread (then the scripts can run in parallel) and (2) use one isolate and use v8::Locker to lock the isolate before you use it (then only one thread at a time can execute scripts) best -jochen On Fri, Jan 31, 2014 at 9:51 AM, Sara

Re: [v8-users] Does V8 engine support multithreading programming?

2014-01-31 Thread Jochen Eisinger
want them to be in parallel, so I must use two isolate, for every thread there is one isolate and no need to use lock as the scripts are different and independent from each other. is this right? Yes that is correct. On Friday, January 31, 2014 11:23:28 AM UTC+2, Jochen Eisinger wrote

Re: [v8-users] Error building v8 on Mac OSX.

2014-02-20 Thread Jochen Eisinger
To build a shared library, you have to set the gyp define component=shared_library Best Jochen On Feb 21, 2014 7:56 AM, Jane Chen jxche...@gmail.com wrote: Just to close the loop, I got it working on another Mac with Python 2.7.1 installed. Using library=shared didn't produce a shared library

Re: [v8-users] v8 API changes

2014-03-27 Thread Jochen Eisinger
On Thu, Mar 27, 2014 at 2:58 PM, Ben Noordhuis i...@bnoordhuis.nl wrote: On Thu, Mar 27, 2014 at 1:40 PM, Sven Panne svenpa...@chromium.org wrote: We will continue to improve the whole API, especially regarding the confusing notions of default Isolate and current Isolate. In the future,

[v8-users] V8 for arm64

2014-04-10 Thread Jochen Eisinger
Hey all, We're happy to announce that with V8 version 3.25 a new platform called arm64 was added to the list of officially supported platforms. You can enable this platform by setting v8_target_arch=arm64, the code lives under src/arm64. If you compile on a x64 platform, arm64 will use a

[v8-users] Experimental build configuration: gn

2014-05-05 Thread Jochen Eisinger
Hey, since Chromium is currently transitioning from gyp to gn[1], I added an experimental BUILD.gn file to V8. It's currently not yet possible to build all of v8 using gn, nor does the standalone build work at all (currently, it's only possible to compile mksnapshot from within chromium). If you

[v8-users] PSA: new v8 dependency (for developers only)

2014-06-03 Thread Jochen Eisinger
Hey, if you're developing v8 (i.e. upload patches etc...) you'll need to run make dependencies again after r21636 to check out the buildtools/ subdirectory. This subdirectory contains the checkdeps script which I'll soon add to the presubmit checks to enforce header include layering (e.g.

[v8-users] Re: [v8-dev] Re: Some v8 changes to support i18n

2014-06-03 Thread Jochen Eisinger
On Tue, Jun 3, 2014 at 5:47 PM, Steven R. Loomis (IBM) srl...@gmail.com wrote: El martes, 3 de junio de 2014 01:09:03 UTC-7, joc...@chromium.org escribió: +v8-users, v8-dev is mostly for codereviews and stuff... OK, thanks. On Tuesday, June 3, 2014 12:45:44 AM UTC+2, Steven R. Loomis

Re: [v8-users] Problem with several threads trying to lock an isolate, and the withdrawal of v8::Locker's preemption

2014-06-11 Thread Jochen Eisinger
On Tue, Jun 10, 2014 at 8:38 AM, juu julien.vouilla...@gmail.com wrote: Hello everyone, I'm trying to implement RequireJS on my JS Engine based on v8 (v8 3.21). I have a problem with asynchronous loading and evaluation of scripts. The main thread initialize v8 : create its isolate, context,

Re: [v8-users] Problem with several threads trying to lock an isolate, and the withdrawal of v8::Locker's preemption

2014-06-12 Thread Jochen Eisinger
. On Thursday, June 12, 2014 1:44:27 AM UTC+2, Jochen Eisinger wrote: On Tue, Jun 10, 2014 at 8:38 AM, juu julien.v...@gmail.com wrote: Hello everyone, I'm trying to implement RequireJS on my JS Engine based on v8 (v8 3.21). I have a problem with asynchronous loading and evaluation

Re: [v8-users] Problem with several threads trying to lock an isolate, and the withdrawal of v8::Locker's preemption

2014-06-13 Thread Jochen Eisinger
chrome has a partial implementation of an AMD loader here: https://code.google.com/p/chromium/codesearch#chromium/src/gin/modules/module_registry.h that uses a single Isolate. Note that it doesn't support require() yet best -jochen On Fri, Jun 13, 2014 at 6:54 AM, juu

[v8-users] make dependencies vs make builddeps

2014-07-02 Thread Jochen Eisinger
Hey, on v8 bleeding_edge there's a new Makefile target called builddeps In contrast to dependencies this will only install the tools required for building v8. dependencies also pulls in tools required for development. Since those depend on depot_tools and we want to make it possible to compile

[v8-users] PSA: New V8 API required to be implemented by embedders

2014-07-22 Thread Jochen Eisinger
Hey, from V8 version 3.28 on and going forward, embedders should provide an implementation of the v8::Platform interface (defined in include/v8-platform.h). In the future, we will use this interface to run GC related background tasks and optimizing compiler tasks instead of spinning up threads

[v8-users] Upgraded ICU version

2014-07-22 Thread Jochen Eisinger
As of r22523, V8 depends on ICU 5.2. If you sync past that revision, you will have to run - make dependencies, or - gclient sync, if you use fetch v8 to create your checkout, or - manually switch third_party/icu to ICU 5.2 using svn switch

Re: [v8-users] Upgraded ICU version

2014-07-22 Thread Jochen Eisinger
Jul 2014 10:58:57 pm Jochen Eisinger wrote: As of r22523, V8 depends on ICU 5.2. If you sync past that revision, you will have to run Is there a list somewhere of the various dependencies? For example how would I find out the latest version that would compile on Centos 6.5 except by guessing

Re: [v8-users] Upgraded ICU version

2014-07-22 Thread Jochen Eisinger
The features defined here: http://www.ecma-international.org/ecma-402/1.0/ best -jochen On Tue, Jul 22, 2014 at 9:35 PM, Anthony Shipman a...@iinet.net.au wrote: On Wed, 23 Jul 2014 04:24:56 am Jochen Eisinger wrote: Not sure I understand the question? The exact dependencies of V8 depend

Re: [v8-users] V8 Multithreading ... again ..

2014-07-30 Thread Jochen Eisinger
It is possible, if they don't access the Isolate concurrently. You have to use Lockers (see include/v8.h) and lock the isolate before you use it, and unlock it again so another thread can lock it. best -jochen On Wed, Jul 30, 2014 at 4:32 PM, juu julien.vouilla...@gmail.com wrote: Hello, I

Re: [v8-users] C++11 in v8

2014-08-05 Thread Jochen Eisinger
On Tue, Aug 5, 2014 at 2:12 PM, Sven Panne svenpa...@chromium.org wrote: Just a quick heads up: Following Chrome and making our life as developers easier, we intend to switch to C++11 in v8 soon. For now we will do this only partially: Usage of a compiler-only features will be allowed, but not

Re: [v8-users] Persistent::Reset().

2014-09-02 Thread Jochen Eisinger
On Tue, Sep 2, 2014 at 12:13 AM, Jane Chen jxche...@gmail.com wrote: I'm embedding v8 3.24. I have an object containing a Persistent handle. Is it required that Persistent::Reset() be called within the same isolate where the v8 object is originally created? I'm not sure I understand the

Re: [v8-users] Re: 'Platform' is null ... ?

2014-09-05 Thread Jochen Eisinger
Note that you'll also need to link against the v8_libplatform library to make this work best -jochen On Fri, Sep 5, 2014 at 9:23 AM, Sven Panne svenpa...@chromium.org wrote: You need to initialize the platform, see e.g.

[v8-users] Re: PSA: New V8 API required to be implemented by embedders

2014-09-05 Thread Jochen Eisinger
... just a reminder that latest V8 will now crash if you don't provide a v8::Platform implementation or install the one we ship in the v8_libplatform library. best -jochen On Tue, Jul 22, 2014 at 10:55 AM, Jochen Eisinger joc...@chromium.org wrote: Hey, from V8 version 3.28 on and going

Re: [v8-users] Re: 'Platform' is null ... ?

2014-09-08 Thread Jochen Eisinger
...@jameswilkins.net wrote: Why is this not shown in the Google embedders guide? -jw (sent via iPhone) On Sep 5, 2014, at 3:53 AM, Jochen Eisinger joc...@chromium.org wrote: Note that you'll also need to link against the v8_libplatform library to make this work best -jochen On Fri, Sep

Re: [v8-users] Re: 'Platform' is null ... ?

2014-09-10 Thread Jochen Eisinger
see that v8_libplatform.lib exists in V8's 'lib' folder, but no dll in the dll output folder (the parent folder). Is there supposed to be a DLL, or is it part of an existing one? Not sure how this is put together. On Friday, 5 September 2014 03:53:32 UTC-4, Jochen Eisinger wrote: Note

Re: [v8-users] Re: PSA: New V8 API required to be implemented by embedders

2014-10-07 Thread Jochen Eisinger
12:54:46 AM UTC-7, Jochen Eisinger wrote: ... just a reminder that latest V8 will now crash if you don't provide a v8::Platform implementation or install the one we ship in the v8_libplatform library. best -jochen On Tue, Jul 22, 2014 at 10:55 AM, Jochen Eisinger joc...@chromium.org

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Jochen Eisinger
On Thu Nov 27 2014 at 11:39:17 AM Dmitry Lomov dslo...@chromium.org wrote: On Thu, Nov 27, 2014 at 11:01 AM, Drew Wilson atwil...@chromium.org wrote: On Thu, Nov 27, 2014 at 10:35 AM, Dmitry Lomov dslo...@chromium.org wrote: On Thu, Nov 27, 2014 at 10:13 AM, Drew Wilson

[v8-users] make dependencies and make builddeps

2014-12-09 Thread Jochen Eisinger
Hey, the dependencies and builddeps targets will be removed in about a week. Please switch to using depot_tools and fetch v8 for creating a v8 checkout, and git pull origin (or git rebase-update) and gclient sync for staying up to date. If you want to use the github mirror (or any other mirror),

Re: [v8-users] make dependencies and make builddeps

2014-12-11 Thread Jochen Eisinger
v8 # 5) Get v8 deps gclient sync # 6) Build v8 (excluding arch, release/debug and any other options) make Do I have it right? [0] https://code.google.com/p/v8-wiki/wiki/BuildingWithGYP [1] https://code.google.com/p/v8-wiki/wiki/UsingGit On Tue, Dec 9, 2014 at 2:23 AM, Jochen Eisinger

[v8-users] Re: [blink-dev] Intent to Implement: Shared Array Buffers

2015-04-20 Thread Jochen Eisinger
+v8-users@googlegroups.com v8-users@googlegroups.com fyi Note that I'm currently changing the internal implementation of ArrayBuffers. This should be done soon, but please hold off landing bigger changes until then. Tracking bug here: https://code.google.com/p/v8/issues/detail?id=3996 best

Re: [v8-users] what's the difference between IdleNotification and LowMemoryNotification?

2015-04-23 Thread Jochen Eisinger
Unless you use v8::Lockers to make sure only one thread at a time actually does any work. Anyway, LowMemoryNotification forces up to 7 compacting GCs. While IdleNotificationDeadline (the IdleNotification version is deprecated and will go away soon) tries to do some garbage collection work that

Re: 4.3 4.4 Changes [WAS] Re: [v8-users] Assignment gets optimized away

2015-04-22 Thread Jochen Eisinger
I updated the doc for 4.3 - there is no 4.4 branch yet. On Wed, Apr 22, 2015 at 5:10 AM Louis Santillan lpsan...@gmail.com wrote: The V8 API changes document ( https://docs.google.com/document/d/1g8JFi8T_oAE_7uAri7Njtig7fKaPDfotU6huOa1alds/edit ) doesn't appear to be to updated for 4.3

Re: [v8-users] Re: How to correctly use libplatform.h?

2015-05-07 Thread Jochen Eisinger
We're gradually moving functionality to the libplatform library, such as thread support, which we don't want to link into the v8 library. On Fri, May 8, 2015 at 12:21 AM Martin McDonough foolkingcr...@gmail.com wrote: I mean that using that particular platform library is totally optional. I

Re: [v8-users] Determining total JS memory usage by V8.

2015-05-18 Thread Jochen Eisinger
Each isolate is a separate instance of V8. V8 internally does not keep track of all of them. So the answer to both of your questions is no. On Mon, May 18, 2015 at 11:33 AM amis...@chromium.org wrote: Hi folks, I work on chromium and I'm making changes to how JS memory usage is being

Re: [v8-users] Re: [blink-dev] Intent to implement: V8 extras

2015-05-19 Thread Jochen Eisinger
, Domenic Denicola Jochen Eisinger Yang Guo -- Kentaro Hara, Tokyo, Japan To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscr...@chromium.org. -- Kentaro Hara, Tokyo, Japan -- -- v8-users mailing list v8-users

Re: [v8-users] API changes upcoming to make writing exception safe code more easy

2015-04-09 Thread Jochen Eisinger
In C++ you can't overload a method with just a different return type. Since making the context explicit instead of hoping that the right one is entered is nice to have, it was a handy way to change the return type. On Thu, Apr 9, 2015 at 6:25 PM Adam Klein ad...@chromium.org wrote: On Fri, Feb

Re: [v8-users] How to debug V8 context creation failure in Blink layout tests?

2015-07-01 Thread Jochen Eisinger
Currently, the only thing you can do is to attach a debugger, and see what the exception is that gets thrown. best -jochen On Tue, Jun 30, 2015 at 3:54 PM Domenic Denicola d...@domenic.me wrote: While messing around with V8 extras, I managed to introduce some malformed syntax or misused API,

Re: [v8-users] How to debug V8 context creation failure in Blink layout tests?

2015-07-03 Thread Jochen Eisinger
yeah, building without a snapshot is a good idea as well. I'd set a breakpoint in v8::internal::Genesis::Genesis and step over the compilation and check the isolate's pending exception for what went wrong. best -jochen On Fri, Jul 3, 2015 at 10:02 AM Andy Wingo wi...@igalia.com wrote: On Thu

Re: [v8-users] TypedArray data access and memory allocation behavior threshold

2015-07-30 Thread Jochen Eisinger
On Wed, Jul 29, 2015 at 11:05 PM Zach Bjornson zbbjorn...@gmail.com wrote: Some of this has been discussed before, but the API has changed a lot recently and I'm lost a bit in the discussion. In v8 4.2.77.20 (version in iojs 2.4.0) the following seems to work for arrays *larger than 64

Re: [v8-users] Building v8 using Visual Studio 2015

2015-07-27 Thread Jochen Eisinger
I landed some config changes to make v8 compile with MSVS 2015, however, I haven't ran tests yet. Since we don't have MSVS 2015 builders yet, that configuration might break, however, eventually, we'll switch to MSVS 2015, just not yet now. best -jochen On Thu, Jul 23, 2015 at 5:19 PM Michael

Re: [v8-users] Signature and AccessorSignature

2015-07-20 Thread Jochen Eisinger
On Sun, Jul 19, 2015 at 4:40 PM Charles Lowell cowb...@thefrontside.net wrote: Also, why is there a separate type for `Signature` and `AccessorSignature`? No reason, we should probably merge them On Sunday, July 19, 2015 at 3:25:17 AM UTC-5, Ben Noordhuis wrote: On Sun, Jul 19, 2015 at

Re: [v8-users] Re: Build issues on Windows

2015-10-26 Thread Jochen Eisinger
I suspect depot_tools isn't in your path and/or you don't have python in your path? On Sat, Oct 24, 2015 at 9:02 AM Viktor wrote: > Hi again, > > Sorry for bothering you guys, but the installation page suggested I post > here if I was having issues with the build

Re: [v8-users] v8::platform::PumpMessageLoop().

2015-10-14 Thread Jochen Eisinger
If you use phantom handles, the 2nd callback will be posted to the message loop. In the future, more tasks might get posted to it On Tue, Oct 13, 2015, 4:07 PM 'Aaron Link' via v8-users < v8-users@googlegroups.com> wrote: > On Tue, Oct 13, 2015 at 3:06 AM, Jochen Eisinger <joc...@

Re: [v8-users] v8::platform::PumpMessageLoop().

2015-10-14 Thread Jochen Eisinger
PM Jane Chen <jxche...@gmail.com> wrote: > So sounds like PumpMessageLoop can happen in the background after I return > the result of a query, maybe even after I trigger garbage collection? > > > On Tuesday, October 13, 2015 at 12:07:12 AM UTC-7, Jochen Eisinger wrote: > &

Re: [chromium-discuss] Re: [v8-users] No Garbage Collection For Hours

2015-10-07 Thread Jochen Eisinger
depends a bit on the OS you run chromium on? On Mon, Oct 5, 2015 at 6:55 PM PhistucK <phist...@gmail.com> wrote: > Sure, but how do I get the output of the extension process? By enabling > logging? > > > ☆*PhistucK* > > On Mon, Oct 5, 2015 at 12:52 PM, Jochen Ei

Re: [v8-users] v8::platform::PumpMessageLoop().

2015-10-13 Thread Jochen Eisinger
V8 posts certain tasks to the foreground message loop. If you don't implement one yourself and expose it via a custom v8::Platform, you'll have to pump the message loop of the default platform from time to time to execute those tasks. V8 also posts tasks to background threads - those threads will

Re: [chromium-discuss] Re: [v8-users] No Garbage Collection For Hours

2015-10-09 Thread Jochen Eisinger
, Oct 7, 2015 at 4:51 PM, Jochen Eisinger <joc...@chromium.org> > wrote: > >> depends a bit on the OS you run chromium on? >> >> On Mon, Oct 5, 2015 at 6:55 PM PhistucK <phist...@gmail.com> wrote: >> >>> Sure, but how do I get the outpu

[v8-users] separate mailing lists for code reviews / eng discussions

2015-09-09 Thread Jochen Eisinger
Hey all, going forward, V8 code reviews will be automatically cc'd to v8-revi...@googlegroups.com. If you were subscribed to v8-dev@ to receive those emails, please subscribe to v8-reviews@ v8-dev@ will be used for eng discussions in the future. Existing code reviews are still cc'd to v8-dev@,

Re: [v8-users] Seeking help with v8::Platform implementation

2015-09-22 Thread Jochen Eisinger
Currently, the foreground tasks can run wherever the embedder wants to run them, but in the future, we might require that it's safe to access the given isolate from foreground tasks. Background tasks can run wherever the embedder likes, and they will take care themselves to use locks etc.. to

Re: [v8-users] No Garbage Collection For Hours

2015-10-05 Thread Jochen Eisinger
it would be interesting to have the output of the extension process when running chromium with --js-flags="--trace-gc --trace-gc-nvp" Please file a bug with this information on crbug.com/new On Sat, Oct 3, 2015 at 5:49 PM PhistucK wrote: > Sorry for the cross post, I wanted

Re: [v8-users] Profiler: Application crash in HandleProfilerSignal

2015-12-02 Thread Jochen Eisinger
ple::Init() at sampler.cc:613 0x613f9424 > v8::internal::Sampler::SampleStack() at sampler.cc:717 0x613f9a64 > v8::internal::SignalHandler::HandleProfilerSignal() at sampler.cc:488 > 0x613f8c08 > 0x400218a8 > > > On Tuesday, December 1, 2015 at 10:32:06 AM UTC+2, Jochen Eisinger wr

Re: [v8-users] Farewell Callee

2015-12-11 Thread Jochen Eisinger
ong term. Keeping >>> Callee() and instantiating a FunctionTemplate if it gets called seems >>> slightly more complex. >>> >>> In the meantime, should I revert the change (marking Callee as >>> deprecated or deprecate soon)? >>> >>> On F

Re: [v8-users] Farewell Callee

2015-12-10 Thread Jochen Eisinger
One alternative to using Callee for functions you created yourself is specifying the data parameter which is passed via FunctionCallbackInfo::Data Data could be an External that points to a data structure holding a weak Global pointing back at the function. Would that work for you? On Fri, Dec

Re: [v8-users] Re: depot_tools fails to fetch V8 on Windows

2016-01-07 Thread Jochen Eisinger
Marousez wrote: >>> >>> set DEPOT_TOOLS_WIN_TOOLCHAIN=0 before fetch v8 resolve this >>> >>> Le mardi 22 décembre 2015 14:21:13 UTC+1, Maxime Marousez a écrit : >>>> >>>> Hey, >>>> >>>> i have exactly the same problem, >&g

Re: [v8-users] Garbage collector exhausted?

2016-01-07 Thread Jochen Eisinger
Does that old version already have a file include/v8-platform.h? In that case, you need either implement that interface and register it with V8 before creating the first isolate, or link against the libplatform library and use the implementation from that one. On Wed, Jan 6, 2016 at 12:42 PM

Re: [v8-users] v8 ** Snapshot ** help !

2016-01-07 Thread Jochen Eisinger
The snapshot used by V8 in this case is only for builtin objects such as Math or Date. The current version of V8 has something called "V8 extras" that can be used to add additional scripts to the snapshot, but I'm not aware of anybody using that for node. On Wed, Jan 6, 2016 at 9:22 PM Hugh

Re: [v8-users] Re: depot_tools fails to fetch V8 on Windows

2015-12-21 Thread Jochen Eisinger
hey, does the documented way work for you: install depot_tools, put it into your path, and use "fetch v8" to checkout v8? best -jochen On Sun, Dec 20, 2015 at 7:37 PM Zyr Ius wrote: > For two upcoming projects I've been wanting to implement the V8 JavaScript > engine as

Re: [v8-users] Profiler: Application crash in HandleProfilerSignal

2015-12-01 Thread Jochen Eisinger
Hi! can you provide some stack traces, or at least some info on where it actually crashes? best -jochen On Mon, Nov 30, 2015 at 6:16 PM Mihail Slavchev wrote: > Hi guys, > > NativeScript developer here. We embed V8 (4.5.103) in android apps and I > am trying to

Re: [v8-users] v8 SetWeak callback is not called after context disposal

2016-01-11 Thread Jochen Eisinger
Garbage collection is not necessarily triggered immediately when you dispose a context. If you rely on freeing the C++ memory right when the context goes out of scope, you can't rely on the GC to trigger at this very moment. best -jochen On Sat, Jan 9, 2016 at 5:01 PM Sergey F.

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] 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] 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

Re: [v8-users] V8 build getting errors

2016-06-02 Thread Jochen Eisinger
error: 'utility' file not found > #include > ^ > 1 error generated. > make[1]: *** > [/home/ec2-user/v8/out/native/obj.target/v8_base/src/accessors.o] Error 1 > make[1]: Leaving directory `/home/ec2-user/v8/out' > make: *** [native] Error 2 > > > On Wednesday, May

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] 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] How to handle out-of-memory type of errors.

2016-01-15 Thread Jochen Eisinger
this is the git commit: https://chromium.googlesource.com/v8/v8/+/8b8fb30e7f8915d0762402f0b6e5b16c820cab48 Have you considered setting a FatalErrorCallback and then tearing down the entire isolate and the thread it lived on? That might be better than crashing, although I'm not sure whether you

Re: [v8-users] Re: How can functions be added to instance templates?

2016-02-05 Thread Jochen Eisinger
You'd install the FunctionTemplate on the instance_tmpl as a getter of an accessor property hth -jochen On Fri, Feb 5, 2016 at 5:35 AM Zac Hansen wrote: > > > On Thursday, February 4, 2016 at 12:44:39 PM UTC-8, vmj...@extrahop.com > wrote: >> >> This recent commit 6a118774 >>

Re: [v8-users] Re: How to get the original type on a native c++ object from v8::Object's internal fields?

2016-02-05 Thread Jochen Eisinger
In Blink, we store a pointer to a wrapper type info, and the void* on the object. The wrapper type info struct is used to determine the type of the void*. We also have some code that decides when you actually want to have type S* but the void* points to a T* whether it's safe to cast from T* to

Re: [v8-users] Adding flags

2016-01-28 Thread Jochen Eisinger
I assume you modified v8's source to require this library. In that case, you'd add a 'libraries': [ '-lboost_regex' ] section to the corresponding gyp target (e.g. in tools/gyp/v8.gyp if that's the target you modified) best -jochen On Wed, Jan 27, 2016 at 4:36 PM Deepak Subramanian

Re: [v8-users] Profiler: Application crash in HandleProfilerSignal

2016-01-27 Thread Jochen Eisinger
A fix was landed here: https://chromium.googlesource.com/v8/v8.git/+/d11b44ec69c718a9b3b11872e7638c5675abd02c does that resolve your issue? On Mon, Jan 25, 2016 at 10:47 PM Jim Acquavella wrote: > I've filed this as a bug: >

Re: [v8-users] How to handle out-of-memory type of errors.

2016-01-25 Thread Jochen Eisinger
and threads. Is there any sample code or > unit test code to demonstrate that? > > > Thanks a lot in advance. > > Jane > > > On Friday, January 22, 2016 at 12:55:50 AM UTC-8, Jochen Eisinger wrote: > >> can you post a standalone repro case? Otherwise, setting a b

Re: [v8-users] Re: About to go (more) insane. SegFault calling GetOwnPropertyNames().

2016-02-03 Thread Jochen Eisinger
I skimmed through the source you've linked, but it's not entirely clear to me what you're actually doing. If you could post the non-working version and the crash stack that might help. Assuming you managed to get stuff working with strings, and are happy with this solution, I guess that's fine,

Re: [v8-users] Deadlock when calling TerminateExecution

2016-02-02 Thread Jochen Eisinger
I haven't heard of a similar issue so far. If you can't get a stacktrace of all threads when this happens, you're next best option would be to run with thread sanitizer support compiled in (requires clang) On Wed, Feb 3, 2016 at 5:55 AM David Lattimore wrote: > My application

Re: [v8-users] Isolate->Dispose() causes crash only when Math.random() is used

2016-02-02 Thread Jochen Eisinger
you stack-allocate the ArrayBufferAllocator, so it'll get destructed at the end of the Initialize() method. You should allocate it on the heap instead, so it outlives that method. best -jochen On Mon, Feb 1, 2016 at 10:17 PM George Corney wrote: > Hey, > > I'm struggling

Re: [v8-users] Fatal error in , line 0 Failed to create ICU collator, are ICU data files missing?

2016-02-29 Thread Jochen Eisinger
I suspect that your binary can't find the icudt.dll file. InitializeICU() attempts to LoadLibraryA() that DLL. On Sat, Feb 27, 2016 at 8:30 PM Jane Chen wrote: > Embedding v8 4.6.88. > > On windows, I get a crash when I run the following: > > new

Re: [v8-users] Can v8::Isolate::GetCurrent() return null?

2016-02-29 Thread Jochen Eisinger
Please don't use Isolate::GetCurrent() - it's deprecated. If you need to know whether the Isolate was disposed or not, why not maintain a boolean flag on the worker thread that keeps track of the isolate's state? On Fri, Feb 26, 2016 at 7:16 PM Yutaka Hirano wrote: > Hi,

  1   2   3   >