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

Unified Diff: src/hydrogen-check-elimination.h

Issue 310593004: Revert "Handle HCheckInstanceType and HIsStringAndBranch in check elimination." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | src/hydrogen-check-elimination.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-check-elimination.h
diff --git a/src/hydrogen-check-elimination.h b/src/hydrogen-check-elimination.h
index 9f3b198c6f708f750c6976fe0f986b7bfbeb96b1..b38447b1e7b43235ab279be130d0d372cd46b3a3 100644
--- a/src/hydrogen-check-elimination.h
+++ b/src/hydrogen-check-elimination.h
@@ -16,20 +16,11 @@ namespace internal {
class HCheckEliminationPhase : public HPhase {
public:
explicit HCheckEliminationPhase(HGraph* graph)
- : HPhase("H_Check Elimination", graph), aliasing_(),
- string_maps_(kStringMapsSize, zone()) {
- // Compute the set of string maps.
- #define ADD_STRING_MAP(type, size, name, Name) \
- string_maps_.Add(Unique<Map>::CreateImmovable( \
- graph->isolate()->factory()->name##_map()), zone());
- STRING_TYPE_LIST(ADD_STRING_MAP)
- #undef ADD_STRING_MAP
- ASSERT_EQ(kStringMapsSize, string_maps_.size());
+ : HPhase("H_Check Elimination", graph), aliasing_() {
#ifdef DEBUG
redundant_ = 0;
removed_ = 0;
removed_cho_ = 0;
- removed_cit_ = 0;
narrowed_ = 0;
loads_ = 0;
empty_ = 0;
@@ -44,20 +35,13 @@ class HCheckEliminationPhase : public HPhase {
friend class HCheckTable;
private:
- const UniqueSet<Map>* string_maps() const { return &string_maps_; }
-
void PrintStats();
HAliasAnalyzer* aliasing_;
- #define COUNT(type, size, name, Name) + 1
- static const int kStringMapsSize = 0 STRING_TYPE_LIST(COUNT);
- #undef COUNT
- UniqueSet<Map> string_maps_;
#ifdef DEBUG
int redundant_;
int removed_;
int removed_cho_;
- int removed_cit_;
int narrowed_;
int loads_;
int empty_;
« no previous file with comments | « no previous file | src/hydrogen-check-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698