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

Issue 335133002: ARM: Clean up FlushICache. (Closed)

Created:
6 years, 6 months ago by jbramley
Modified:
6 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

ARM: Clean up FlushICache. In theory, the Thumb version of FlushICache doesn't have to be any different from the ARM version: There is no need to switch to ARM mode for the svc, and r7 can be used just like any other register. In practice, GCC uses r7 as a frame pointer in Thumb code, and it refuses to allow it be used in inline assembly. To avoid complicated checks to determine whether or not it is possible to use it directly, the FlushICache function explicitly preserves r7. R=ulan@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=21949

Patch Set 1 #

Total comments: 2

Patch Set 2 : Avoid __attribute__((naked)). #

Total comments: 1

Patch Set 3 : Remove "cc". #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -41 lines) Patch
M src/arm/cpu-arm.cc View 1 2 2 chunks +23 lines, -41 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jbramley
6 years, 6 months ago (2014-06-16 15:32:18 UTC) #1
ulan
https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc File src/arm/cpu-arm.cc (right): https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc#newcode46 src/arm/cpu-arm.cc:46: void __attribute__((naked)) CPU::FlushICache(void* start, size_t size) { Do you ...
6 years, 6 months ago (2014-06-18 14:08:31 UTC) #2
jbramley
https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc File src/arm/cpu-arm.cc (right): https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc#newcode46 src/arm/cpu-arm.cc:46: void __attribute__((naked)) CPU::FlushICache(void* start, size_t size) { On 2014/06/18 ...
6 years, 6 months ago (2014-06-18 14:19:37 UTC) #3
jbramley
On 2014/06/18 14:19:37, jbramley wrote: > https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc > File src/arm/cpu-arm.cc (right): > > https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc#newcode46 > ...
6 years, 6 months ago (2014-06-18 14:37:42 UTC) #4
Benedikt Meurer
On 2014/06/18 14:37:42, jbramley wrote: > On 2014/06/18 14:19:37, jbramley wrote: > > https://codereview.chromium.org/335133002/diff/1/src/arm/cpu-arm.cc > ...
6 years, 6 months ago (2014-06-18 16:52:30 UTC) #5
jbramley
https://codereview.chromium.org/335133002/diff/20001/src/arm/cpu-arm.cc File src/arm/cpu-arm.cc (right): https://codereview.chromium.org/335133002/diff/20001/src/arm/cpu-arm.cc#newcode61 src/arm/cpu-arm.cc:61: : "memory", "cc"); Sorry, "cc" shouldn't be in this ...
6 years, 6 months ago (2014-06-23 09:31:00 UTC) #6
jbramley
Ok, is this better? It takes one or two more instructions than before, but it ...
6 years, 6 months ago (2014-06-23 09:58:03 UTC) #7
ulan
lgtm
6 years, 6 months ago (2014-06-23 11:42:44 UTC) #8
jbramley
6 years, 6 months ago (2014-06-23 17:30:07 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r21949 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698