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

Unified Diff: src/parser.cc

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/parser.h ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index a7a31e7173593e67036cf4ffb9de14bb79f2e478..ecc65301350c9e61805e5bb7ca71aae054704961 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -5727,7 +5727,7 @@ bool RegExpParser::ParseRegExp(Isolate* isolate, Zone* zone,
bool Parser::ParseStatic(ParseInfo* info) {
Parser parser(info);
if (parser.Parse(info)) {
- info->set_language_mode(info->function()->language_mode());
+ info->set_language_mode(info->literal()->language_mode());
return true;
}
return false;
@@ -5735,7 +5735,7 @@ bool Parser::ParseStatic(ParseInfo* info) {
bool Parser::Parse(ParseInfo* info) {
- DCHECK(info->function() == NULL);
+ DCHECK(info->literal() == NULL);
FunctionLiteral* result = NULL;
// Ok to use Isolate here; this function is only called in the main thread.
DCHECK(parsing_on_main_thread_);
@@ -5770,7 +5770,7 @@ bool Parser::Parse(ParseInfo* info) {
void Parser::ParseOnBackground(ParseInfo* info) {
parsing_on_main_thread_ = false;
- DCHECK(info->function() == NULL);
+ DCHECK(info->literal() == NULL);
FunctionLiteral* result = NULL;
fni_ = new (zone()) FuncNameInferrer(ast_value_factory(), zone());
« no previous file with comments | « src/parser.h ('k') | src/ppc/lithium-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698