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

Unified Diff: src/compiler.h

Issue 553149: Implement simple fast-path code for functions containing this property stores and global variables. (Closed)
Patch Set: Incorporated codereview comments. Created 10 years, 11 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/arm/full-codegen-arm.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 d12423df86cbdd17604f7049a30f56d0274e50e6..19499de71ba79a48ad43d4388c7cc9452b210a57 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -43,7 +43,9 @@ class CompilationInfo BASE_EMBEDDED {
int loop_nesting)
: shared_info_(shared_info),
receiver_(receiver),
- loop_nesting_(loop_nesting) {
+ loop_nesting_(loop_nesting),
+ has_this_properties_(false),
+ has_globals_(false) {
}
Handle<SharedFunctionInfo> shared_info() { return shared_info_; }
@@ -53,10 +55,18 @@ class CompilationInfo BASE_EMBEDDED {
int loop_nesting() { return loop_nesting_; }
+ bool has_this_properties() { return has_this_properties_; }
+ void set_has_this_properties(bool flag) { has_this_properties_ = flag; }
+
+ bool has_globals() { return has_globals_; }
+ void set_has_globals(bool flag) { has_globals_ = flag; }
+
private:
Handle<SharedFunctionInfo> shared_info_;
Handle<Object> receiver_;
int loop_nesting_;
+ bool has_this_properties_;
+ bool has_globals_;
};
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698