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

Issue 13818012: Accurate function prototypes for native calls from ARM simulator. (Closed)

Created:
7 years, 8 months ago by Brad Chen
Modified:
7 years, 8 months ago
Reviewers:
ulan, danno, Jakob Kummerow
CC:
v8-dev
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Accurate function prototypes for native calls from ARM simulator. Native method invocation from the arm/simulator-arm.cc previously made non-portable assumptions about calling conventions. This was okay for 32-bit stack-based machines, where by-value structs are automatically materialized on the stack, and where both int and double parameters could be passed on the stack. However they are not okay for x86-64, which has an elaborate scheme for passing parameters in registers. This CL replaces the previous non-portable code paths with portable code, using call-sites that accurately match the prototype of the callee. BUG=2614 Committed: https://code.google.com/p/v8/source/detail?r=14230

Patch Set 1 #

Patch Set 2 : Adding builtins-decls.h #

Total comments: 6

Patch Set 3 : Improving a few parameter names #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -100 lines) Patch
M src/arguments.h View 1 2 1 chunk +12 lines, -9 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/simulator-arm.h View 1 chunk +2 lines, -4 lines 0 comments Download
M src/arm/simulator-arm.cc View 5 chunks +69 lines, -65 lines 0 comments Download
M src/atomicops_internals_x86_gcc.h View 1 chunk +1 line, -1 line 0 comments Download
M src/builtins.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/builtins.cc View 1 2 1 chunk +21 lines, -13 lines 0 comments Download
A + src/builtins-decls.h View 1 2 chunks +7 lines, -6 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Brad Chen
PTAL
7 years, 8 months ago (2013-04-09 16:11:14 UTC) #1
ulan
The change looks good overall. https://codereview.chromium.org/13818012/diff/3001/src/arguments.h File src/arguments.h (right): https://codereview.chromium.org/13818012/diff/3001/src/arguments.h#newcode122 src/arguments.h:122: Type Name(int argslength, Object** ...
7 years, 8 months ago (2013-04-10 14:19:20 UTC) #2
Brad Chen
Thanks for the comments. I'll upload a minor update after a little bit of local ...
7 years, 8 months ago (2013-04-10 16:53:28 UTC) #3
Brad Chen
NOTE: I am seeing a "TIMEOUT" test failure for arm.check cctest/testapi/Threading1. I see this with ...
7 years, 8 months ago (2013-04-10 18:36:53 UTC) #4
ulan
LGTM. I didn't get any presubmit errors. I will land after Jakob's review. On my ...
7 years, 8 months ago (2013-04-11 12:02:34 UTC) #5
Jakob Kummerow
lgtm
7 years, 8 months ago (2013-04-11 12:31:26 UTC) #6
ulan
7 years, 8 months ago (2013-04-11 12:40:53 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 manually as r14230 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698