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

Issue 3293002: Move inlined function declarations and support from codegen.* to runtime.*. (Closed)

Created:
10 years, 3 months ago by William Hesse
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Move inlined function declarations and support from codegen.* to runtime.*. Committed: http://code.google.com/p/v8/source/detail?r=5451

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 18

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 7

Patch Set 11 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -193 lines) Patch
M src/arm/codegen-arm.h View 3 4 5 6 7 8 9 4 chunks +8 lines, -12 lines 0 comments Download
M src/codegen.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -43 lines 0 comments Download
M src/codegen.cc View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -33 lines 0 comments Download
M src/full-codegen.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +29 lines, -11 lines 0 comments Download
M src/handles.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M src/heap.h View 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M src/heap.cc View 2 3 4 5 6 7 8 9 2 chunks +8 lines, -1 line 0 comments Download
M src/ia32/codegen-ia32.h View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -12 lines 0 comments Download
M src/parser.cc View 2 3 4 5 6 7 8 9 1 chunk +23 lines, -38 lines 0 comments Download
M src/runtime.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +85 lines, -13 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 8 9 3 chunks +39 lines, -16 lines 0 comments Download
M src/x64/codegen-x64.h View 3 4 5 6 7 8 9 3 chunks +9 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
William Hesse
Still needs to be ported to all platforms. Just looking for general comments at this ...
10 years, 3 months ago (2010-09-10 13:47:31 UTC) #1
William Hesse
Still needs to be ported to all platforms. Just looking for general comments at this ...
10 years, 3 months ago (2010-09-10 13:47:34 UTC) #2
William Hesse
A slight strangeness: The distinction between INLINE and INLINE_RUNTIME is not used anywhere. We could ...
10 years, 3 months ago (2010-09-13 14:36:15 UTC) #3
Kasper Lund
There are definitely a lot of good stuff in this change, but I would probably ...
10 years, 3 months ago (2010-09-14 06:07:14 UTC) #4
William Hesse
All comments addressed. Change list is much smaller and cleaner now. Initialization code does not ...
10 years, 3 months ago (2010-09-14 13:19:12 UTC) #5
Kasper Lund
LGTM with a few comments: http://codereview.chromium.org/3293002/diff/108002/109005 File src/full-codegen.h (right): http://codereview.chromium.org/3293002/diff/108002/109005#newcode250 src/full-codegen.h:250: static InlineFunctionGenerator kInlineFunctionGenerators[]; Strictly ...
10 years, 3 months ago (2010-09-14 13:45:36 UTC) #6
William Hesse
10 years, 3 months ago (2010-09-20 10:49:28 UTC) #7
The definition of the static const int member is removed from the implementation
file.

http://codereview.chromium.org/3293002/diff/108002/109004
File src/full-codegen.cc (right):

http://codereview.chromium.org/3293002/diff/108002/109004#newcode513
src/full-codegen.cc:513: FullCodeGenerator::InlineFunctionGenerator
Added const qualifier.

http://codereview.chromium.org/3293002/diff/108002/109005
File src/full-codegen.h (right):

http://codereview.chromium.org/3293002/diff/108002/109005#newcode250
src/full-codegen.h:250: static InlineFunctionGenerator
kInlineFunctionGenerators[];
On 2010/09/14 13:45:36, Kasper Lund wrote:
> Strictly speaking the data members should be after all methods (cross
platform).

This is a static const array, so it should be at the top of the section, after
typedefs.  Added "const" to the declaration.

http://codereview.chromium.org/3293002/diff/108002/109011
File src/runtime.cc (right):

http://codereview.chromium.org/3293002/diff/108002/109011#newcode10109
src/runtime.cc:10109: const int Runtime::kNotFound;
On 2010/09/14 13:45:36, Kasper Lund wrote:
> I'm not sure you really need this. We don't usually have them from static
consts
> defined in the header.

The C++ standard seems to say this is needed unless every use of the constant is
in a place _requiring_ a compile-time constant.

http://codereview.chromium.org/3293002/diff/108002/109012
File src/runtime.h (right):

http://codereview.chromium.org/3293002/diff/108002/109012#newcode476
src/runtime.h:476: // The number of arguments expected. nargs < 0 if the
function takes
On 2010/09/14 13:45:36, Kasper Lund wrote:
> nargs < 0 => Negative?

Done.

Powered by Google App Engine
This is Rietveld 408576698