Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_CRANKSHAFT_HYDROGEN_CANONICALIZE_H_ | 5 #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.
| |
| 6 #define V8_CRANKSHAFT_HYDROGEN_CANONICALIZE_H_ | 6 #define V8_PROFILER_SIMULATOR_HELPER_H_ |
| 7 | 7 |
| 8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/globals.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| 11 | |
| 12 struct RegisterState; | |
| 13 | |
| 11 namespace internal { | 14 namespace internal { |
| 12 | 15 |
| 16 class Isolate; | |
| 13 | 17 |
| 14 class HCanonicalizePhase : public HPhase { | 18 #if defined(USE_SIMULATOR) |
| 19 class SimulatorHelper { | |
| 15 public: | 20 public: |
| 16 explicit HCanonicalizePhase(HGraph* graph) | 21 // Returns true if register values were successfully retrieved |
| 17 : HPhase("H_Canonicalize", graph) { } | 22 // from the simulator, otherwise returns false. |
| 18 | 23 static bool FillRegisters(Isolate* isolate, v8::RegisterState* state); |
| 19 void Run(); | |
| 20 | |
| 21 private: | |
| 22 DISALLOW_COPY_AND_ASSIGN(HCanonicalizePhase); | |
| 23 }; | 24 }; |
| 24 | 25 #endif // USE_SIMULATOR |
| 25 | 26 |
| 26 } // namespace internal | 27 } // namespace internal |
| 27 } // namespace v8 | 28 } // namespace v8 |
| 28 | 29 |
| 29 #endif // V8_CRANKSHAFT_HYDROGEN_CANONICALIZE_H_ | 30 #endif // V8_PROFILER_SIMULATOR_HELPER_H_ |
| OLD | NEW |