Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Integer multiplication optimization method based on JT engine of Firefox browser on Feiteng platform

An optimization method, browser technology, applied in the field of communication, can solve problems such as no code generation optimization

Inactive Publication Date: 2018-09-07
KYLIN CORP
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method improves the efficiency of code generation by generating profile information, but does not perform targeted code generation optimization based on specific types of bytecodes

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Integer multiplication optimization method based on JT engine of Firefox browser on Feiteng platform
  • Integer multiplication optimization method based on JT engine of Firefox browser on Feiteng platform
  • Integer multiplication optimization method based on JT engine of Firefox browser on Feiteng platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054]This embodiment provides an integer multiplication optimization method based on the Feiteng platform Firefox browser JIT engine, such as image 3 Shown is an embodiment of the optimized JIT integer multiplication code generation optimization process according to an embodiment of the present invention, and it mainly includes a code generation subprocess whose right operand is a constant and a code generation subprocess whose right operand is a register , and also used a data structure: LMulI object. This object records the content and type of the lvalue and rvalue of the integer multiplication operation, the destination register information, and the range information of the calculation result. The specific implementation steps are as follows:

[0055] Step S301: read the isConstant sign of the right operand in the LMulI object to judge whether the right operand is a constant, if it is a constant, then perform step S302, otherwise perform step S303;

[0056] Step S302: E...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides an integer multiplication optimization method based on the JT engine of the Firefox browser on the Feiteng platform. The method sequentially comprises the following steps: S110: starting to optimize a JIT compilation process; S120: MIR generation; S130: performing optimization; S140: MIR degradation; S150: code generation, including: a, integer multiplication code generation, and b, reading the right operand in the LMulI object, and performing the corresponding operation according to the type of the right operand; and S160: ending. The method provided by the present invention has the beneficial effects that the type inference and the data analysis are performed according to the type data collected by the JS engine, the previous floating point multiplication instruction is replaced with other equivalent instructions in the optimization JIT code generation process, and the multiplication operation is completed in one instruction cycle, so that the purpose of optimizing the efficiency of the integer multiplication can be achieved.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to an integer multiplication optimization method based on the JIT engine of the Feiteng platform Firefox browser. Background technique [0002] With the rapid development of the Internet, browsers have become the main Internet portal for desktop end users. Nowadays, the content of the website is more and more abundant, and the functions are more and more complex. In order to quickly render the page and improve the user experience, most of the dynamic page rendering and data processing work will be performed on the browser side. This puts forward higher requirements on the performance of the browser, especially the performance of the JS engine. [0003] The early JS engines were implemented based on interpreters. Interpreters have the advantage of short code loading and execution delays, but they need to be re-interpreted each time for repeatedly executed code, res...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/41
CPCG06F8/443
Inventor 孙科张铎何明武唐晓东魏立峰孔金珠吴庆波
Owner KYLIN CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products