comparison graal/GraalCompiler/src/com/sun/c1x/target/amd64/AMD64LIRAssembler.java @ 2833:1cd59ca9ac86

Removed Throw HIR instruction. Removed special handling for exceptions in register allocator.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Tue, 31 May 2011 13:30:23 +0200
parents ac4b086cbd72
children
comparison
equal deleted inserted replaced
2832:775c31be565c 2833:1cd59ca9ac86
1395 moveOp(address, reg.asValue(address.kind), address.kind, null, false); 1395 moveOp(address, reg.asValue(address.kind), address.kind, null, false);
1396 } 1396 }
1397 indirectCall(reg, null, null); 1397 indirectCall(reg, null, null);
1398 } 1398 }
1399 1399
1400 @Override
1401 protected void emitThrow(CiValue exceptionPC, CiValue exceptionOop, LIRDebugInfo info) {
1402 // exception object is not added to oop map by LinearScan
1403 // (LinearScan assumes that no oops are in fixed registers)
1404 // info.addRegisterOop(exceptionOop);
1405 directCall(CiRuntimeCall.HandleException, info);
1406 // enough room for two byte trap
1407 shouldNotReachHere();
1408 }
1409
1410 private void emitXIRShiftOp(LIROpcode code, CiValue left, CiValue count, CiValue dest) { 1400 private void emitXIRShiftOp(LIROpcode code, CiValue left, CiValue count, CiValue dest) {
1411 if (count.isConstant()) { 1401 if (count.isConstant()) {
1412 emitShiftOp(code, left, ((CiConstant) count).asInt(), dest); 1402 emitShiftOp(code, left, ((CiConstant) count).asInt(), dest);
1413 } else { 1403 } else {
1414 emitShiftOp(code, left, count, dest, IllegalValue); 1404 emitShiftOp(code, left, count, dest, IllegalValue);