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

Issue 5055004: API call code refactoring (ia32). (Closed)

Created:
10 years, 1 month ago by SeRya
Modified:
9 years, 7 months ago
Reviewers:
antonm
CC:
v8-dev
Visibility:
Public.

Description

API call code refactoring (ia32). Committed: http://code.google.com/p/v8/source/detail?r=5831

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -33 lines) Patch
M src/ia32/macro-assembler-ia32.h View 1 3 chunks +11 lines, -3 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 6 chunks +32 lines, -23 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 7 chunks +15 lines, -7 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
SeRya
10 years, 1 month ago (2010-11-16 13:49:13 UTC) #1
antonm
LGTM http://codereview.chromium.org/5055004/diff/1/src/ia32/macro-assembler-ia32.cc File src/ia32/macro-assembler-ia32.cc (right): http://codereview.chromium.org/5055004/diff/1/src/ia32/macro-assembler-ia32.cc#newcode429 src/ia32/macro-assembler-ia32.cc:429: // Restore current context from top and clear ...
10 years, 1 month ago (2010-11-16 14:32:26 UTC) #2
SeRya
10 years, 1 month ago (2010-11-16 14:53:28 UTC) #3
http://codereview.chromium.org/5055004/diff/1/src/ia32/macro-assembler-ia32.cc
File src/ia32/macro-assembler-ia32.cc (right):

http://codereview.chromium.org/5055004/diff/1/src/ia32/macro-assembler-ia32.c...
src/ia32/macro-assembler-ia32.cc:429: // Restore current context from top and
clear it in debug mode.
On 2010/11/16 14:32:26, antonm wrote:
> I'd suggest (but not insisting) to factor out common exit frame management. 
> Should be simple if push(ecx) is moved out of common code.

Done.

http://codereview.chromium.org/5055004/diff/1/src/ia32/macro-assembler-ia32.h
File src/ia32/macro-assembler-ia32.h (right):

http://codereview.chromium.org/5055004/diff/1/src/ia32/macro-assembler-ia32.h...
src/ia32/macro-assembler-ia32.h:511: // Returning removes stack_space *
kPointerSize (GCed).
On 2010/11/16 14:32:26, antonm wrote:
> I'd use 'on return' instead of 'returning'

Done.

http://codereview.chromium.org/5055004/diff/1/src/ia32/stub-cache-ia32.cc
File src/ia32/stub-cache-ia32.cc (right):

http://codereview.chromium.org/5055004/diff/1/src/ia32/stub-cache-ia32.cc#new...
src/ia32/stub-cache-ia32.cc:502: __ PrepareCallApiFunction(kApiArgc +
kApiStackSpace, ebx);
On 2010/11/16 14:32:26, antonm wrote:
> nice that the bug was spotted.  but I am slightly uneasy that our tests didn't
> catch it.  can you add a test that demonstrates the presence of the bug?

I don't see any bug. This line changed not to fix a bug but because signature of
PrepareCallApiFunction had changed. It doesn't receive number of JS references
anymore since now that references are removed in TryCallApiFunctionAndReturn.

http://codereview.chromium.org/5055004/diff/1/src/ia32/stub-cache-ia32.cc#new...
src/ia32/stub-cache-ia32.cc:2173: // before call any runtime function.
On 2010/11/16 14:32:26, antonm wrote:
> before call <to> any runtime

Done.

Powered by Google App Engine
This is Rietveld 408576698