Chromium Code Reviews

Unified Diff: src/scopes.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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | src/typing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 466ed9ab637bbf9ccb40eca9ea4d8f12fdfe3cf7..8f821461d16949ceb2151ac55ae4787a4c454ebd 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -258,9 +258,9 @@ Scope* Scope::DeserializeScopeChain(Isolate* isolate, Zone* zone,
bool Scope::Analyze(ParseInfo* info) {
- DCHECK(info->function() != NULL);
+ DCHECK(info->literal() != NULL);
DCHECK(info->scope() == NULL);
- Scope* scope = info->function()->scope();
+ Scope* scope = info->literal()->scope();
Scope* top = scope;
// Traverse the scope tree up to the first unresolved scope or the global
« no previous file with comments | « src/runtime/runtime-internal.cc ('k') | src/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine