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

Unified Diff: src/compiler/pipeline.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/compiler/linkage.cc ('k') | src/debug/debug-scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index e9545b8f3eff884902f8dcf7f21af3656dee4af6..a528cceea523644bdb575f61f76958bce3e6fdcd 100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -359,7 +359,7 @@ base::SmartArrayPointer<char> GetDebugName(CompilationInfo* info) {
return name;
} else {
AllowHandleDereference allow_deref;
- return info->function()->debug_name()->ToCString();
+ return info->literal()->debug_name()->ToCString();
}
}
@@ -1014,7 +1014,7 @@ Handle<Code> Pipeline::GenerateCode() {
if (json_file != nullptr) {
OFStream json_of(json_file);
Handle<Script> script = info()->script();
- FunctionLiteral* function = info()->function();
+ FunctionLiteral* function = info()->literal();
base::SmartArrayPointer<char> function_name =
info()->shared_info()->DebugName()->ToCString();
int pos = info()->shared_info()->start_position();
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/debug/debug-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698