Hi,

builtins are set up in bootstrapper.cc, you can comment out the parts that
install builtin objects and check how well that works. Note that some
internal functionality rely on builtin objects and functions though, so
even if you don't install them onto the global object, you may need them to
be initialized.

Cheers,

Yang

On Fri, Jan 31, 2020 at 6:20 AM <[email protected]> wrote:

> I am trying to embed engine in c++ application. i don't want the
> java-script  built-in Methods and functions.
> I need it only for arithmetic and relational operators.
>
> after exploring much in internet ,i got to know built-ins functions are
> de-serilized and put in from these native_blob.bin and snapshot_blob.bin .
> I commented v8::V8::InitializeExternalStartupData(argv[0]); , but throwing
> some run-time error.
>
> Could anyone please help me on this.
>
> Requirement : Embedding v8 engine without built-in functionality as i
> need it only for arithmetic, relational operators.
> I don't want these builts-in function gets de-serialized and put in heap (
> https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
> )
>
>
> References:
> 1) https://v8.dev/blog/embedded-builtins.
> 2) https://v8.dev/blog/custom-startup-snapshots
> 3) https://v8.dev/docs/builtin-functions
> 4) https://v8.dev/blog/lazy-deserialization
>
> Thanks & Regards
> Praveen N
>
>
> --
> --
> v8-dev mailing list
> [email protected]
> http://groups.google.com/group/v8-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "v8-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/v8-dev/8dea5e1d-374d-42ea-a3f0-9c64cffeec38%40googlegroups.com
> <https://groups.google.com/d/msgid/v8-dev/8dea5e1d-374d-42ea-a3f0-9c64cffeec38%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-dev/CAFSTc_jDhOOMjFm%2BxUrSamFn%3Da3TL0ZqMF9fed%2B53FWj%3DmHoYg%40mail.gmail.com.

Reply via email to