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

Unified Diff: src/compiler/common-operator.h

Issue 595863002: Adding more missing deoptimization points in Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 years, 3 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/code-generator.cc ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.h
diff --git a/src/compiler/common-operator.h b/src/compiler/common-operator.h
index a3659adfc2a05cc56231037a54daab292d1288be..0e45b32d2a401a3b84fc57671500b6c2ccafb585 100644
--- a/src/compiler/common-operator.h
+++ b/src/compiler/common-operator.h
@@ -26,9 +26,29 @@ class Operator;
// Flag that describes how to combine the current environment with
// the output of a node to obtain a framestate for lazy bailout.
-enum OutputFrameStateCombine {
- kPushOutput, // Push the output on the expression stack.
- kIgnoreOutput // Use the frame state as-is.
+class OutputFrameStateCombine {
+ public:
+ enum CombineKind {
+ kPushOutput, // Push the output on the expression stack.
+ kPokeAt // Poke at the given environment location,
+ // counting from the top of the stack.
+ };
+
+ static OutputFrameStateCombine Ignore();
+ static OutputFrameStateCombine Push(size_t count = 1);
+ static OutputFrameStateCombine PokeAt(size_t index);
+
+ CombineKind kind();
+ size_t GetPushCount();
+ size_t GetOffsetToPokeAt();
+
+ bool IsOutputIgnored();
+
+ private:
+ OutputFrameStateCombine(CombineKind kind, size_t parameter);
+
+ CombineKind kind_;
+ size_t parameter_;
};
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/common-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698