[v8-users] help setting an object prototype

2022-05-03 Thread Liam Goodacre
I am trying to set the prototype of a v8::Object, but I can’t seem to get it to work. First I tried the following: v8::Local prot = v8::Object::New(isolate); prot->Set(context, v8::String::NewFromUtf8(isolate, "f").ToLocalChecked(), v8::Int32::New(isolate, 66)); cont

[v8-users] Help. Cannot print out the `v8::Local` object

2022-01-18 Thread Michael Lee
I was trying to *print out the `v8::Local` object details,* with either of `v8/tools/gdbinit` and `v8/tools/lldb_commands.py` helper scripts, I just got "*Empty Line*" OR *"syntax error"*. Is there anything I've missed? Most of configurations are from official embed tutorial (https://v8.dev/

Re: [v8-users] Help

2018-09-28 Thread dan Med
I'm sorry for my behaviour, probably it is because i think i went in most of the directory but they didn't seem to get me to my answer. Il giorno ven 28 set 2018 alle ore 04:03 Zac Hansen ha scritto: > I'm not sure if you have social interaction problems, but you need to > understand that your b

Re: [v8-users] Help

2018-09-27 Thread Zac Hansen
I'm not sure if you have social interaction problems, but you need to understand that your behavior in this mailing list is not appropriate. People have tried to help you with your questions, but you refuse to listen to what they have to say and seem to feel that you are owed support to your s

Re: [v8-users] Help

2018-09-27 Thread dan Med
yes under the WTF directory Il giorno gio 27 set 2018 alle ore 22:55 J Decker ha scritto: > > > On Thu, Sep 27, 2018 at 10:50 AM dan Med wrote: > >> When v8 calls the arraybufferappend method ? >> > ARRAYBUFFERAPPEND IS NOT DEFINED IN V8 IT IS NEVER CALLED. > > >> >> Il giorno mar 4 set 2018 al

Re: [v8-users] Help

