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

Unified Diff: src/hydrogen-infer-representation.h

Issue 148503002: A64: Synchronize with r15545. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 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/hydrogen-gvn.cc ('k') | src/hydrogen-infer-representation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-infer-representation.h
diff --git a/src/a64/debugger-a64.h b/src/hydrogen-infer-representation.h
similarity index 74%
copy from src/a64/debugger-a64.h
copy to src/hydrogen-infer-representation.h
index 50480cc268a49f53fafc1650e79d73de573524ed..7c605696c4b956152bdd9dfc74c83e80569e3714 100644
--- a/src/a64/debugger-a64.h
+++ b/src/hydrogen-infer-representation.h
@@ -25,32 +25,33 @@
// (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 V8_A64_DEBUGGER_A64_H_
-#define V8_A64_DEBUGGER_A64_H_
+#ifndef V8_HYDROGEN_INFER_REPRESENTATION_H_
+#define V8_HYDROGEN_INFER_REPRESENTATION_H_
-#if defined(USE_SIMULATOR)
-
-#include "globals.h"
-#include "utils.h"
-#include "a64/constants-a64.h"
-#include "a64/simulator-a64.h"
+#include "hydrogen.h"
namespace v8 {
namespace internal {
-class Debugger : public Simulator {
+class HInferRepresentationPhase : public HPhase {
public:
- Debugger(Decoder* decoder, FILE* stream = stdout)
- : Simulator(decoder, NULL, stream) {}
+ explicit HInferRepresentationPhase(HGraph* graph)
+ : HPhase("H_Infer representations", graph),
+ worklist_(8, zone()),
+ in_worklist_(graph->GetMaximumValueID(), zone()) { }
+
+ void Run();
+ void AddToWorklist(HValue* current);
- // Functions overloading.
- void VisitException(Instruction* instr);
+ private:
+ ZoneList<HValue*> worklist_;
+ BitVector in_worklist_;
+
+ DISALLOW_COPY_AND_ASSIGN(HInferRepresentationPhase);
};
} } // namespace v8::internal
-#endif // USE_SIMULATOR
-
-#endif // V8_A64_DEBUGGER_A64_H_
+#endif // V8_HYDROGEN_INFER_REPRESENTATION_H_
« no previous file with comments | « src/hydrogen-gvn.cc ('k') | src/hydrogen-infer-representation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698