Index: src/profiler/simulator-helper.h |
diff --git a/src/crankshaft/hydrogen-canonicalize.h b/src/profiler/simulator-helper.h |
similarity index 37% |
copy from src/crankshaft/hydrogen-canonicalize.h |
copy to src/profiler/simulator-helper.h |
index a17557ac8b0549d777c354189b3f82f3d7279642..7f28c4db7fa029213fc145e8bf38759d78a8e7f9 100644 |
--- a/src/crankshaft/hydrogen-canonicalize.h |
+++ b/src/profiler/simulator-helper.h |
@@ -2,28 +2,29 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef V8_CRANKSHAFT_HYDROGEN_CANONICALIZE_H_ |
-#define V8_CRANKSHAFT_HYDROGEN_CANONICALIZE_H_ |
+#ifndef V8_PROFILER_SIMULATOR_HELPER_H_ |
alph
2016/06/28 22:09:01
weird diff. Could you please play with --similarit
lpy
2016/06/28 23:02:53
Done.
|
+#define V8_PROFILER_SIMULATOR_HELPER_H_ |
-#include "src/crankshaft/hydrogen.h" |
+#include "src/globals.h" |
namespace v8 { |
-namespace internal { |
+struct RegisterState; |
-class HCanonicalizePhase : public HPhase { |
- public: |
- explicit HCanonicalizePhase(HGraph* graph) |
- : HPhase("H_Canonicalize", graph) { } |
+namespace internal { |
- void Run(); |
+class Isolate; |
- private: |
- DISALLOW_COPY_AND_ASSIGN(HCanonicalizePhase); |
+#if defined(USE_SIMULATOR) |
+class SimulatorHelper { |
+ public: |
+ // Returns true if register values were successfully retrieved |
+ // from the simulator, otherwise returns false. |
+ static bool FillRegisters(Isolate* isolate, v8::RegisterState* state); |
}; |
- |
+#endif // USE_SIMULATOR |
} // namespace internal |
} // namespace v8 |
-#endif // V8_CRANKSHAFT_HYDROGEN_CANONICALIZE_H_ |
+#endif // V8_PROFILER_SIMULATOR_HELPER_H_ |