2018-09-27 Thread J Decker
On Thu, Sep 27, 2018 at 10:50 AM dan Med wrote: > When v8 calls the arraybufferappend method ? > ARRAYBUFFERAPPEND IS NOT DEFINED IN V8 IT IS NEVER CALLED. > > Il giorno mar 4 set 2018 alle ore 12:12 Graham Reeves < > gra...@grahamreeves.com> ha scritto: > >> memcpy is this >> memcpy( writable_

Re: [v8-users] Help

2018-09-27 Thread dan Med
When v8 calls the arraybufferappend method ? Il giorno mar 4 set 2018 alle ore 12:12 Graham Reeves < gra...@grahamreeves.com> ha scritto: > memcpy is this > memcpy( writable_destination, const_source, length_in_bytes ) > > if you're unsure what it's doing, expand the arguments so the code is more

Re: [v8-users] Help

2018-09-04 Thread Graham Reeves
memcpy is this memcpy( writable_destination, const_source, length_in_bytes ) if you're unsure what it's doing, expand the arguments so the code is more readable (shame on whoever wrote this :) memcpy(static_cast(buffer_->Data()) + bytes_used_, data,bytes_to_save); ... auto* Destination = static_

Re: [v8-users] Help

2018-09-03 Thread dan Med
Can someone help me out ? Il giorno dom 2 set 2018 alle ore 11:26 ha scritto: > memcpy(static_cast(buffer_->Data()) + bytes_used_, > data,bytes_to_save); > > with this memcpy is it copying from data which is a const char pointer n > bytes_to_save into the array buffer_ or into a specific offset

[v8-users] Help

2018-09-02 Thread litokis . tarin
memcpy(static_cast(buffer_->Data()) + bytes_used_, data,bytes_to_save); with this memcpy is it copying from data which is a const char pointer n bytes_to_save into the array buffer_ or into a specific offset from the array ? -- -- v8-users mailing list v8-users@googlegroups.com http://group

Re: [v8-users] Help with eval

2018-02-27 Thread Ben Noordhuis
On Tue, Feb 27, 2018 at 5:16 PM, Artem Boldyrev wrote: > I'm debugging the chromium via visual studio and trying to find a place in > the source code where I can access the source string that is passed to eval > (for example, the line 'var p = 1;' via eval ('var p = 1;')) . Where do I > put a brea

[v8-users] Help with eval

2018-02-27 Thread Artem Boldyrev
I'm debugging the chromium via visual studio and trying to find a place in the source code where I can access the source string that is passed to eval (for example, the line 'var p = 1;' via eval ('var p = 1;')) . Where do I put a breakpoint to see it? Do I need to specifically call any methods

[v8-users] Help with linking v8 libraries with android code

2017-01-28 Thread Dzung Tran
I built the v8 libraries using GN using these args: is_debug = false v8_static_library = true v8_target_cpu = "arm" target_os = "android" target_cpu = "arm" I got these libraries: parallels@ubuntu:~/v8$ find out.gn/ -name *.a out.gn/arm.release/clang_x86_v8_arm/obj/libv8_lib

Re: [v8-users] Help representing a data structure in JS + how to get length to work for indexed object templates

2016-08-08 Thread Ben Noordhuis
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

Re: [v8-users] Help representing a data structure in JS + how to get length to work for indexed object templates

2016-08-08 Thread Jack
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 an object for it each time becomes expensive (and

Re: [v8-users] Help representing a data structure in JS + how to get length to work for indexed object templates

2016-08-08 Thread Ben Noordhuis
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

[v8-users] Help representing a data structure in JS + how to get length to work for indexed object templates

2016-08-06 Thread Jack
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 objects.) I want this to work like this in JS: Team.Nam

Re: [v8-users] Help

2016-01-27 Thread Deepak Subramanian
Thanks Ben, It works with the flag. I also figured out the issue. sudo apt-get install gcc-5 does not install g++-5 installing g++-5 (and update-alternatives) solved it .. Best Regards, Deepak On Wednesday, January 27, 2016 at 10:48:07 AM UTC+1, Ben Noordhuis wrote: > > On Wed, Jan 27, 2016 a

Re: [v8-users] Help

2016-01-27 Thread Ben Noordhuis
On Wed, Jan 27, 2016 at 10:10 AM, Deepak Subramanian wrote: > Hi Ben, > > This is the output > > make[1]: Entering directory > `/home/username/Programming/seperateV8_temp/v8/out' > > /home/username/Programming/seperateV8_temp/v8/third_party/llvm-build/Release+Asserts/bin/clang++ > '-DV8_TARGET_ARC

Re: [v8-users] Help

2016-01-27 Thread Deepak Subramanian
Hi Ben, This is the output make[1]: Entering directory `/home/username/Programming/seperateV8_temp/v8/out' /home/username/Programming/seperateV8_temp/v8/third_party/llvm-build/Release+Asserts/bin/clang++ '-DV8_TARGET_ARCH_X64' '-DENABLE_GDB_JIT_INTERFACE' '-DV8_DEPRECATION_WARNINGS' '-DV8_

Re: [v8-users] Help

2016-01-26 Thread Ben Noordhuis
On Tue, Jan 26, 2016 at 7:53 PM, Deepak Subramanian wrote: > Hi, > > I know this query is specific to me but I am breaking my head on what to do. > I updated my gcc and v8 compilation has gone awry on my ubuntu > > In file included from ../src/allocation.cc:5: > In file included from .././src/allo

[v8-users] Help

2016-01-26 Thread Deepak Subramanian
Hi, I know this query is specific to me but I am breaking my head on what to do. I updated my gcc and v8 compilation has gone awry on my ubuntu In file included from ../src/allocation.cc:5: In file included from .././src/allocation.h:8: In file included from .././src/globals.h:13: .././src/base/

Re: [v8-users] Help about javaScript debug on v8

2015-11-12 Thread Ben Noordhuis
On Thu, Nov 12, 2015 at 8:40 PM, Jane Chen wrote: > In v8 4.6.88, I can no longer find src/debug-debugger.js, nor > src/{liveedit,mirror}-debugger.js. Does it mean that the function-based API > is also deprecated and removed? Those files live in src/debug now (and without the -debugger suffix) b

Re: [v8-users] Help about javaScript debug on v8

2015-11-12 Thread Jane Chen
Ben, In v8 4.6.88, I can no longer find src/debug-debugger.js, nor src/{liveedit,mirror}-debugger.js. Does it mean that the function-based API is also deprecated and removed? Jane On Saturday, March 14, 2015 at 3:53:55 AM UTC-7, Ben Noordhuis wrote: > > On Sat, Mar 14, 2015 at 8:30 AM, Deguo

Re: [v8-users] Help building v8 from source without network communication

2015-05-29 Thread Jakob Kummerow
To clarify: - building V8 never requires internet access - getting the V8 source and build dependencies always requires internet access (how else would you download anything?) - GYP is not part of depot_tools - GYP is always required for building V8 - GYP does not require internet access - there's

Re: [v8-users] Help building v8 from source without network communication

2015-05-29 Thread Ben Noordhuis
On Fri, May 29, 2015 at 12:01 AM, Tim Galvin wrote: > Hello, > > I'm having trouble figuring out a way to install v8 on a machine in a > fashion that wouldn't require any connection to the network. I'd like to > essentially scp a tarball of some sort to a host, and then (aside from using > ssh to

[v8-users] Help building v8 from source without network communication

2015-05-28 Thread Tim Galvin
Hello, I'm having trouble figuring out a way to install v8 on a machine in a fashion that wouldn't require any connection to the network. I'd like to essentially scp a tarball of some sort to a host, and then (aside from using ssh to issue commands) install v8 on the host without talking to th

[v8-users] Help on solving NULL issue

2015-03-16 Thread madana gopal
Hi, I have the scenario where, the webpage has more number of row of elements. Each rows has many images each having an image id say x1, x2,x3. On clicking of any image, it webpage will generate a new jquery request. It is seen that the id of the div image element is coming as NULL on click

[v8-users] help: libv8.so: undefined symbol: _ZTVN6icu_5413UnicodeStringE

2015-03-15 Thread David Xanatos
Hi, I builld V8 on ubuntu 12.04.5 LTS and when i link it against my project and try to start it i get libv8.so: undefined symbol: _ZTVN6icu_5413UnicodeStringE whats wrong? -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this mes

Re: [v8-users] Help about javaScript debug on v8

2015-03-14 Thread Deguo Meng
HI , Thanks for your reply. I will read the code . Best Regards 2015-03-14 18:53 GMT+08:00 Ben Noordhuis : > On Sat, Mar 14, 2015 at 8:30 AM, Deguo Meng wrote: > > HI all , > > Page https://code.google.com/p/v8-wiki/wiki/DebuggerProtocol > shows > > the JSON based debug protocol.

Re: [v8-users] Help about javaScript debug on v8

2015-03-14 Thread Ben Noordhuis
On Sat, Mar 14, 2015 at 8:30 AM, Deguo Meng wrote: > HI all , > Page https://code.google.com/p/v8-wiki/wiki/DebuggerProtocol shows > the JSON based debug protocol. But it also reads that there's another > function based API using JavaScript objects, Is there any materials > introduce the

[v8-users] Help about javaScript debug on v8

2015-03-14 Thread Deguo Meng
HI all , Page https://code.google.com/p/v8-wiki/wiki/DebuggerProtocol shows the JSON based debug protocol. But it also reads that there's another function based API using JavaScript objects, Is there any materials introduce the function b

Re: [v8-users] Help about v8 inline cache

2014-11-26 Thread Ben Noordhuis
On Wed, Nov 26, 2014 at 2:11 PM, Deguo Meng wrote: > Hello , > Could anybody help me to explain the difference between > "Uninitialized" state & "Pre-monomorphic" state. I get a description as > following : > " > > Uninitialized: this is a generic stub. > > We're in this state when we've n

[v8-users] Help about v8 inline cache

2014-11-26 Thread Deguo Meng
Hello , Could anybody help me to explain the difference between " *Uninitialized*" state & "*Pre-monomorphic*" state. I get a description as following : " 1. *Uninitialized*: this is a generic stub. We're in this state when we've never seen any object at a property access site (

[v8-users] Help Getting this working.

2014-02-01 Thread Gregory Hlavac
https://dl.dropboxusercontent.com/u/6638/V8Error3024.zip Errors are properly detected in the outer scope of run scripts (Ie, not in a callback) but errors in callback functions and such cause a catastrophic crash. This has been plaguing me for a while and I thought it was a bug in V8, but

Re: [v8-users] Help with setting local js variable to Null()

2013-01-21 Thread ioannis
Thank you for the reply. Basically what I want to achieve is the following. Consider this js example After my ReleaseObject() function is called x = is still a "point" object At the second print(x) i would like my variable to be null, or report as null without explicitly setting it to null with "

Re: [v8-users] Help with setting local js variable to Null()

2013-01-21 Thread Stephan Beal
On Mon, Jan 21, 2013 at 1:53 PM, ioannis wrote: > // (2) If args[0] is a global object then remove the object form > global scope > Local global = self->CreationContext()->Global(); > This part is not necessary. You already do: > // (3) Delete the c++ object and call its dest

[v8-users] Help with setting local js variable to Null()

2013-01-21 Thread ioannis
Ok, so I have the following code. The function "Delete" is a function property of the Point object, to ensure proper destruction of the c++ object. At point (2) i am checking whether the js variable is a global variable and set the value to Null(). Is there a way to set a local function scope j

Re: [v8-users] help, what these words mean?

2013-01-17 Thread penglei
Thank you! My english is not very well. I seemed to have misunderstood. 发自我的 iPhone 在 2013-1-18,0:36,Jakob Kummerow 写道: > I'm not sure I understand the question. When many objects are created, and > for every object a handle is created too, you'll have many handles. If there > is something m

Re: [v8-users] help, what these words mean?

2013-01-17 Thread Jakob Kummerow
I'm not sure I understand the question. When many objects are created, and for every object a handle is created too, you'll have many handles. If there is something more specific that you're not understanding, please clarify. On Thu, Jan 17, 2013 at 5:11 PM, soulfree wrote: > In the Embedder's

[v8-users] help, what these words mean?

2013-01-17 Thread soulfree
In the Embedder's Guide: "creating a handle every time you create an object can result in a lot of handles" Can anyone explain it for me? Thanks. -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] [HELP] embed v8 through android apps

2012-11-14 Thread joko_suwito
thank you -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

[v8-users] [HELP] compiling hello_world error

2012-11-02 Thread kishikun
i've got this error when trying to compile the hello_world example on getting started of v8 section...i'm using visual studio build scheme...need solution for this :) -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users<>

