v8

42 views
Skip to first unread message

Max Whell

unread,
Jun 1, 2018, 2:37:23 PM6/1/18
to chromi...@chromium.org
How do you do?
Could you tell me about v8?
What is different of Runtime_Function and Builtins Function. 

Jakob Kummerow

unread,
Jun 1, 2018, 2:45:51 PM6/1/18
to tianxia....@gmail.com, v8-...@googlegroups.com
[+v8-dev, -chromium-dev]

Runtime_Functions are always implemented in C++, and with the --allow-natives-syntax flag are exposed to JavaScript (for tests and [deprecated] JavaScript builtins) as %Function().

There are several kinds of Builtins: some are written in assembly, some with the CodeStubAssembler, some in C++. The latter are indeed similar to Runtime_Functions, but have a different calling convention, and we tend to use them for different things: specifically, for implementing functions described by the ECMAScript spec, whereas Runtime_Functions tend to be used more for "implementation detail" level snippets of functionality which may or may not have an equivalent in the spec.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CADrVbz6asW0EWtLVT5moCBRmEmTF0e0r3qa1ZHbbpq93t0z8Sw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages