Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: test/cctest/compiler/test-gap-resolver.cc

Issue 1403373016: Fix debug mode test failures on MIPS and PPC after f1aa5562. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | test/unittests/compiler/move-optimizer-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/gap-resolver.h" 5 #include "src/compiler/gap-resolver.h"
6 6
7 #include "src/base/utils/random-number-generator.h" 7 #include "src/base/utils/random-number-generator.h"
8 #include "test/cctest/cctest.h" 8 #include "test/cctest/cctest.h"
9 9
10 using namespace v8::internal; 10 using namespace v8::internal;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 index); 206 index);
207 case 1: 207 case 1:
208 return AllocatedOperand(LocationOperand::STACK_SLOT, RandomDoubleType(), 208 return AllocatedOperand(LocationOperand::STACK_SLOT, RandomDoubleType(),
209 index); 209 index);
210 case 2: 210 case 2:
211 return AllocatedOperand(LocationOperand::REGISTER, RandomType(), index); 211 return AllocatedOperand(LocationOperand::REGISTER, RandomType(), index);
212 case 3: 212 case 3:
213 return AllocatedOperand(LocationOperand::REGISTER, RandomDoubleType(), 213 return AllocatedOperand(LocationOperand::REGISTER, RandomDoubleType(),
214 index); 214 index);
215 case 4: 215 case 4:
216 return ExplicitOperand(LocationOperand::REGISTER, RandomType(), 1); 216 return ExplicitOperand(
217 LocationOperand::REGISTER, RandomType(),
218 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN)
219 ->GetAllocatableGeneralCode(1));
217 case 5: 220 case 5:
218 return ExplicitOperand(LocationOperand::STACK_SLOT, RandomType(), 221 return ExplicitOperand(
219 index); 222 LocationOperand::STACK_SLOT, RandomType(),
223 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN)
224 ->GetAllocatableGeneralCode(index));
220 case 6: 225 case 6:
221 return ConstantOperand(index); 226 return ConstantOperand(index);
222 } 227 }
223 UNREACHABLE(); 228 UNREACHABLE();
224 return InstructionOperand(); 229 return InstructionOperand();
225 } 230 }
226 231
227 private: 232 private:
228 v8::base::RandomNumberGenerator* rng_; 233 v8::base::RandomNumberGenerator* rng_;
229 }; 234 };
(...skipping 10 matching lines...) Expand all
240 mi1.AssembleParallelMove(pm); 245 mi1.AssembleParallelMove(pm);
241 246
242 MoveInterpreter mi2(pmc.main_zone()); 247 MoveInterpreter mi2(pmc.main_zone());
243 GapResolver resolver(&mi2); 248 GapResolver resolver(&mi2);
244 resolver.Resolve(pm); 249 resolver.Resolve(pm);
245 250
246 CHECK(mi1.state() == mi2.state()); 251 CHECK(mi1.state() == mi2.state());
247 } 252 }
248 } 253 }
249 } 254 }
OLDNEW
« no previous file with comments | « no previous file | test/unittests/compiler/move-optimizer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698