Firefoxã®JavaScriptã®ã¨ã³ã¸ã³ãä½ãç´ãã ããã§ãï¼
(注)ï¼ä»¥ä¸ãä¸é¨ãæ¨æ¸¬ã§æ¸ããé¨åãééã£ã¦ãã¦ã詳ããã¯ã³ã¡ã³ãæ¬ãã覧ãã ããã詳細ã¯ãJaegerMonkey - MozillaWikiã«æ¸ãã¦ããã¾ããã
Mozillaã®ãªãã£ã·ã£ã«ããã°ã®è¨äºãimproving JavaScript performance with JägerMonkey – Mozilla Hacks – the Web developer blogãã«ããã¨ãFirefox ã®JavaScriptã®ã¨ã³ã¸ã³ãAppleã®WebKitã®JavaScriptã®ã¨ã³ã¸ã³ããã¼ã¹ã«ä½ãç´ãããã§ããåãè±èªãèªã¿ééãã¦ããªããã¨ãå¼·ãç¥ãã¾ããå称ã¯ãJägerMonkeyã¨è¨ãããã§ãã
å ã ãJavaScriptã®JITã³ã³ãã¤ã©ã«ããé«éåã¯ãFirefoxã®TraceMonkeyããå§ã¾ãã¾ãããã¾ããã¤ã³ã¿ã¼ããªã¿ã§èµ°ããã¦ãããåãæ¨æ¸¬ããJITã³ã³ãã¤ã«ããã¨ããããæ¹ã§ããããã«å¯¾ãã¦ãGoogle Chromeã®V8ãªã©ã¯ãã¤ã³ã¿ã¼ããªã¿ãªã©ã使ããã«ãæåããJITã³ã³ãã¤ã«ãã¦ãã¾ãããã ããV8ã§ããå®è¡æã«åæ å ±ããã£ãã·ã¥ãã2åç®ã¯ãã®æ å ±ãå©ç¨ãã¦ãã¾ãã
Firefoxããã®ããæ¹ã«ãªã£ãã®ã¯ãEcmaScript 4ãä½ããã¨ãAdobeã¨ååãã¦ããæã«ãAdobeã®Nanojitãå¹æçã«ä½¿ãã«ã¯ãå¤æ°ã®åæ å ±ãå¿ è¦ã§ãããããã¤ã³ã¿ã¼ããªã¿ã§èµ°ããã¦ãã決ããã¨ããããæ¹ã«ããã®ããã£ããã ã¨æãã¾ãããã ããEcmaScript 4ã¯æ¿æ²»çã«æ±ºè£ãããªããªã£ã¦ãã¾ãã¾ããããWebKitã®JavaScriptãã¼ã¹ã«ããã¨ãããã¨ã¯ãNanojitããããã¨ããæå³ãªã®ããªï¼V8ãªã©ã¯ããããããx86ã¨ARMã«ãã対å¿ãã¦ããªããCPUå½ä»¤ãçæããé¨åã¯ã³ã¼ããå ±æãããã¨ãªããããããã°ãã°ãã«ä½ã£ã¦ãã¾ãããããããx86ã¯SSEå½ä»¤ã使ã£ã¦ãã¾ãããCPUåºæã®æé©åãè¡ãã¦ãã¾ããã¾ããã°ãã°ãã«ä½ã£ãã¨ããã§ãCPUå½ä»¤ãçæããé¨åã¯ãã³ã¼ãéãã¡ãã£ã¡ãã£å¤ãã¨ããããã§ã¯ãªãã®ã§ï¼æ°åè¡ï¼ãéçºå·¥æ°ãæ¿å¢ããããã§ã¯ããã¾ãããããã«å¯¾ãã¦ãNanojitã使ã£ã¦ããFirefoxã¯Nanojitèªä½ãæã£ã¦ããCPUãæ½è±¡åããï¼ã¤ã¾ãå ±éé¨åãæãåºããï¼ãªãã³ã¼ãã使ã£ã¦ããã¿ãããªã®ã§ããã¶ããCPUåºæã®æé©åãããã«ããã®ãããªããã¨æ¨æ¸¬ãã¦ãã¾ããï¼ã¡ããã¨ã½ã¼ã¹ãèªãã§ããªãã®ã§ãé©å½ãªãã¨æ¸ãã¦ããããï¼
ã¾ããã¤ã³ã¿ããªã¿ã¨JITã³ã³ãã¤ã©ãä½µç¨ããã¿ã¤ãã®ãããåã®æ¨æ¸¬ãå¤ãããªã©ãä½ãã®ã¿ã¤ãã³ã°ã§ã¤ã³ã¿ããªã¿ã«æ»ã£ã¦ãã¾ããã¨ãå¤ãããããã大ããé度ãä½ä¸ããããã¨ãããã¾ããã©ãã«ä»ãã®breakãcontinueãªã©ãFirefox 3.6ã¯JITãå¹ãã¾ãããããã°ã®å 容ããå¯ããã«ãJägerMonkeyã¯ä½µç¨åã¯ããã¦JITã³ã³ãã¤ã©ã®ã¿ã«ããã®ã ã¨æãã¾ãã
ãã¾ããFirefoxã¯IE以å¤ã§ã¯ãæãé ãJavaScriptã¨ã³ã¸ã³ã«ãªã£ã¦ãã¾ã£ãã®ã§ãJägerMonkeyã«ã¯æå¾ ãã¾ãï¼JägerMonkeyã«ãªã£ã¦ããã«ã¼ãã®ããã«ããã¯ã«ãªã£ã¦ããé¨åã¯ãç¹å¥ãªæé©åããããããã§ãã
楽ãã¿âª