Patents
US 9,823,913 B2#37799437 Most CitedActiveUnited States (USPTO)Utility

Method of adding local variables in place of global in JavaScript

2Forward Citations (#37799437 Global)
0.2/yrCitation Velocity (#31491404 Global)
1.09Citation PageRank (#37199449 Global)
18Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

The present invention, in some embodiments thereof comprises a computer implemented method of detecting global variables in JavaScript code, and adding local variables in place of the global variables, comprising receiving a JavaScript code containing at least one of a plurality of globally defined functions, identifying at least one of: one or more confined global variables which receive a value within a first JavaScript scope wherein the value is not referenced outside of the first JavaScript scope, and one or more repeating global variables accessed repeatedly within a second JavaScript scope, and adding local variables in place of at least one of the confined global variables and the repeating global variables.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 2.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer implemented method of detecting global variables in JAVASCRIPT code, and adding local variables in place of said global variables, comprising: receiving by a processor a JAVASCRIPT code containing at least one of a plurality of globally defined functions; generating by the processor at least one call flow graph for each one of said at least one of globally defined functions; generating by the processor an inter-procedural control flow graph for each one of said call flow graph; generating by the processor an inter-procedural dominator graph for each one of said inter-procedural cont

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (18)

PatentTitleYearCitations
US 2003041312 A1Program processing method utilizing dynamically reconfigurable hardware to enable faster processing, and program to execute same processing method—26
US 2003140336 A1Program conversion method, computer using it and program—13
US 2004015918 A1Program optimization method and compiler using the program optimization method—22
US 2006161897 A1Using code motion and write and read delays to increase the probability of bug detection in concurrent systems—41
US 2007226683 A1Method of efficiently performing precise profiling in a multi-threaded dynamic compilation environment—25
US 2009049437 A1Method for configuring a computer program—16
US 7,584,452 B1System and method for controlling the visibility and use of data in a programming environment200918
US 7,689,979 B1Methods and apparatus to improve application launch time201020
US 2012084761 A1Interprocedural Exception Method—23
US 8,307,337 B2Parallelization and instrumentation in a producer graph oriented programming framework201223
US 2012311533 A1Editor visualization of symbolic relationships—38
US 2012311546 A1Transforming dynamic source code based on semantic analysis—44
US 8,429,604 B1System and method for extracting behavioral code from a software code file201324
US 8,453,132 B2System and method for recompiling code based on locality domain and thread affinity in NUMA computer systems20139
US 2013275954 A1Inter-procedural unreachable code elimination with use graph—7
US 8,656,496 B2Global variable security analysis20147
US 8,893,099 B1Inner function local variable name shadowing20143
US 2016170725 A1Global call control flow graph for optimizing software managed manycore architectures—26

Non-Patent Literature (5)

  • Abadi et al., A Parallel On-Demand Algorithm for Computing Interprocedural Dominators, © 2014 IEEE.
  • Allen, "Control Flow Analysis," 1970.
  • De Sutter et al., "A Practical Interprocedural Dominance Algorithm," ACM Transactions on Programming Languages and Systems,vol. 29, No. 4,Article 19, Publication date: Aug. 2007.
  • D'Souza, "nterprocedural Analysis: Sharir-Pnueli's Call-strings Approach," Sep. 4, 2013.
  • Lee et al., "Global Variable Localization and Transformation for Hardware Synthesis from High-Level Programming Language Description," IEEE 2001.