[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://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[v8-users] Arraybuffer

2018-09-01 Thread litokis . tarin
array_buffer_builder.cc in src /
third_party /blink 
/renderer 
/platform 
/
wtf 

/typed_arrays 

/array_buffer_builder.cc 

 
the ArrayBufferBuilder 

::Append 

 method 
will be called through a view on top of the arraybuffer? something like, 
there's a arraybuffer of 30bytes in length and we define a view on top of 
it (so a typedarray) wehn i call on the new typedarray object the .append 
method it will call ArrayBufferBuilder 

::Append 

  
and then inside it's code it will execute ArrayBufferBuilder 

::ExpandCapacity 

 if 
it needs to reallocate the array ?

if so inside the expandCapacity definition bytes_used 

 referes 
to the elements inside the actual arraybuffer so if i have a arraybuffer 
which is 8 bytes in length [ ][ ][ ][ ][ ][ ][ ][ ] and i fill in only 3 
bytes so 
[1][2][3][ ][ ][ ][ ][ ] the bytes_used 

 when 
retrieved will be set to 3 bytes ??

ArrayBufferBuilder 
::ArrayBufferBuilder
 
()
: bytes_used_ 
(0),
 variable_capacity_ 
(true)
 {  buffer_ 

 = 

 ArrayBuffer 
::Create
 
(kDefaultBufferCapacity
 

[v8-users] Built

2018-08-12 Thread litokis . tarin
Hi i've been trying to build the javascript v8 engine for as long as 3 
weeks now,. i've followed many guides all of them miss some information
I'm looking for a guide that helps to build the engine it self along all of 
its compiler and stuff such that i could be able to throw at it a /HTML/JS 
page.
Thank you

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.