Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Unified Diff: src/full-codegen/full-codegen.h

Issue 1301583005: Rename ParserInfo::function() and CompilationInfo::function() to literal(). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/full-codegen.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 846a6afecc5849db745e160dfe3c190892acccae..34a5dc0454793e65d4fc6be035c6f09735df7d8b 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -42,7 +42,7 @@ class FullCodeGenerator: public AstVisitor {
globals_(NULL),
context_(NULL),
bailout_entries_(info->HasDeoptimizationSupport()
- ? info->function()->ast_node_count()
+ ? info->literal()->ast_node_count()
: 0,
info->zone()),
back_edges_(2, info->zone()),
@@ -698,7 +698,8 @@ class FullCodeGenerator: public AstVisitor {
bool is_native() { return info_->is_native(); }
LanguageMode language_mode() { return function()->language_mode(); }
bool has_simple_parameters() { return info_->has_simple_parameters(); }
- FunctionLiteral* function() { return info_->function(); }
+ // TODO(titzer): rename this to literal().
+ FunctionLiteral* function() { return info_->literal(); }
Scope* scope() { return scope_; }
static Register result_register();
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698