A JavaScript object storage method and device and a JavaScript object recovery method and device

A technology of object storage and object recycling, which is applied in the field of memory management, can solve problems such as unsmooth operation of digital TV middleware and small remaining space of general memory, and achieve the effects of saving general memory, improving operating efficiency, and realizing recycling

Active Publication Date: 2017-09-15
SHENZHEN IPANEL TECH LTD
View PDF8 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, it has been found through research that when a large JavaScript-specific memory is allocated from the general memory to only be used for the memory allocation of the JavaScript engine during operation, the remaining space of the general memory is often smaller, which in turn leads to digital TV The problem that the middleware does not run smoothly

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
  • A JavaScript object storage method and device and a JavaScript object recovery method and device
  • A JavaScript object storage method and device and a JavaScript object recovery method and device
  • A JavaScript object storage method and device and a JavaScript object recovery method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0054] figure 1 It is a flow chart of a JavaScript object storage method provided by the embodiment of this application.

[0055] Such as figure 1 As shown, the method includes:

[0056] S101. Determine the JavaScript object generated by the JavaScript engine in the process of processing the JavaScript script;

[0057] S102. Store the JavaScript object in a target storage location, and acquire address information for indicating the target storage location, where the target storage location is different from the JavaScript-specific memory;

[0058] Optionally, the target storage location is located in a general-purpose memory, and the general-purpose memory separates the JavaScript-specific memory, and the JavaScript-specific memory is only used for memory allocation of the JavaScript engine during operation, so that all Describes the storage of JavaScript objects generated by the JavaScript engine in the process of processing JavaScript scripts.

[0059] S103. Determine a ...

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 embodiments of the invention provide a JavaScript object storage method and device and a JavaScript object recovery method and device. A determined JavaScript object is stored to a target storage position (different from JavaScript special memory) and address information used for indicating the target storage position is acquired; the JavaScript object is stored by determining a first target heap memory from the JavaScript special memory and storing the address information. Therefore, the occupation of a JavaScript special memory by a JavaScript object generated in an operation process of a JavaScript engine is reduced, a general-purpose memory is saved and the operating efficiency of digital television middleware is increased. Correspondingly, by providing the JavaScript object recovery method for the JavaScript object storage method, a JavaScript special memory can be recovered.

Description

technical field [0001] The invention relates to the technical field of memory management, in particular to a JavaScript object storage and recovery method and device. Background technique [0002] Digital TV middleware is a software that runs on a set-top box or digital TV. The main functions of digital TV middleware include Web application presentation, TV program reception and descrambling, and local program playback. The client browsing program (browser) of the World Wide Web service can send various requests to the World Wide Web server, and interpret, display and play the hypertext information and various multimedia data formats sent from the server. main module. [0003] JavaScript is a literal scripting language (everything in JavaScript can be regarded as a JavaScript object), and its interpreter is called JavaScript engine (JavaScript engine is a virtual machine that specializes in JavaScript scripts, usually attached to the browser browser), which is part of the ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F12/02G06F9/455
CPCG06F9/45529G06F12/0253
Inventor 徐佳宏刘瑞顺朱吕亮
Owner SHENZHEN IPANEL TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products