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

Unified Diff: src/compiler.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/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 6baddf19959dd3aed1efbcabc5f08bf7a9aa38c2..47751113628c1b0a2b4176e32aa79cdea664e5e8 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -148,13 +148,15 @@ class CompilationInfo {
bool is_module() const;
LanguageMode language_mode() const;
Handle<JSFunction> closure() const;
- FunctionLiteral* function() const;
+ FunctionLiteral* literal() const;
Scope* scope() const;
bool MayUseThis() const;
Handle<Context> context() const;
Handle<SharedFunctionInfo> shared_info() const;
bool has_shared_info() const;
bool has_context() const;
+ bool has_literal() const;
+ bool has_scope() const;
// -----------------------------------------------------------
Isolate* isolate() const {
@@ -172,7 +174,6 @@ class CompilationInfo {
bool is_this_defined() const;
int num_heap_slots() const;
Code::Flags flags() const;
- bool has_scope() const { return scope() != nullptr; }
void set_parameter_count(int parameter_count) {
DCHECK(IsStub());
« no previous file with comments | « src/codegen.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698