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

Issue 7633014: Do not use deprecated ARM instructions in DirectCEntryStub::GenerateCall. (Closed)

Created:
9 years, 4 months ago by Sven Panne
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Do not use deprecated ARM instructions in DirectCEntryStub::GenerateCall. Non-ancient versions of the ARM-ARM explicitly deprecate most uses of the PC within instructions and older ARM implementations have a non-predictable offset (8 or 12) for some of these deprecated uses. Avoiding the deprecated instruction costs us one additional instruction in DirectCEntryStub::GenerateCall, but this should not cause any significant performance degradation. The deoptimizer still uses the PC in a stm instruction, but it is a bit unclear what to do about that, so simply a comment has been added to reconsider this in the future. Committed: http://code.google.com/p/v8/source/detail?r=8916

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -2 lines) Patch
M src/arm/code-stubs-arm.cc View 2 chunks +6 lines, -2 lines 2 comments Download
M src/arm/deoptimizer-arm.cc View 1 1 chunk +2 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Sven Panne
9 years, 4 months ago (2011-08-12 08:05:43 UTC) #1
danno
LGTM with an added TODO http://codereview.chromium.org/7633014/diff/1/src/arm/deoptimizer-arm.cc File src/arm/deoptimizer-arm.cc (right): http://codereview.chromium.org/7633014/diff/1/src/arm/deoptimizer-arm.cc#newcode597 src/arm/deoptimizer-arm.cc:597: // a bit differently. ...
9 years, 4 months ago (2011-08-12 08:43:10 UTC) #2
Sven Panne
On 2011/08/12 08:43:10, danno wrote: > LGTM with an added TODO > > http://codereview.chromium.org/7633014/diff/1/src/arm/deoptimizer-arm.cc > ...
9 years, 4 months ago (2011-08-12 08:44:47 UTC) #3
m.m.capewell
http://codereview.chromium.org/7633014/diff/5001/src/arm/code-stubs-arm.cc File src/arm/code-stubs-arm.cc (right): http://codereview.chromium.org/7633014/diff/5001/src/arm/code-stubs-arm.cc#newcode6323 src/arm/code-stubs-arm.cc:6323: __ add(ip, pc, Operand(4)); Replace 4 with kInstrSize, and ...
9 years, 4 months ago (2011-08-12 11:50:51 UTC) #4
Sven Panne
9 years, 4 months ago (2011-08-12 14:35:25 UTC) #5
I have made the stub a bit clearer, including an assertion, see
http://codereview.chromium.org/7640016/.

The deoptimizer is still unchanged, I hope that Søren can have a look at it. The
details of the deoptimizer are still a mircale to me... :-}

Powered by Google App Engine
This is Rietveld 408576698