Index: src/full-codegen/full-codegen.h |
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h |
index 34a5dc0454793e65d4fc6be035c6f09735df7d8b..e8e8707c6b2a27f2811db8bd8d9259cfab0d8a4b 100644 |
--- a/src/full-codegen/full-codegen.h |
+++ b/src/full-codegen/full-codegen.h |
@@ -696,10 +696,9 @@ class FullCodeGenerator: public AstVisitor { |
Handle<Script> script() { return info_->script(); } |
bool is_eval() { return info_->is_eval(); } |
bool is_native() { return info_->is_native(); } |
- LanguageMode language_mode() { return function()->language_mode(); } |
+ LanguageMode language_mode() { return literal()->language_mode(); } |
bool has_simple_parameters() { return info_->has_simple_parameters(); } |
- // TODO(titzer): rename this to literal(). |
- FunctionLiteral* function() { return info_->literal(); } |
+ FunctionLiteral* literal() { return info_->literal(); } |
Scope* scope() { return scope_; } |
static Register result_register(); |