| Index: src/full-codegen.h
|
| diff --git a/src/full-codegen.h b/src/full-codegen.h
|
| index 25e3dba124dfc2f954b5b4dffa90f2e67784443f..ead99586f7edd0dff3d68ad3efebf25a8aea9865 100644
|
| --- a/src/full-codegen.h
|
| +++ b/src/full-codegen.h
|
| @@ -418,12 +418,9 @@ class FullCodeGenerator: public AstVisitor {
|
| Label* if_true,
|
| Label* if_false);
|
|
|
| - // Platform-specific code for a variable, constant, or function
|
| - // declaration. Functions have an initial value.
|
| - // Increments global_count_ for unallocated variables.
|
| - void EmitDeclaration(VariableProxy* proxy,
|
| - VariableMode mode,
|
| - FunctionLiteral* function);
|
| + // If enabled, emit debug code for checking that the current context is
|
| + // neither a with nor a catch context.
|
| + void EmitDebugCheckDeclarationContext(Variable* variable);
|
|
|
| // Platform-specific code for checking the stack limit at the back edge of
|
| // a loop.
|
| @@ -551,12 +548,8 @@ class FullCodeGenerator: public AstVisitor {
|
| Handle<Script> script() { return info_->script(); }
|
| bool is_eval() { return info_->is_eval(); }
|
| bool is_native() { return info_->is_native(); }
|
| - bool is_classic_mode() {
|
| - return language_mode() == CLASSIC_MODE;
|
| - }
|
| - LanguageMode language_mode() {
|
| - return function()->language_mode();
|
| - }
|
| + bool is_classic_mode() { return language_mode() == CLASSIC_MODE; }
|
| + LanguageMode language_mode() { return function()->language_mode(); }
|
| FunctionLiteral* function() { return info_->function(); }
|
| Scope* scope() { return scope_; }
|
|
|
|
|