| Index: src/hydrogen-representation-changes.h
|
| diff --git a/src/a64/debugger-a64.h b/src/hydrogen-representation-changes.h
|
| similarity index 72%
|
| copy from src/a64/debugger-a64.h
|
| copy to src/hydrogen-representation-changes.h
|
| index 50480cc268a49f53fafc1650e79d73de573524ed..77e899b60b3169acc666b049b55f79364adcbf36 100644
|
| --- a/src/a64/debugger-a64.h
|
| +++ b/src/hydrogen-representation-changes.h
|
| @@ -25,32 +25,31 @@
|
| // (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_REPRESENTATION_CHANGES_H_
|
| +#define V8_HYDROGEN_REPRESENTATION_CHANGES_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 HRepresentationChangesPhase : public HPhase {
|
| public:
|
| - Debugger(Decoder* decoder, FILE* stream = stdout)
|
| - : Simulator(decoder, NULL, stream) {}
|
| + explicit HRepresentationChangesPhase(HGraph* graph)
|
| + : HPhase("H_Representation changes", graph) { }
|
| +
|
| + void Run();
|
|
|
| - // Functions overloading.
|
| - void VisitException(Instruction* instr);
|
| + private:
|
| + void InsertRepresentationChangeForUse(HValue* value,
|
| + HValue* use_value,
|
| + int use_index,
|
| + Representation to);
|
| + void InsertRepresentationChangesForValue(HValue* value);
|
| };
|
|
|
|
|
| } } // namespace v8::internal
|
|
|
| -#endif // USE_SIMULATOR
|
| -
|
| -#endif // V8_A64_DEBUGGER_A64_H_
|
| +#endif // V8_HYDROGEN_REPRESENTATION_CHANGES_H_
|
|
|