[v8-users] [HELP] embed v8 through android apps

2012-11-01 Thread kishikun
is there any tutorials explaining about embedding v8 through android apps ??? -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users

Re: [v8-users] help to debug v8 slow down

2012-04-11 Thread Paul Lind
Hi Levent - v8 at r10875 doesn't even build for me, so I cannot explain your 'slowdown'. That rev on trunk is version 3.9.13. If you move to 3.9.14 (r10894), which was pushed just 24 hours later, the mips port will build and run fine, and I verified that the performance is normal (running v8

[v8-users] help to debug v8 slow down

2012-04-11 Thread L.A
Hi, I am running a chromium based webkit port on mipsel linux. I have recently updated the codebase to 10875: http://src.chromium.org/viewvc/chrome/releases/19.0.1068.0/DEPS?view=markup I was previously running a code base from Oct2011. For some reason with the new codebase, javascript slowe

Re: [v8-users] help w/ install

2010-10-27 Thread Paul Lind
Hi Hank - It appears that scons is defaulting to build IA32 arch, and is compiling using flag '-m32'. But you likely do not have the 32-bit compatibility libraries installed, so the link step fails. The easiest thing to do is tell scons to build x64 architecture: scons arch=x64 sample

[v8-users] help w/ install

2010-10-27 Thread hank hill
Hi, I am totally new to v8. I'm trying to install v8 on a RedHat 6 (64 bit) box. I have scons installed, and have checked out the trunk. While I can build with scons successfully, when I attempt to build the V8 shell sample in release mode: scons sample=shell or build the V8 developer shell in

[v8-users] Help! Where can I find the implementation of "static inline String* cast(Object* obj);"

2009-06-07 Thread Yu-zhong shen
Hi, I wonder where the function is defined. I have use grep to check all files under src, just found some invoke statments. The function is wildly used without implementation !! --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.g