Compiler Assumptions (original) (raw)

Introduction

To allow for better optimizations in the general case, the compiler makes various assumptions. This is an attempt to document these assumptions more fully.

Kinds of assumptions

There are two main kinds of assumptions the compiler makes.

Details

The most important assumptions are described inUnderstanding the Restrictions Imposed by the Closure Compiler, however there are some additional assumptions.

General:

Debugging compiled code

Debugging compiled code is difficult. Here are some basic tips:

Ask the closure-compiler-users mailing list if you're stuck, or if you don't know whether a compiler behavior is a bug or caused by violating a compiler assumption.