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

Issue 337503003: Fix a bug in ParallelMoveResolver::AllocateScratchRegister, where we end up allocating PC on ARM. (Closed)

Created:
6 years, 6 months ago by ngeoffray
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Fix a bug in ParallelMoveResolver::AllocateScratchRegister, where we end up allocating PC on ARM. 1) Iterate from first_free_register to last_free_register to ensure we're not using protected registers. 2) Break when finding an ok register. 2) fixes allocating PC on ARM by itself, but we could need 1) for another architecture. The reason this has not been exposed yet, is because we call this method for a memory <-> memory swap, which almost never happens on ARM. R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=37304

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -9 lines) Patch
M runtime/vm/flow_graph_compiler.h View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 4 chunks +13 lines, -8 lines 0 comments Download
A tests/language/memory_swap_test.dart View 1 chunk +70 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
ngeoffray
6 years, 6 months ago (2014-06-12 16:27:41 UTC) #1
Vyacheslav Egorov (Google)
LGTM nice catch!
6 years, 6 months ago (2014-06-12 16:35:27 UTC) #2
ngeoffray
6 years, 6 months ago (2014-06-13 08:02:29 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 manually as r37304 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698