On Sat, Oct 12, 2024 at 11:34 AM Pradish wrote:
>
> Dear V8 Project Contributors,
>
> I hope this message finds you well. First, I'd like to express my
> appreciation for your work on the V8 project. The engine has been a crucial
> component in many projects, including ours.
>
> I'm reaching out
On Wed, Oct 16, 2024 at 9:38 PM Ben Ernst wrote:
>
> Is it necessary to use clang for the whole program?
In my (admittedly limited) testing clang-cl is ABI-compatible enough
that you can build the V8 .lib with clang-cl and link it against code
built with msvc.
I suppose you could still run into
On Fri, Oct 18, 2024 at 5:20 AM Pradish wrote:
>
> Thanks for the inputs, appreciate it immensely.
>
> i tried to build the V8 using Clang but as a shared dll, though the build was
> successful without any issues. but when i tried to link the dll and headers
> it generated few compiler errors
>
#x27;ve only recently started working
> with c++ so I'm not deeply familiar with the tooling.
>
> Cheers,
> Alex
>
> On Friday, September 20, 2024 at 4:53:30 AM UTC-4 Ben Noordhuis wrote:
>>
>> On Thu, Sep 19, 2024 at 9:15 PM Alex Dovzhanyn wrote:
>&g
patch that detects this problem
> and explicitly warns about it. Grep for "build configuration mismatch"
> (you'll find hits in api.cc) to find existing examples where we do this.
>
>
> On Wed, Aug 14, 2024 at 11:04 PM Ben Noordhuis wrote:
>>
>> On Fri, Aug
On Thu, Sep 19, 2024 at 9:15 PM Alex Dovzhanyn wrote:
>
> Hey all, I'm trying to follow the steps listed here in the V8 docs to build
> V8 on OSX.
>
> gn args out.gn/x64.release.sample
> shows the generated arguments as:
>
> is_component_build = false
> is_debug = false
> target_cpu = "x64"
> use
On Thu, Oct 21, 2010 at 22:05, Andrea Odetti wrote:
> 1) exception: why is it not throwing normal C++ exceptions? I need to
> check after most calls if the TryCatch has caught anything
The Google C++ style guide has a list of pros and cons:
http://code.google.com/p/google-styleguide/source/br
On Fri, Oct 22, 2010 at 15:12, Andrea Odetti wrote:
> Meanwhile, do I need to call TryCatch::CanContinue() after each and
> every call into v8? Just in case something was thrown?
For every call into V8 that results in JS code being run, yes.
That's probably not very often, though. To take node.j
On Wed, Oct 27, 2010 at 14:47, pikpik wrote:
> Does anyone have any idea why things from "math.h" would cause scope-
> related errors in some parts of V8? (This is using the involved files
> without changes.)
>
> After including part of the contents of "math.h" directly into a given
> complaining
On Mon, Nov 8, 2010 at 01:33, Will Riley wrote:
> I'm working on a program that embeds v8, and I'm having problems
> compiling it. I installed the headers and shared objects so I can link
> to it when compiling. but it still doesn't compile. According to the
> guide, I also need libv8.a, but when
On Fri, Nov 19, 2010 at 09:30, ondras wrote:
> I need to check (in C++) whether a given v8::Object is an instance of
> a given v8::Function. The problem is that I don't have the adequate
> v8::FunctionTemplate (to call HasInstance) and there is no way to get
> from Function to its Template...
Som
On Thu, Dec 2, 2010 at 12:17, naturalethic wrote:
> I see that internal::Top has methods to determine pending_exception or
> scheduled_exception, but these are not available outside. I have a
> method, that calls another method that calls ThrowException. I want
> to determine within the parent f
On Thu, Dec 2, 2010 at 12:30, Joshua Kifer wrote:
> I am not executing any scripts. I'm am calling ThrowException from C++.
>
> I tried using TryCatch but it only appears to capture exceptions within a
> script. HasCaught() returned false.
The TryCatch object should be defined before calling t
On Thu, Feb 4, 2016 at 7:41 PM, Daniel Burchardt
wrote:
> Hi,
>
> I try create v8 module to python used boost and i have problem:
>
> #include
>
> using namespace std;
>
> #include
> #include
> #include
> #include "include/libplatform/libplatform.h"
> #include "include/v8.h"
>
> using namespac
On Thu, Feb 11, 2016 at 5:06 AM, Zac Hansen wrote:
> I want to be able to stop the current javascript execution when a certain
> criteria is met from within a C++ function that the triggering javascript
> cannot catch.
>
> I want this information to propagate back to the c++ invoking the code
> so
On Sat, Feb 13, 2016 at 11:20 AM, Daniel Burchardt
wrote:
> Hi,
>
> I create port v8 for python, after try import module i have error: undefined
> symbol: icudt54_dat. Where is problem? What i doing bad?
>
> Thanks for help
Hard to say without more information on how you configured and built
V8 (
On Tue, Feb 16, 2016 at 3:00 PM, Zac Hansen wrote:
> So I decided to check the prototype of the object I'm getting from Holder,
> and lo and behold, there's my object. But now the question remains, how am
> I supposed to figure out how far down the prototype chain I need to go?
>
> Updated code
On Tue, Feb 16, 2016 at 3:40 PM, Zac Hansen wrote:
> I'm feeling rather silly, but how do you get the function template into the
> callback to check against? It's not a v8::Value, so you can't pass it in as
> data.
>
> Do I put a Global on the heap and pass it in as an
> External in the data fiel
On Sun, Feb 21, 2016 at 11:27 PM, George Corney wrote:
> Hello,
>
> I'm working with typed arrays in v8 3.28, I've got a native function that
> takes a Float32Array from javascript and passes the float* data off to a gl
> call (glBufferData).
>
> I discovered that using just
> const void* rawData
On Mon, Feb 29, 2016 at 1:23 PM, Jakob Kummerow wrote:
> This is indeed surprising.
> Crankshaft predates ES6, so this has nothing to do with ES6 const. That
> said, I don't see why this function would bail out; and in a quick repro
> attempt it doesn't. Do you have an example I can run that repro
On Wed, Mar 2, 2016 at 9:00 AM, Yong Wang wrote:
> Hi all,
>
> I do not find any api can convert v8::Value to json string.
> Could someone can give me a help?
>
>thanks in advance.
There is no API method but what you can do is look up the 'JSON'
property on the global object, then call th
On Thu, Mar 3, 2016 at 7:48 PM, 'Robert Eisele' via v8-users
wrote:
> Hi,
>
> I wonder if v8 is able to optimize the pattern
>
> A = A.map(x => ~x)
>
> In this case v8 can work on the array instead of creating a new object and
> replacing it with the original array. Is such a behavior already
> im
On Sun, Mar 6, 2016 at 1:01 AM, Robert Lindstädt
wrote:
> Have you been able to make any progress? I think there is a similar issue in
> the node.js bug tracker and was curious if you could make it work.
I fixed it recently but I forgot to pull it into node. Better late
than never: https://githu
On Fri, Mar 4, 2016 at 9:22 PM, Ronuk Raval wrote:
> Hi All,
>
> We run an embedded V8 on Android and I'd like to go about exposing debugger
> hooks that a remote debugger could attach to.
> https://github.com/v8/v8/wiki/Debugging%20Protocol says that the message
> based debugging API is no longer
On Sat, Mar 19, 2016 at 1:48 AM, Haohan Wang wrote:
> Hi,
>
> I am a new user on node.js and V8, recently, I am continuing a project where
> when I compile it, I got this error ‘NewFromUtf8’ is not a member of
> ‘v8::String’ from the line
>
> v8::Handle type_handle = options_v8->Get(
> v8::String:
On Fri, Mar 18, 2016 at 10:55 AM, Daniel Burchardt
wrote:
> You are right. My new code:
>
> class Browser
> {
> public:
> Browser();
> void getContext();
> const char* execute(const char* data);
> int test;
> private:
> v8::Isolate* _isolate;
>
On Wed, Mar 16, 2016 at 1:45 PM, Daniel Burchardt
wrote:
> It's not posible because:
>
> error: no matching function for call to ‘v8::Context::New(v8::Isolate*&,
> v8::Persistent&)
>
> V8::GetVersion - 4.10.0 (candidate)
It looks like you didn't copy Danny's example correctly. It should be:
v
On Sat, Mar 19, 2016 at 8:35 PM, Haohan Wang wrote:
> Node version (given by command node -v) is v5.8.0
>
> v8 version (given by command node -e 'console.log(process.versions.v8);' )
> is 4.6.85.31
>
> Probably this is the problem then. How should I make them consistent?
> I thought once I install
On Sun, Mar 20, 2016 at 8:40 PM, Haohan Wang wrote:
> My code is as following: (this is the code for constructor
> AlgorithmOptions_t)
>
> AlgorithmOptions_t(v8::Isolate* isolate, v8::Handle options_v8)
> {
>v8::Handle type_handle = options_v8->Get(
> v8::String::NewFromUtf8(isolate, "ty
On Wed, Mar 30, 2016 at 11:17 PM, Deepak Mohan wrote:
> Hi,
>
> Accessing into exposed debug object returns type error. Verified with a few
> versions, not sure if this is a known bug or has the behavior been changed.
>
> v4.6.85 - Works
> v4.7.80 - Error
> v4.9.385 - Error
>
> ❯ out/Debug/d8 --ex
On Wed, Apr 6, 2016 at 9:57 AM, Petar Dobrev wrote:
> Hi!
>
> How would one go about obtaining function optimization and deoptimization
> info from an application with embedded v8? Something similar to the output
> that one gets from "--trace-deopt" in Chrome or node.
>
> Are there any resources o
On Wed, Apr 6, 2016 at 6:39 PM, Petar Dobrev wrote:
> On Wed, Apr 6, 2016 at 12:28 PM, Ben Noordhuis wrote:
>>
>> On Wed, Apr 6, 2016 at 9:57 AM, Petar Dobrev
>> wrote:
>> > Hi!
>> >
>> > How would one go about obtaining function optimi
On Fri, Apr 15, 2016 at 8:52 AM, Zac Hansen wrote:
> I cloned depot_tools, put it in my path, run "fetch v8" and it runs for a
> while and then I get the error below. Any idea what I'm doing wrong?
>
> C:\Users\xaxxon\deleteme>fetch v8
> Running: 'c:\Users\xaxxon\depot_tools\python276_bin\python.
On Mon, Apr 25, 2016 at 1:36 PM, Deepak Subramanian
wrote:
> Hi I am looking to use g++ as my default. I used to use GYPFLAGS="-Dclang=0"
> when using make. Is there a way I can accomplish the same thing using ninja
> .
>
> My main issue is that I am moving my build to chromium and I want to
> con
On Wed, Apr 27, 2016 at 11:04 PM, Miguel Caballero Pinto
wrote:
> Hi there!
>
> We use Electron framework for our application that creates renderer
> processes that under the cover uses V8. We would like to increase the memory
> limit of those processes to 2000mb (BTW, we found that increasing the
On Thu, Apr 28, 2016 at 8:34 PM, Miguel Caballero Pinto
wrote:
> Thanks Ben!
>
> I understand the limitations. However, shouldn't then the application crash
> when the memory usage is around 2GB limit and not around 1400mb?
I wouldn't expect so. That 1.4 GB is just the JS heap; the C heap,
libra
On Sun, May 1, 2016 at 2:45 PM, Danny Dorfman wrote:
> Hello there,
>
> I have been trying to activate V8;s internal profiler by running
> V8::SetFlagsFromCommandLine() from my code (with "--log-timer-events" and
> "--prof" as parameters). The code runs, and several log files are created.
> I trie
On Mon, May 2, 2016 at 2:14 PM, Danny Dorfman wrote:
> I tried moving SetFlagsFromCommandLine() to be the first V8 API call (before
> any initialization takes place), and running my application again.
>
> After executing linux-tick-processor on the new log file, it looks like d8
> is crashing afte
On Tue, May 10, 2016 at 4:37 PM, Joris Wijnant wrote:
> Hi,
>
> Do you know it which cases Isolate::GetCurrent() will return NULL?
> because i'm trying to execute the following code
>
> v8::Locker lock(m_pIsolate);
> v8::HandleScope scope(m_pIsolate);
>
> v8::Local v8Global = m_pContext->Get(m_pIs
On Thu, May 12, 2016 at 11:16 PM, Ryan Ingram wrote:
> My codebase is currently running on V8 3.30 in case it matters.
>
> I'm writing a marshalling system to link JS function calls to native C++
> code. As part of this system, I need to convert function arguments into
> native C++ types. For th
On Tue, May 17, 2016 at 12:22 AM, Ryan Ingram wrote:
> What am I doing wrong here? Does FunctionTemplate only support primitives
> for callback data? (Its type should suggest that, if so...)
>
> I'm trying to register native functions to be called back in my embedder,
> but my function callback
On Fri, Jun 3, 2016 at 7:02 PM, Mark Logan wrote:
> I'm migrating some code to v8 5.0.71 (node v6.1.0), and replacing deprecated
> calls to ForceSet with DefineOwnProperty/CreateDataProperty.
>
> I'm a little confused as to why V8_WARN_UNUSED_RESULT is present in these
> declarations, when it wasn
On Thu, Jun 16, 2016 at 5:25 AM, wrote:
> Hi, I tried to call v8::Isolate::GetCurrent from a library, both in shared
> and static ways. For static, it returns the correct isolate; For shared, it
> got NULL.
> Running OS is Android 6.0.
>
> Here is my sample code:
> void main()
> {
> ...
>
On Fri, Jun 24, 2016 at 7:34 AM, Zac Hansen wrote:
> If I create two contexts both within a single isolate, what types of things
> can I share between them and what is only available in the specific context?
>
> I know this is a broad question, so I'm happy to get broad answers or links
> to docum
On Fri, Jun 24, 2016 at 12:43 PM, Zac Hansen wrote:
> Define "everything"? Could I take any javascript program and take each
> line and run it in a different context (on the same isolate) and it would
> work? At least theoretically, with no fundamental changes to the program?
Not quite. The
On Sun, Jun 26, 2016 at 3:04 PM, Danny Dorfman wrote:
> Hi there,
>
> I am writing some interceptor code for my objects, and I was wondering,
> whether it was possible to know,
> what is the current value for the property, before it's overwritten by
> args.GetReturnValue().Set(whatever).
>
> I nee
On Mon, Jun 27, 2016 at 3:20 PM, Danny Dorfman wrote:
> Hello Ben,
> Actually, I was expecting the current value to be there. As Jochen mentioned
> below, it's only valid if it's been previously set within the interceptor.
> Is there a way to know the real current value before it's overwritten?
>
On Tue, Jun 28, 2016 at 3:55 PM, Dawid Skurzok wrote:
> I have problems with building V8 without external data files. I have asked
> same question on SO but with no success. I think I'm missing something
> simple, I don't know much of GYP.
>
> I already build V8 and its working correctly, but bina
On Thu, Jun 30, 2016 at 5:05 PM, Neil Moore wrote:
> It says here that "The message based API is no longer maintained.". Does
> that mean that entering JSON commands via v8::Debug::SendCommand is no
> longer supported, or is the message based API something else? I don't have
> any historical conte
On Fri, Jul 1, 2016 at 9:18 AM, Neil Moore wrote:
> On Thursday, 30 June 2016 20:34:32 UTC+1, Ben Noordhuis wrote:
>>
>> It's the thing that is not maintained but it still works well enough
>> in V8 5.0 and 5.1 that node.js can use it. Try passing
>> --trace_de
On Fri, Jul 1, 2016 at 5:16 AM, Abhishek Singh
wrote:
> Hi,
>
> As part of v8 embedding work recently, I've encountered one more use case:
>
> Sample app.js:
> ===
>
> var database_table = "beer_sample";
> var city = "BLR";
>
> // "query" is a FunctionTemplate exposed via an ObjectTemplate
On Mon, Jul 4, 2016 at 12:00 PM, Elia Mazzuoli wrote:
> Hi all, I'm trying to access data inside an ArrayBufferView. This is my
> simple javascript code:
>
> const myAddon = require('addon location');
>
> const myObj = myAddon.MyObj();
>
> const data = Buffer.from('test');
> myObj = doSomething(da
On Mon, Jul 4, 2016 at 2:24 PM, Elia Mazzuoli wrote:
> Umm thank you for the response... but isn't clear for me. Now I develop on
> version 6.2.1 seems that "ArrayBufferView" have an instance of Uint8Array..
> but how this help for my questions?
>
> 1. Why I see inside my "ArrayBuffer" the entire
On Mon, Jul 4, 2016 at 2:47 PM, Danny Dorfman wrote:
> I found out what is causing the crash in d8. One of the "shared-library"
> lines my log file points to a very large library (157M). The line looks like
> this:
>
> shared-library,"/path/to/my/file/name.so",0x7fdf1f909000,0x7fdf23d2b000,0
>
> O
On Tue, Jul 5, 2016 at 9:30 AM, Amaranth F wrote:
> I found that sometimes the current has a value but the entered is empty, so
> what is the difference?
> Thanks.
The entered context is the last context you, the embedder, explicitly
entered with context->Enter or through an instance of Context::
On Fri, Jul 8, 2016 at 7:56 AM, Abhishek Singh
wrote:
> Is it a requirement that all interceptor functions passed to
> "NamedPropertyHandlerConfiguration" need to be static? Looking at couple of
> examples, it looks pretty restrictive.
>
> This is how I've designed my application around v8.
>
> cl
On Sat, Jul 16, 2016 at 11:52 PM, treck wrote:
> I have question about v8::V8::TerminateExecution function.
>
> I set up debugger by using v8::Debug::SetMessageHandler. While javascript
> code is running, I need possibility to stop execution.
> I have two cases:
>
> javascript is executing `while(
On Wed, Jul 20, 2016 at 12:33 AM, Allen Ng wrote:
> Hello all,
>
> I do not know if this is the right place for this but it can't hurt to try!
> I am currently trying to build V8 Libraries following this tutorial,
> Building V8 Libraries Tutorial. I am trying to build these on a s390x Ubuntu
> Doc
On Wed, Jul 20, 2016 at 8:59 AM, Jochen Eisinger wrote:
> 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?
I've
On Thu, Jul 28, 2016 at 12:00 PM, wrote:
> On a final note I just did a search and read what a "googler" is.
>
> Would have been nice to know v8 compilation isn't intended for non google
> employees.
>
> Rather hostile not to indicate it more clearly
>
> More hostile still not to have mentioned
On Tue, Aug 2, 2016 at 1:49 AM, Jack wrote:
> Not sure if this is the right place to ask for help, sorry.
>
> I am using
> global->Set(String::NewFromUtf8(isolate, "print", NewStringType::kNormal).
> ToLocalChecked(), FunctionTemplate::New(isolate, V8Instance::js_print));
> to create a print() fun
On Tue, Aug 2, 2016 at 1:44 PM, Jack wrote:
> Ok I figured out I need to use:
> Local self = External::New(isolate, (void *) this);
>
> However I can't figure out how to extract the pointer again in the function.
> How do I cast the Local returned by args.Data() back to MyClass *
auto data = args
On Wed, Aug 3, 2016 at 8:17 AM, Abhishek Singh
wrote:
> Hi,
>
> Sorry to bother again about V8 JSON protocol debugger. I’ve looked through
> debug_agent.cc/.h and _debug_agent.js implementation in node.js in order to
> understand to understand correct way to enable breakpoints(and fire other
> dif
On Wed, Aug 3, 2016 at 12:03 AM, Mark Tarrabain wrote:
> I found the problem, by the way. Apparently, v8 builds something called a
> thin archive that will not work on another machine.
>
> Are there any options that you can use when building v8 so that it builds a
> full archive library instead o
On Wed, Aug 3, 2016 at 11:40 AM, Abhishek Singh
wrote:
> Hi Ben,
>
> Apologies for not providing the background. I’m trying to leverage C++ API to
> drive V8 JSON debugger for embedded V8 use case, not sure if leveraging JS
> API to drive debugger would be of utility in this situation. Here is h
On Wed, Aug 3, 2016 at 12:55 PM, Abhishek Singh
wrote:
>
>> On 03-Aug-2016, at 3:48 PM, Ben Noordhuis wrote:
>>
>> On Wed, Aug 3, 2016 at 11:40 AM, Abhishek Singh
>> wrote:
>>> Hi Ben,
>>>
>>> Apologies for not providing the background
On Thu, Aug 4, 2016 at 6:50 AM, Abhishek Singh
wrote:
>
>> On 03-Aug-2016, at 8:13 PM, Ben Noordhuis wrote:
>>
>> Quick sanity check: what does Debug.showBreakPoints() print for that
>> function after setting the breakpoint?
>
> Just to confirm, is below the righ
On Thu, Aug 4, 2016 at 12:01 PM, Abhishek Singh
wrote:
> Appreciate your help so far.
>
> Sample user JS code[0] looks like this now:
>
> {code}
> function OnUpdate(doc, meta) {
> log("doc meta id: ", meta.key);
>
> if (meta.type === "json" && doc.ssn) {
> ..
> ..
>}
> }
>
> Debug = de
On Sat, Aug 6, 2016 at 6:01 PM, Jack wrote:
> Hey,
>
> Currently I have a data structure that is a little something like this in
> C++:
> Team (class with properties e.g. Name, ID, etc.)
> | Members (again has it's own properties, e.g. Name. Team holds a
> vector of pointers to Member obje
On Mon, Aug 8, 2016 at 3:16 PM, Jack wrote:
> Thanks for the tip with the out-of-bounds.
> Unofrtunately I can't just create object - I actually tried this first - my
> data is a bit more complicated than my simplification here and there is a
> lot of it, as well as a lot of nesting so generating
On Tue, Aug 16, 2016 at 1:10 PM, Abhishek Singh
wrote:
> Hi,
>
> I’m using V8 Debugger, but facing an issue.
>
> https://gist.github.com/abhi-bit/20b8569bc5d655659b51d425564eb49d - this is
> link to standalone code simulating the same problem. In short, what this
> code does is:
>
> * Main thread
On Tue, Aug 16, 2016 at 6:22 PM, Abhishek Singh
wrote:
> Hi Ben,
>
> In sample example I shared, I was trying to simulate a behaviour similar to
> what my application(based on top of V8) saw - sleep calls were added to
> somehow make this example artificially simulate the app. I’ve modified the
On Wed, Aug 17, 2016 at 4:51 PM, Abhishek Singh
wrote:
> Hi Ben,
>
>> On 17-Aug-2016, at 5:43 PM, Ben Noordhuis wrote:
>>
>> On Tue, Aug 16, 2016 at 6:22 PM, Abhishek Singh
>> wrote:
>>> Hi Ben,
>>>
>>> In sample example I shared, I w
On Sat, Aug 20, 2016 at 2:23 AM, Jane Chen wrote:
> Embedding v8 4.6.88.
>
> Seeing a hang on Windows during cpu profiling. The hang happens in any
> random place calling v8, such as Isolate::New, Context::New etc. Running
> optimized build, my stack doesn't show v8 frames.
>
> Not sure whether
On Wed, Aug 24, 2016 at 2:17 AM, Jane Chen wrote:
> Embedding v8 4.6.88.
>
> When a JavaScript program executes and runs out of memory, I get some stdout
> output from the subject function logging the last few GC and stack frames.
>
> Is there anyway to either suppress or redirect the output?
>
>
On Fri, Sep 2, 2016 at 5:42 AM, Zach Bjornson wrote:
> Hello,
>
> I'm trying to fix some code that creates a wrapped C++ object ("Canvas",
> emulating HTMLCanvasElement) with property accessors on the prototype.
> Specifically, these assertions should work to reflect browsers'
> HTMLCanvasElement
On Fri, Sep 2, 2016 at 1:17 AM, Jane Chen wrote:
> Embedding v8 4.6.88.
>
> Running a memory-consuming script. Sometimes I get a fatal error callback
> due to "process out of memory" which I now handle. Other times v8 just
> crashes in CollectGarbage:
>
> 2016-08-25 17:25:49.649 Critical: #5
>
On Sat, Sep 3, 2016 at 12:58 AM, Zach Bjornson wrote:
> On Fri, Sep 2, 2016 at 3:54 PM, Ben Noordhuis wrote:
>>
>> On Fri, Sep 2, 2016 at 5:42 AM, Zach Bjornson
>> wrote:
>> > Hello,
>> >
>> > I'm trying to fix some code that c
On Tue, Sep 6, 2016 at 2:37 PM, Renier wrote:
> I have an application that embeds v8 and I want to include a series of
> helper javascript functions at the time of compiling a code snippet so that
> the user is able to use my helper functions.
> These functions don't interact with C++ at all and a
On Wed, Sep 7, 2016 at 8:56 PM, Pieter wrote:
> I am starting to look at upgrading our V8 integration library to build
> against a more recent version of v8. After fixing some compiler errors I am
> getting a runtime failure on the following line.
> https://github.com/EventStore/EventStore/blob/re
On Thu, Sep 8, 2016 at 3:19 PM, Brandon Dawson wrote:
> Hey Ben,
>
> I was able to get around my problem today, but I am not convinced that it
> was a good solution. The problem I was having was that I was trying to add
> an Array that represented an reflected C++ enumeration. For some reason,
>
On Thu, Sep 8, 2016 at 11:25 PM, Daniel Burchardt
wrote:
> Hi,
>
> I try implement setTimeout in v8. I have problem: how i can execute js code
> in other thread in this same context? My code:
>
> v8::Handle setTimeoutImpl(const
> v8::FunctionCallbackInfo& info) {
> v8::Local callback(i
On Thu, Sep 8, 2016 at 11:54 AM, Abhishek Singh
wrote:
> Hi,
>
> I’m seeing a problem with the way “Evaluate” request works with V8 Debug
> protocol. Have a sample standalone simulation of the problem, will
> appreciate inputs on what I might be missing.
>
> Link:
> https://gist.github.com/abhi-bi
On Fri, Sep 9, 2016 at 11:14 AM, Daniel Burchardt
wrote:
> I know but i have problem with this:
> static void* thread_setTimeout( void * arg ) {
> v8::Locker locker(v8::Isolate::GetCurrent());
> v8::HandleScope handle_scope(v8::Isolate::GetCurrent());
>
>
On Tue, Sep 13, 2016 at 9:49 AM, Danny Dorfman wrote:
> Here is a program that demonstrates this issue: (removing line #28
> eliminates the problem)
>
> 1 #include
> 2 #include
> 3 #include "v8/libplatform/libplatform.h"
> 4 #include "v8/v8.h"
> 5
> 6 class ArrayBufferAllocator : pub
On Thu, Sep 15, 2016 at 2:40 AM, Jane Chen wrote:
> What's a good low value to set for gc_interval for debugging purpose? 1? 10?
Depends on how patient you are. :-)
1 is the most rigorous but it runs 100-1000x slower. 10, 25 or 50 are
reasonable trade-offs.
--
--
v8-users mailing list
v8-use
On Fri, Sep 16, 2016 at 7:30 AM, wrote:
> I know that V8 doesn't support typescript. My question is, is it possible to
> use typescript and compile it to javascript that V8 does understand. I mean
> if I use typescript and for example modules in typescript and typescript
> translates them to comm
On Wed, Sep 21, 2016 at 12:37 PM, kito wrote:
> Hi~
>
> I try to use the google's v8 in win32 application console Project of visual
> studio 2015. (For reference, I'm using Windows 10.)
>
> I will use the Accessor, trying to output the url of location.href.
>
>
> Sample code to output a value usin
On Wed, Sep 21, 2016 at 2:47 PM, Pieter wrote:
> After I have managed to get the windows build of v8 going I have a single
> unresolved symbol issue that I could use some help with.
>
> unresolved external symbol "public: static class v8::Local v8::Context> __cdecl v8::Context::New(class v8::Isola
On Thu, Sep 22, 2016 at 2:02 AM, Jane Chen wrote:
> I'm embedding v8 and trying to upgrade to v8 5.3-lkgr. After I built v8
> using GYP with GYPFLAGS="-Dv8_use_external_startup_data=0
> -Dcomponent=shared_library", I got the following files under
> out/x64.release/obj.target/src/:
>
> js2c.stamp
On Thu, Sep 22, 2016 at 2:41 AM, Jane Chen wrote:
> Embedding v8. Currently on 4.6.88, and in the process of upgrading to
> 5.3.lkgr.
>
> When I do a pstack of my program embedding v8, some of the v8 frames show up
> as ???. I wonder whether there's a build flag I could use to enable the
> full
On Thu, Sep 22, 2016 at 2:19 AM, kito wrote:
> I will need an example of how to use the Accessor.
>
> The code was posted above, it does not run successfully.
Take a look at test/cctest/test-api.cc and
test/cctest/test-accessors.cc. If you can't distill a working example
from that, can you be mo
On Fri, Sep 23, 2016 at 12:54 PM, Abhishek Singh
wrote:
> Hi,
>
> I noticed a V8 crash with following message:
>
>
> <--- Last few GCs --->
>
> 251206 ms: Mark-sweep 1400.2 (1456.1) -> 1400.2 (1456.1) MB, 3688.5 / 0.0
> ms [allocation failure] [GC in old space requested].
> 254854 ms: Mark-sw
On Fri, Sep 23, 2016 at 1:10 AM, Jane Chen wrote:
> Thanks Ben for the tip.
>
> I tried building with:
>
> make -j24 x64.debug werror=no GYPFLAGS="-Dv8_use_external_startup_data=0
> -Dcomponent=shared_library -Dv8_enable_gdbjit=1"
>
> In my gdb-backed debugger, I still got:
>
> 28 xdmp::constructT
On Sat, Sep 24, 2016 at 2:40 AM, Jane Chen wrote:
> Thanks, Ben!
>
> I added that flag to my v8 init code. Now I get:
>
> 12 xdmp::JSEngine::evalBuiltin()
> /space/projects/head/xdmp/src/JSEngine.cpp:11794 0x0391466e
> 11 xdmp::JSEngine::evalBuiltin()
> /space/projects/head/xdmp/src/JSEng
On Fri, Apr 17, 2015 at 9:19 PM, Jane Chen wrote:
> On v8 3.24:
>
> /**
>* Marks the reference to this object independent. Garbage collector is
> free
>* to ignore any object groups containing this object. Weak callback for
> an
>* independent handle should not assume that it will be
On Fri, Sep 30, 2016 at 11:34 AM, Zac Hansen wrote:
> I'm calling:
>
> debug_context->run("let bp =
> Debug.setBreakPointByScriptIdAndPosition("some stuff");
>
>
> and getting a callback to my registered callback, but I have no idea what to
> do with what I'm getting in my callback.
On Sat, Oct 1, 2016 at 11:34 AM, Zac Hansen wrote:
> What is a script id?
It corresponds to v8::UnboundScript::GetId(). You can find them by
inspecting the Debug.scripts() array.
--
--
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
---
You received th
On Sun, Oct 2, 2016 at 2:35 AM, Zac Hansen wrote:
> My understanding is a v8::Local is only valid within a handlescope, so if
> you store one in an object, that object is then only valid within a
> handlescope, right?
Correct.
> For example, ScriptOrigin stores all its parameters as Local's:
>
>
On Sun, Oct 2, 2016 at 1:54 AM, wrote:
> In this example, the Persistent is allocated on the stack. If I want the
> callback to keep working after the Persistent goes out of scope, would I have
> to allocate it on the heap? Would I then have to delete the Persistent in the
> callback?
Yes to b
1 - 100 of 822 matches
Mail list logo