decoder.cc (12334:e0ab29a34764) | decoder.cc (12621:982f22db6230) |
---|---|
1/* 2 * Copyright (c) 2011 Google 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 667 unchanged lines hidden (view full) --- 676} 677 678Decoder::InstBytes Decoder::dummy; 679Decoder::InstCacheMap Decoder::instCacheMap; 680 681StaticInstPtr 682Decoder::decode(ExtMachInst mach_inst, Addr addr) 683{ | 1/* 2 * Copyright (c) 2011 Google 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 667 unchanged lines hidden (view full) --- 676} 677 678Decoder::InstBytes Decoder::dummy; 679Decoder::InstCacheMap Decoder::instCacheMap; 680 681StaticInstPtr 682Decoder::decode(ExtMachInst mach_inst, Addr addr) 683{ |
684 DecodeCache::InstMap::iterator iter = instMap->find(mach_inst); | 684 auto iter = instMap->find(mach_inst); |
685 if (iter != instMap->end()) 686 return iter->second; 687 688 StaticInstPtr si = decodeInst(mach_inst); 689 (*instMap)[mach_inst] = si; 690 return si; 691} 692 --- 45 unchanged lines hidden --- | 685 if (iter != instMap->end()) 686 return iter->second; 687 688 StaticInstPtr si = decodeInst(mach_inst); 689 (*instMap)[mach_inst] = si; 690 return si; 691} 692 --- 45 unchanged lines hidden --- |