[go: up one dir, main page]
More Web Proxy on the site http://driver.im/ skip to main content
10.1007/978-3-642-13374-9_27guideproceedingsArticle/Chapter ViewAbstractPublication PagesConference Proceedingsacm-pubtype
Article

Portable just-in-time specialization of dynamically typed scripting languages

Published: 08 October 2009 Publication History

Abstract

In this paper, we present a portable approach to JIT compilation for dynamically typed scripting languages. At runtime we generate ANSI C code and use the system's native C compiler to compile this code. The C compiler runs on a separate thread to the interpreter allowing program execution to continue during JIT compilation. Dynamic languages have variables which may change type at any point in execution. Our interpreter profiles variable types at both whole method and partial method granularity. When a frequently executed region of code is discovered, the compilation thread generates a specialized version of the region based on the profiled types. In this paper, we evaluate the level of instruction specialization achieved by our profiling scheme as well as the overall performance of our JIT.

References

[1]
Zaleski, M., Brown, A.D., Stoodley, K.: YETI: a graduallY extensible trace interpreter. In: VEE 2007: Proceedings of the 3rd international conference on Virtual execution environments, pp. 83-93. ACM, New York (2007)
[2]
Gal, A., Probst, C.W., Franz, M.: HotpathVM: an effective jit compiler for resourceconstrained devices. In: VEE 2006: Proceedings of the 2nd international conference on Virtual execution environments, pp. 144-153. ACM, New York (2006)
[3]
Whaley, J.: Partial method compilation using dynamic profile information. In: OOPSLA 2001: Proceedings of the 16th ACM SIGPLAN conference on Object oriented programming, systems, languages, and applications, pp. 166-179. ACM, New York (2001)
[4]
Suganuma, T., Yasue, T., Nakatani, T.: A region-based compilation technique for a java just-in-time compiler. In: PLDI 2003: Proceedings of the ACM SIGPLAN 2003 conference on Programming language design and implementation, pp. 312- 323. ACM, New York (2003)
[5]
Suganuma, T., Yasue, T., Nakatani, T.: A region-based compilation technique for dynamic compilers. ACM Trans. Program. Lang. Syst. 28(1), 134-174 (2006)
  1. Portable just-in-time specialization of dynamically typed scripting languages

    Recommendations

    Comments

    Please enable JavaScript to view thecomments powered by Disqus.

    Information & Contributors

    Information

    Published In

    cover image Guide Proceedings
    LCPC'09: Proceedings of the 22nd international conference on Languages and Compilers for Parallel Computing
    October 2009
    423 pages
    ISBN:3642133738
    • Editors:
    • Guang R. Gao,
    • Lori L. Pollock,
    • John Cavazos,
    • Xiaoming Li

    Sponsors

    • NVIDIA
    • Hewlett-Packard
    • IBM Corporation
    • RESERVOIR: Reservoir Labs, Inc.
    • ET INTERNATIONAL: ET International, Inc.

    Publisher

    Springer-Verlag

    Berlin, Heidelberg

    Publication History

    Published: 08 October 2009

    Qualifiers

    • Article

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 0
      Total Downloads
    • Downloads (Last 12 months)0
    • Downloads (Last 6 weeks)0
    Reflects downloads up to 12 Dec 2024

    Other Metrics

    Citations

    View Options

    View options

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media