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

Issue 8391045: Handlify the remaining CallStubCompiler functions. (Closed)

Created:
9 years, 1 month ago by Kevin Millikin (Chromium)
Modified:
9 years, 1 month ago
CC:
v8-dev
Visibility:
Public.

Description

Handlify the remaining CallStubCompiler functions. Also, handlify functions for loading with interceptors and callbacks. Remove some unneeded code. Rename Foreign::address() because it confusingly shadows HeapObject::address() which does something quite different. R=vegorov@chromium.org,ulan@chromium.org BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=9834

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+1280 lines, -3225 lines) Patch
M src/api.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/api.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M src/arm/code-stubs-arm.h View 1 chunk +0 lines, -11 lines 0 comments Download
M src/arm/code-stubs-arm.cc View 4 chunks +6 lines, -81 lines 0 comments Download
M src/arm/macro-assembler-arm.h View 4 chunks +6 lines, -26 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 7 chunks +8 lines, -59 lines 0 comments Download
M src/arm/stub-cache-arm.cc View 71 chunks +352 lines, -753 lines 6 comments Download
M src/debug.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.cc View 3 chunks +7 lines, -5 lines 0 comments Download
M src/heap.cc View 1 chunk +4 lines, -6 lines 0 comments Download
M src/hydrogen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/code-stubs-ia32.h View 1 chunk +0 lines, -10 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 4 chunks +6 lines, -66 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 5 chunks +6 lines, -42 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 12 chunks +8 lines, -88 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 78 chunks +360 lines, -714 lines 0 comments Download
M src/messages.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects.h View 2 chunks +7 lines, -5 lines 0 comments Download
M src/objects.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects-inl.h View 3 chunks +7 lines, -7 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/stub-cache.h View 14 chunks +64 lines, -144 lines 0 comments Download
M src/stub-cache.cc View 15 chunks +57 lines, -255 lines 0 comments Download
M src/x64/code-stubs-x64.h View 1 chunk +0 lines, -10 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 4 chunks +6 lines, -67 lines 0 comments Download
M src/x64/macro-assembler-x64.h View 4 chunks +10 lines, -42 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 12 chunks +6 lines, -96 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 70 chunks +348 lines, -728 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Chromium)
This change is so big because these functions all shared helpers and utilities.
9 years, 1 month ago (2011-10-26 15:51:52 UTC) #1
ulan
LGTM. http://codereview.chromium.org/8391045/diff/1/src/arm/stub-cache-arm.cc File src/arm/stub-cache-arm.cc (left): http://codereview.chromium.org/8391045/diff/1/src/arm/stub-cache-arm.cc#oldcode2686 src/arm/stub-cache-arm.cc:2686: UNREACHABLE(); Wouldn't it be helpful in future if ...
9 years, 1 month ago (2011-10-27 10:10:26 UTC) #2
Kevin Millikin (Chromium)
9 years, 1 month ago (2011-10-27 10:53:43 UTC) #3
http://codereview.chromium.org/8391045/diff/1/src/arm/stub-cache-arm.cc
File src/arm/stub-cache-arm.cc (left):

http://codereview.chromium.org/8391045/diff/1/src/arm/stub-cache-arm.cc#oldco...
src/arm/stub-cache-arm.cc:2686: UNREACHABLE();
On 2011/10/27 10:10:26, ulan wrote:
> Wouldn't it be helpful in future if CheckType is extended?

Actually the opposite.

default: UNREACHABLE() can hide bugs, because it relies on test coverage in
debug builds to hit it.

No default clause will be a compilation error if CheckType is extended,
conveniently identifying this site that the programmer has to inspect.

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

http://codereview.chromium.org/8391045/diff/1/src/arm/stub-cache-arm.cc#newco...
src/arm/stub-cache-arm.cc:1156: // Emitting a stub call may try to allocate (if
the code is not
On 2011/10/27 10:10:26, ulan wrote:
> Old comment.

Thanks.

http://codereview.chromium.org/8391045/diff/1/src/arm/stub-cache-arm.cc#newco...
src/arm/stub-cache-arm.cc:1196: compile_followup_inline =
On 2011/10/27 10:10:26, ulan wrote:
> Nitpick: the old code does (compile_followup_inline |= ...).

There's no reason to preserve the implementation.

Powered by Google App Engine
This is Rietveld 408576698