| Index: src/codegen.cc
|
| ===================================================================
|
| --- src/codegen.cc (revision 1452)
|
| +++ src/codegen.cc (working copy)
|
| @@ -237,6 +237,13 @@
|
|
|
|
|
| Handle<JSFunction> CodeGenerator::BuildBoilerplate(FunctionLiteral* node) {
|
| +#ifdef DEBUG
|
| + // We should not try to compile the same function literal more than
|
| + // once.
|
| + ASSERT(!node->already_compiled());
|
| + node->mark_as_compiled();
|
| +#endif
|
| +
|
| // Determine if the function can be lazily compiled. This is
|
| // necessary to allow some of our builtin JS files to be lazily
|
| // compiled. These builtins cannot be handled lazily by the parser,
|
|
|