[v8-users] Re: The v8 6.8 and 6.9 version does not get the libv8_snapshot.a library

2018-09-09 Thread 773749686
*ok!finally I solved my problem, now I can get the correct so library with 
the following configuration, and there is no problem running when embedding 
android.*
*'''*
is_component_build = false
is_debug = false
symbol_level = 1
target_cpu = "arm"
target_os = "android"
use_goma = false
v8_android_log_stdout = true
v8_static_library = true
v8_use_external_startup_data = false
v8_enable_i18n_support = false

'''

在 2018年9月6日星期四 UTC+8下午1:03:13,7737...@qq.com写道:
>
>
> I can get libv8_snapshot.a with the stable version of 6.5, but the later 
> stable version such as 6.8, 6.9 does not have libv8_snapshot.a library 
> after compiling, but I have to use libv8_snapshot.a library when embedding 
> android, because only this is used. The library will not report an error. 
> Others such as libv8_external_snapshot.a, libv8_nosnapshot.a will have 
> errors and cannot be resolved. I use CMakeLists.txt to embed the v8 library 
> into android when using libv8_nosnapshot.a Error:error: undefined reference 
> to 'vtable for v8::internal::SetupIsolateDelegate'. When using 
> libv8_external_snapshot.a, I won't be able to play the so library, why? 
> What should I do?
>
>
>

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


Re: [v8-users] Arraybuffer

2018-09-09 Thread dan Med
I don't have understood this part, let me explain it to you.
This is how i get it tell me if i'm wrong at any part.

I need to understand how is the structure in memory of the arraybuffer how
is it represented and if the data of the array are directly stored at an
offset accessed by buffer_ -> data().


before the call to expand capacity it does create an array


the arraybuffer in src /third_party
/blink
/renderer
/platform
/
wtf

/typed_arrays

/array_buffer_builder.cc

is
called whenever the renderer  (has to execute some javascript which defines
arraybuffers)
First when is arraybuffer::append  called, cause i know that if someone
need to reallocate a bigger arraybuffer then a new instance will be created
and filled with the old values if the length in the original array isn't
has much as the user reqeusted ?

One more thing is, when this class is called, the arraybuffer is always set
to the initial length of static const int kDefaultBufferCapacity

= 32768; if in the javascript i declare an arraybuffer of 20bytes will it
allocate of
32768bytes anyway =?







Il giorno mar 4 set 2018 alle ore 12:14 Graham Reeves <
gra...@grahamreeves.com> ha scritto:

> > is std::numeric_limits
> 
> ::max
> ();
> referring to the max unsigned int value ? cause the source code won't find
> it
> Yes, that's the maximum value unsigned (an unsigned int) can be, but what
> do you mean by, the source won't find it?
>
> On Monday, 3 September 2018 19:55:48 UTC+1, dan Med wrote:
>>
>> Can someone help me out?
>>
>> Il giorno sab 1 set 2018 alle ore 15:30  ha scritto:
>>
>>> 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