Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
X87: [RegisterConfiguration] Streamline access to arch defaults, simp…
Browse files Browse the repository at this point in the history
…lify Registers.

  port 257336d (r37297)

  original commit message:
  Replaces ArchDefault method with Crankshaft and Turbofan getters.
  Eliminates IsAllocated method on Register, FloatRegister, DoubleRegister.
  Eliminates ToString method too.
  Changes call sites to access appropriate arch default RegisterConfiguration.

BUG=

Review-Url: https://codereview.chromium.org/2114553002
Cr-Commit-Position: refs/heads/master@{#37413}
  • Loading branch information
lizhengxing authored and Commit bot committed Jun 30, 2016
1 parent 10714b6 commit 21550e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/x87/code-stubs-x87.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ class RecordWriteStub: public PlatformCodeStub {
Register r2,
Register r3) {
for (int i = 0; i < Register::kNumRegisters; i++) {
Register candidate = Register::from_code(i);
if (candidate.IsAllocatable()) {
if (RegisterConfiguration::Crankshaft()->IsAllocatableGeneralCode(i)) {
Register candidate = Register::from_code(i);
if (candidate.is(ecx)) continue;
if (candidate.is(r1)) continue;
if (candidate.is(r2)) continue;
Expand Down

0 comments on commit 21550e0

Please sign in to comment.