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

Unified Diff: src/compiler.h

Issue 272513004: Reland r20974: Unify and simplify the FastCloneShallowArrayStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: This time it will work! Created 6 years, 7 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/code-stubs-hydrogen.cc ('k') | src/counters.h » ('j') | src/hydrogen.cc » ('J')
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 24a8a9f5de51c0d3ed79972428bf2e9a330450df..fd26d24d719cf9815518796918f7b8b6edb799be 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -143,6 +143,14 @@ class CompilationInfo {
return RequiresFrame::decode(flags_);
}
+ void MarkMustNotHaveEagerFrame() {
+ flags_ |= MustNotHaveEagerFrame::encode(true);
+ }
+
+ bool GetMustNotHaveEagerFrame() const {
+ return MustNotHaveEagerFrame::decode(flags_);
+ }
+
void SetParseRestriction(ParseRestriction restriction) {
flags_ = ParseRestricitonField::update(flags_, restriction);
}
@@ -368,6 +376,8 @@ class CompilationInfo {
class ParseRestricitonField: public BitField<ParseRestriction, 12, 1> {};
// If the function requires a frame (for unspecified reasons)
class RequiresFrame: public BitField<bool, 13, 1> {};
+ // If the function cannot build a frame (for unspecified reasons)
+ class MustNotHaveEagerFrame: public BitField<bool, 14, 1> {};
unsigned flags_;
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/counters.h » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698