コード例 #1
0
ファイル: registerState_ppc.cpp プロジェクト: ardeujho/self
Location RegisterState::pickLocal() {
  // pick a local
  Location r = ::pickRegister(allocated, LocalMask);
  if (r == UnAllocated) 
    r = pickStackTemp();
  allocate(r);
  return r;
}
コード例 #2
0
ファイル: registerState.cpp プロジェクト: AaronNGray/self
Location RegisterState::pickPermanent() {
  // pick a permanent local
  RegisterString s = allocated;
  Location r = ::pickRegister(s, LocalMask);
  if (r == UnAllocated) {
    r = pickStackTemp();
  } 
  allocatePermanent(r);
  return r;
}
コード例 #3
0
ファイル: registerState_i386.cpp プロジェクト: AdamSpitz/self
Location RegisterState::pickLocal() {
  // do not currently use registers, just go to stack
  Location r = pickStackTemp();
  allocate(r);
  return r;
}