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

Unified Diff: src/profiler/simulator-helper.h

Issue 2105943002: Expose TickSample and its APIs in v8-profiler.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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
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_

Powered by Google App Engine
This is Rietveld 408576698