-
公开(公告)号:US08413047B2
公开(公告)日:2013-04-02
申请号:US13106064
申请日:2011-05-12
IPC分类号: G06F17/27
CPC分类号: G06F17/272 , G06F17/2247 , G06F17/2725
摘要: The aspects enable a processor to concurrently execute markup language code (e.g., HTML) having embedded scripting language code (e.g., JAVASCRIPT®) during a page load operation by a browser. A markup language parser parses markup language code until embedded scripting language code is encountered. The segment of embedded scripting language code is extracted for execution by a scripting language engine which proceeds concurrently with speculative parsing of the markup language code. Markup language code generated by execution of scripting language code is evaluated to determine if it is well formed, and a partial rollback of the markup language parse and re-parsing of portions of the markup language code is accomplished if not. Concurrent parsing of markup language code and execution of scripting language code, with partial roll back of the parsing process when necessary, continues until all markup language code has been parsed and all scripting language code has been executed.
摘要翻译: 这些方面使处理器在浏览器的页面加载操作期间同时执行具有嵌入的脚本语言代码(例如,JAVASCRIPT?)的标记语言代码(例如,HTML)。 标记语言解析器解析标记语言代码,直到遇到嵌入式脚本语言代码。 提取嵌入式脚本语言代码段以由与标记语言代码的推测性解析同时进行的脚本语言引擎执行。 评估通过执行脚本语言代码生成的标记语言代码,以确定其是否形成良好,如果不是,则完成标记语言解析和部分标记语言代码的重新解析的部分回滚。 同时解析标记语言代码和执行脚本语言代码,必要时部分回滚解析过程,一直持续到所有标记语言代码已被解析并且所有脚本语言代码都已被执行。