Lines Matching refs:simulator
136 CodeSimulatorContainer simulator(target_isa);
137 return CanExecuteOnHardware(target_isa) || simulator.CanSimulate();
141 static Expected SimulatorExecute(CodeSimulator* simulator, Expected (*f)());
144 bool SimulatorExecute<bool>(CodeSimulator* simulator, bool (*f)()) {
145 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
146 return simulator->GetCReturnBool();
150 int32_t SimulatorExecute<int32_t>(CodeSimulator* simulator, int32_t (*f)()) {
151 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
152 return simulator->GetCReturnInt32();
156 int64_t SimulatorExecute<int64_t>(CodeSimulator* simulator, int64_t (*f)()) {
157 simulator->RunFrom(reinterpret_cast<intptr_t>(f));
158 return simulator->GetCReturnInt64();
168 // Verify on simulator.
169 CodeSimulatorContainer simulator(target_isa);
170 if (simulator.CanSimulate()) {
171 Expected result = SimulatorExecute<Expected>(simulator.Get(), f);
272 // Add all ISAs that are executable on hardware or on simulator.