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

Unified Diff: src/hydrogen-sce.h

Issue 18816002: Turn stack check elimination into proper HPhase. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/hydrogen.cc ('k') | src/hydrogen-sce.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-sce.h
diff --git a/test/cctest/gay-shortest.h b/src/hydrogen-sce.h
similarity index 81%
copy from test/cctest/gay-shortest.h
copy to src/hydrogen-sce.h
index 9b512148e6e0885988190476ef97353e4a7bf769..55e153e0ed5ee3481669ee5c991f81238d51176e 100644
--- a/test/cctest/gay-shortest.h
+++ b/src/hydrogen-sce.h
@@ -1,4 +1,4 @@
-// Copyright 2006-2008 the V8 project authors. All rights reserved.
+// Copyright 2013 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -25,20 +25,24 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#ifndef GAY_SHORTEST_H_
-#define GAY_SHORTEST_H_
+#ifndef V8_HYDROGEN_SCE_H_
+#define V8_HYDROGEN_SCE_H_
+
+#include "hydrogen.h"
namespace v8 {
namespace internal {
-struct PrecomputedShortest {
- double v;
- const char* representation;
- int decimal_point;
+
+class HStackCheckEliminationPhase : public HPhase {
+ public:
+ explicit HStackCheckEliminationPhase(HGraph* graph)
+ : HPhase("H_Stack check elimination", graph) { }
+
+ void Run();
};
-Vector<const PrecomputedShortest> PrecomputedShortestRepresentations();
} } // namespace v8::internal
-#endif // GAY_SHORTEST_H_
+#endif // V8_HYDROGEN_SCE_H_
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-sce.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698