2009年4月26日日曜日

Webkitにv8を組み込もうと頑張ってみる

 ビルドはできたんだけどさあどうしようってなったとき、これといって計画はない。そこで何となく組み込みにチャレンジすることにした。

Chromiumにv8の組み込みについて何か情報ないかと探すとこんな文章が

We use the WebKit open-source project to lay out web pages. This code is pulled from Apple and stored in the /third_party/WebKit directory. WebKit consists primarily of "WebCore" which represents the core layout functionality, and "JavaScriptCore" which runs JavaScript. We only run JavaScriptCore for testing purposes, normally we replace it with our high performance V8 engine. We do not actually use the layer that Apple calls "WebKit," which is the embedding API between WebCore and OS X applications such as Safari. We normally refer to the code from Apple generically as "WebKit" for convenience.

まあ、要はWebkit使ってHTMLのレンダリングはしてますよ。元々Webkitに入ってるWebCoreってのを使って。でもJavascriptは我がV8を使ってますよ。元々Webkitに入ってるJavaScriptCoreはテストぐらいにしか使いませんね。
 厳密にいえば、我々は「Webkit」ってものは使ってはいないんですよ。Webkitっていうのはさっき言ったWebCoreっていうレンダリングエンジンとsafariのようなアプリケーションのAPIを組み込んだものなんで。便宜上、Webkitって読んでいるだけなんですよ。

・・・へぇ。

0 件のコメント:

コメントを投稿