comparison graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64Backend.java @ 2677:0ea5f12e873a

use com.oracle.max.asm project for assembler
author Christian.Wimmer@Oracle.com
date Fri, 13 May 2011 17:09:20 -0700
parents 16b9a8b5ad39
children
comparison
equal deleted inserted replaced
2676:e0e89714e2f1 2677:0ea5f12e873a
1 /* 1 /*
2 * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
22 */ 22 */
23 package com.sun.c1x.target.amd64; 23 package com.sun.c1x.target.amd64;
24 24
25 import static com.sun.c1x.C1XCompilation.*; 25 import static com.sun.c1x.C1XCompilation.*;
26 26
27 import com.oracle.max.asm.*;
28 import com.oracle.max.asm.target.amd64.*;
27 import com.sun.c1x.*; 29 import com.sun.c1x.*;
28 import com.sun.c1x.asm.*;
29 import com.sun.c1x.gen.*; 30 import com.sun.c1x.gen.*;
30 import com.sun.c1x.globalstub.*; 31 import com.sun.c1x.globalstub.*;
31 import com.sun.c1x.lir.*; 32 import com.sun.c1x.lir.*;
32 import com.sun.c1x.target.*; 33 import com.sun.c1x.target.*;
33 import com.sun.cri.ri.*; 34 import com.sun.cri.ri.*;
67 public FrameMap newFrameMap(RiMethod method, int numberOfLocks) { 68 public FrameMap newFrameMap(RiMethod method, int numberOfLocks) {
68 return new FrameMap(compilation(), method, numberOfLocks); 69 return new FrameMap(compilation(), method, numberOfLocks);
69 } 70 }
70 @Override 71 @Override
71 public AbstractAssembler newAssembler(RiRegisterConfig registerConfig) { 72 public AbstractAssembler newAssembler(RiRegisterConfig registerConfig) {
72 return new AMD64MacroAssembler.WithCompiler(compiler, registerConfig); 73 return new AMD64MacroAssembler(compiler.target, registerConfig);
73 } 74 }
74 75
75 @Override 76 @Override
76 public CiXirAssembler newXirAssembler() { 77 public CiXirAssembler newXirAssembler() {
77 return new AMD64XirAssembler(); 78 return new AMD64XirAssembler();