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

Issue 543207: Removing redundant stub for runtime native calls. (Closed)

Created:
10 years, 11 months ago by SeRya
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Removing redundant stub for runtime native calls. Committed: http://code.google.com/p/v8/source/detail?r=3745

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 12

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -104 lines) Patch
M src/arm/codegen-arm.cc View 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/debug-arm.cc View 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/arm/macro-assembler-arm.cc View 3 4 5 6 7 8 1 chunk +7 lines, -3 lines 0 comments Download
M src/code-stubs.h View 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M src/codegen.h View 3 4 5 6 7 8 2 chunks +7 lines, -42 lines 0 comments Download
M src/codegen.cc View 3 4 5 6 7 8 3 chunks +6 lines, -13 lines 0 comments Download
M src/debug.h View 7 8 1 chunk +0 lines, -1 line 0 comments Download
M src/debug.cc View 3 4 5 6 7 8 2 chunks +1 line, -6 lines 0 comments Download
M src/disassembler.cc View 3 4 5 6 7 8 1 chunk +1 line, -7 lines 0 comments Download
M src/full-codegen.cc View 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M src/heap.cc View 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M src/ia32/debug-ia32.cc View 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.h View 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -8 lines 0 comments Download
M src/runtime.h View 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M src/runtime.cc View 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M src/x64/codegen-x64.cc View 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M src/x64/debug-x64.cc View 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M src/x64/macro-assembler-x64.cc View 3 4 5 6 7 8 1 chunk +8 lines, -4 lines 0 comments Download
M test/cctest/test-debug.cc View 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
SeRya
10 years, 11 months ago (2010-01-26 15:45:06 UTC) #1
Mads Ager (chromium)
I believe you are right that the RuntimeStub is now obsolete. Please get rid of ...
10 years, 11 months ago (2010-01-27 08:56:13 UTC) #2
SeRya
RuntimeStub removed. It used to be used by the debugger to identify the 'debugger' statement ...
10 years, 11 months ago (2010-01-28 19:55:56 UTC) #3
Mads Ager (chromium)
Søren, could you double check the debugger part of this change? If the debugger part ...
10 years, 10 months ago (2010-01-29 09:21:34 UTC) #4
Søren Thygesen Gjesse
LGTM The debugger part looks OK. http://codereview.chromium.org/543207/diff/9007/8015 File src/codegen.cc (right): http://codereview.chromium.org/543207/diff/9007/8015#newcode498 src/codegen.cc:498: masm->TailCallRuntime(ExternalReference(f), I think ...
10 years, 10 months ago (2010-01-29 10:02:12 UTC) #5
SeRya
10 years, 10 months ago (2010-01-29 11:46:57 UTC) #6
http://codereview.chromium.org/543207/diff/9007/8015
File src/codegen.cc (right):

http://codereview.chromium.org/543207/diff/9007/8015#newcode498
src/codegen.cc:498: masm->TailCallRuntime(ExternalReference(f),
On 2010/01/29 10:02:12, Søren Gjesse wrote:
> I think these parameters can fit on one line.

Done.

http://codereview.chromium.org/543207/diff/9007/8012
File src/codegen.h (right):

http://codereview.chromium.org/543207/diff/9007/8012#newcode388
src/codegen.h:388: // Markd the debugger statemet to be recognized bu debugger
(by the MajorKey)
On 2010/01/29 10:02:12, Søren Gjesse wrote:
> Markd -> mark

Done.

http://codereview.chromium.org/543207/diff/9007/8012#newcode389
src/codegen.h:389: class CEntryDebugBreakStub : public CodeStub {
On 2010/01/29 10:02:12, Søren Gjesse wrote:
> This is not in itself a C-entry stub. Please rename it to DebugBreakStub and
its
> major key to DebugBreak.
> 
> As it is only used for the debugger statement calling it DebuggerStatement
would
> be more precise and will not cause confusion with other ways to enter the
> debugger.
> 
> Maybe introducing new relocation info type and just using a normal runtime
call
> could be considered.

Done.

http://codereview.chromium.org/543207/diff/9007/8012#newcode397
src/codegen.h:397: int MinorKey() { return 1; }
On 2010/01/29 10:02:12, Søren Gjesse wrote:
> Use a minor key of 0 as there is only one instance of this stub.

Done.

http://codereview.chromium.org/543207/diff/9007/8016
File src/debug.cc (right):

http://codereview.chromium.org/543207/diff/9007/8016#newcode80
src/debug.cc:80: debug_break_stub_ = CEntryDebugBreakStub().GetCode();
On 2010/01/29 10:02:12, Søren Gjesse wrote:
> As the check is now on the major key the member debug_break_stub_ should not
be
> needed any more.

Done.

http://codereview.chromium.org/543207/diff/9007/8019
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/543207/diff/9007/8019#newcode6983
src/x64/codegen-x64.cc:6983: return (result_size_ < 2) ? 0 : result_size_ * 2;
On 2010/01/29 10:02:12, Søren Gjesse wrote:
> Does this special assignment of minor key on 64-bit Windows make sense any
more?

Probably so (since generated code for WIN64 depends on result_size_). But this
line could be simplified since values could not conflict with a descendant class
anymore.

Powered by Google App Engine
This is Rietveld 408576698