[webkit-dev] JavaScriptCore on Fuchsia

Filip Pizlo fpizlo at apple.com
Tue Jun 26 14:08:23 PDT 2018


Hi Adam,

This looks super interesting!

I have some questions:

- Does your JSC port enable all of JSC’s optimization features, like the FTL JIT and concurrent GC?
	- Is it a goal to enable basically everything we enable, long term?

- Is this 32-bit, 64-bit, or both?

- Is this mainly for ARM, x86, some other CPU, or lots of CPUs?

- Do you plan to do significant work on JSC, or do you mainly want to just stay up to date with what we’re doing?

More thoughts inline:

> On Jun 26, 2018, at 2:00 PM, Adam Barth <abarth at webkit.org> wrote:
> 
> As part of developing Fuchsia [1] (a new open-source operating
> system), we ported JavaScriptCore to run on Fuchsia [2].  At the time,
> our intent was to use this code within the Fuchsia source tree but not
> to make it available for developers writing applications for Fuchsia.
> However, recently, we've gotten a number of requests from customers
> who would like to use JavaScriptCore in their Fuchsia applications.
> 
> I'd like your advice about the best way to maintain JavaScriptCore
> support for Fuchsia.  Here are some possibilities I can imagine, but
> we're open to other possibilities as well:
> 
> 1. Maintain a fork of JavaScriptCore somewhere on googlesource.com
> that supports Fuchsia and instruct customers to obtain the Fuchsia
> port of JavaScriptCore from googlesource.com.

I’d be OK with this.

> 
> 2. Maintain a branch of JavaScriptCore in svn.webkit.org that supports Fuchsia.

In my opinion, SVN branches are not significantly better than (1), and in many ways they are worse.  I wouldn’t advocate for this.

> 
> 3. Maintain support for JavaScriptCore in the mainline of svn.webkit.org.

I think that I’d be OK with this, too.  This seems better than (1) if you want to stay up-to-date.

-Filip

> 
> For reference, here's the patch we applied to WTF and JavaScriptCore
> to enable Fuchsia support:
> 
> https://gist.github.com/abarth/b4fc909d83be5133cd7a5af209757e96
> 
> This patch is based on webkit at 206446, but we'd obviously rebase the
> patch onto top-of-tree before contributing it.
> 
> I'm happy to answer any questions you might have that would help you
> provide the best advice.  If you would prefer to communicate off-list,
> I'm happy to do that as well.
> 
> Thanks in advance,
> Adam
> 
> [1] https://fuchsia.googlesource.com/docs/+/master/README.md
> [2] Actually, if you look at
> https://fuchsia.googlesource.com/third_party/webkit, you'll see that
> we've ported WebCore as well, but this email concerns only
> JavaScriptCore.
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev



More information about the webkit-dev mailing list