嵌入式javascript脚本解释器的分析与实现-analysis and implementation of embedded javascript script interpreter.docxVIP

  • 22
  • 0
  • 约3.61万字
  • 约 49页
  • 2018-07-28 发布于上海
  • 举报

嵌入式javascript脚本解释器的分析与实现-analysis and implementation of embedded javascript script interpreter.docx

嵌入式javascript脚本解释器的分析与实现-analysis and implementation of embedded javascript script interpreter

摘要论文在深入研究C++对象模型的基础上,提出了一种针对嵌入式开发环境的{民运行成本和维护成本的对象模型一-ooc对象模型,其执行效率可以和C++对象模型相比。我们选择了嵌入式开发环境中普遍支持的C语言实现了该模型的程序设计环境,并在此环境中实现了解释器的前端。论文在考察了目前较先进的优化机制的基础上,考虑到嵌入式环境的资源限制,提出了适用于JavaScript解释器的优化框架。该框架利用后端程序动态运行信息,制导前端进行优化决策,在不降低系统可用性的前提下,选择出最有效的优化策略,从而使性能得到提高。论文中结合了嵌入式平台和JavaScript语言的特点,采用了前后端分离的架构以使解释器获得良好的移植性和扩展性。解释器前端的设计实现利用了面向对象技术。其中采用了对象来表示抽象语法树的结点,用对象之间的关联关系来表示语法成分之间的嵌套关系,并在字节码的生成过程中充分利用多态机制。同时,该解释器提供了良好的应用程序接口,不仅可以为嵌入式Web浏览器提供脚本支持,也可以为其他需要脚本支持的宿主环境提供支持。最后,我们开发的解释器通过了Mozi11a浏览器所采用的JavaScriptTestLibrary测试库的严格测试,可以说其正确性和健壮性已经达到了商用程度。关键词:嵌入式Web浏览器JavaScript解释器对象模型反馈制导优化?、AbstractThefirstcontributionofthisthesisisanewobjectmodelcalledOOCobjectmodel.ThemodelisoriginallybasedonC++objectmodel,butwiththeembeddedenvironmentsresourcesrestrictionconcemed,themodelhaslowruntimeoverheadandlowmaintenancecost,anditsperformanceinexecutioniscomparativetoC++objectmodel.WechoosetheClanguage,whichshouldbethemostpopul缸high-levellanguagesupportedinallembeddeddevelopmentenvironments,toimplementaprograrnmingenvironmentofthemodel.Thefront-endoftheinterpreter,whichwillbeaddressedinnextp缸agraph,istotallyimplementedinthisprograrnmingenvironment.ThesecondcontributionofthisthesisisthedesignandimplementationofanembeddedJavaScriptinterpreterfortheembeddedwebbrowser.Intheinterpreter,afront-endlback-endarchitectureisusedtoachieveagooddegreeofportabilityandextendibility,andafeedback-àirectedoptimizationframeworkisusedtoimprovetheinterpretersperformance.Also,theinterpreterprovidesthehostenvironmentwithasetofwell-definedAPIs.Atlast,theinterpreterhaspassedthestricttestwithJavaScriptTestLibraryusedby孔10zillabrowser.Thetestingresultsprovethattheinterpreterscorrectnessandrobustnesshavereachedahighlevelkeywords:EmbeddedWebBrowser,JavaScriptInterpreter,ObjectModel,Feedback-DirectedOptimization第1绪论1.1.背景及意义1.1.1.嵌入式系统的广泛应用计算机技术的应用已经渗透到科学研究、工程设计、军事技术、各类产业和商业文化艺术、娱乐业及人们的日常生活,每-个人都在日常生活中利用计算机技术提供的服务σ在这其中,嵌入式系统扮演着十分重要的角色。随着嵌入式计算机、VCD、车载PC等与人们日常生活息息相关的嵌入式应用越来越多,普通人接触的嵌入式系统也越来越广泛:在家里,嵌入式系统可以存在于他家的洗衣机、空调器等家用电器里:外出时,嵌

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档