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

Issue 10695205: Fix transcendental cache on ARM in optimized code. (Closed)

Created:
8 years, 5 months ago by Yang
Modified:
8 years, 5 months ago
Reviewers:
Jakob Kummerow
CC:
v8-dev
Visibility:
Public.

Description

Fix transcendental cache on ARM in optimized code. R=jkummerow@chromium.org BUG=v8:2234 TEST=regress-2234.js Committed: https://code.google.com/p/v8/source/detail?r=12086

Patch Set 1 #

Total comments: 3

Patch Set 2 : comments addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -23 lines) Patch
M src/arm/code-stubs-arm.cc View 1 1 chunk +6 lines, -6 lines 0 comments Download
A + test/mjsunit/regress/regress-2234.js View 1 1 chunk +9 lines, -17 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Yang
8 years, 5 months ago (2012-07-13 15:53:43 UTC) #1
Jakob Kummerow
8 years, 5 months ago (2012-07-16 09:24:09 UTC) #2
LGTM with comments.

https://chromiumcodereview.appspot.com/10695205/diff/1/src/arm/code-stubs-arm.cc
File src/arm/code-stubs-arm.cc (right):

https://chromiumcodereview.appspot.com/10695205/diff/1/src/arm/code-stubs-arm...
src/arm/code-stubs-arm.cc:3416: __ stm(db_w, sp, cache_entry.bit() | r2.bit() |
r3.bit());
Let's use "__ Push(cache_entry, r2, r3)" instead.

https://chromiumcodereview.appspot.com/10695205/diff/1/src/arm/code-stubs-arm...
src/arm/code-stubs-arm.cc:3422: __ ldm(ia_w, sp, cache_entry.bit() | r2.bit() |
r3.bit());
...and __ Pop(...) here.

https://chromiumcodereview.appspot.com/10695205/diff/1/test/mjsunit/regress/r...
File test/mjsunit/regress/regress-2234.js (right):

https://chromiumcodereview.appspot.com/10695205/diff/1/test/mjsunit/regress/r...
test/mjsunit/regress/regress-2234.js:37: test(i);
I'd add:
if (i == 3) %OptimizeFunctionOnNextCall(test);

and don't forget // Flags: --allow-natives-syntax

Powered by Google App Engine
This is Rietveld 408576698