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

Issue 302002: Adding declaration of global variables and functions in new compiler.... (Closed)

Created:
11 years, 2 months ago by fschneider
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Adding declaration of global variables and functions in new compiler. Adding calls to global functions to the new compiler. Committed: http://code.google.com/p/v8/source/detail?r=3099

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 27

Patch Set 3 : '' #

Total comments: 46

Patch Set 4 : '' #

Total comments: 8

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+504 lines, -39 lines) Patch
M src/arm/codegen-arm.h View 4 2 chunks +3 lines, -1 line 0 comments Download
M src/arm/fast-codegen-arm.cc View 3 4 4 chunks +114 lines, -0 lines 0 comments Download
M src/codegen.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/codegen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler.cc View 1 2 3 7 chunks +60 lines, -10 lines 0 comments Download
M src/fast-codegen.h View 1 2 3 2 chunks +11 lines, -3 lines 0 comments Download
M src/fast-codegen.cc View 1 2 3 4 5 chunks +94 lines, -22 lines 0 comments Download
M src/ia32/codegen-ia32.h View 4 2 chunks +3 lines, -1 line 0 comments Download
M src/ia32/fast-codegen-ia32.cc View 1 2 3 4 4 chunks +107 lines, -0 lines 0 comments Download
M src/x64/codegen-x64.h View 4 2 chunks +3 lines, -1 line 0 comments Download
M src/x64/fast-codegen-x64.cc View 3 4 4 chunks +107 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
fschneider
11 years, 2 months ago (2009-10-19 14:10:45 UTC) #1
Kevin Millikin (Chromium)
A bunch of style comments in the first round. http://codereview.chromium.org/302002/diff/4001/4004 File src/compiler.cc (right): http://codereview.chromium.org/302002/diff/4001/4004#newcode461 Line ...
11 years, 2 months ago (2009-10-19 19:50:27 UTC) #2
fschneider
http://codereview.chromium.org/302002/diff/4001/4003 File src/ia32/fast-codegen-ia32.cc (right): http://codereview.chromium.org/302002/diff/4001/4003#newcode110 Line 110: void FastCodeGenerator::VisitBlock(Block* stmt) { Add comment here: Comment ...
11 years, 2 months ago (2009-10-20 12:17:31 UTC) #3
fschneider
I addressed the comments. Added x64 and arm code. http://codereview.chromium.org/302002/diff/4001/4004 File src/compiler.cc (right): http://codereview.chromium.org/302002/diff/4001/4004#newcode461 Line ...
11 years, 2 months ago (2009-10-20 13:44:50 UTC) #4
Kevin Millikin (Chromium)
Another round of comments. http://codereview.chromium.org/302002/diff/6001/6007 File src/arm/fast-codegen-arm.cc (right): http://codereview.chromium.org/302002/diff/6001/6007#newcode89 Line 89: Comment cmnt(masm_, "[ declarations"); ...
11 years, 2 months ago (2009-10-20 14:49:12 UTC) #5
fschneider
Thanks. I uploaded a new patch set. http://codereview.chromium.org/302002/diff/6001/6007 File src/arm/fast-codegen-arm.cc (right): http://codereview.chromium.org/302002/diff/6001/6007#newcode89 Line 89: Comment ...
11 years, 2 months ago (2009-10-20 17:32:59 UTC) #6
Kevin Millikin (Chromium)
Style comments, but LGTM. http://codereview.chromium.org/302002/diff/8002/9011 File src/arm/codegen-arm.h (right): http://codereview.chromium.org/302002/diff/8002/9011#newcode202 Line 202: static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name); ...
11 years, 2 months ago (2009-10-21 07:39:28 UTC) #7
fschneider
11 years, 2 months ago (2009-10-21 09:08:30 UTC) #8
Uploaded new patch set.

http://codereview.chromium.org/302002/diff/8002/9011
File src/arm/codegen-arm.h (right):

http://codereview.chromium.org/302002/diff/8002/9011#newcode202
Line 202: static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name);
On 2009/10/21 07:39:28, Kevin Millikin wrote:
> You could just make CodeGenSelector a friend of CodeGenerator and not have to
> expose this in the public interface.
> 
> It's a little weird for a public member function to export a pointer to a
> private one.

Done.

http://codereview.chromium.org/302002/diff/8002/9006
File src/arm/fast-codegen-arm.cc (right):

http://codereview.chromium.org/302002/diff/8002/9006#newcode89
Line 89: Comment cmnt(masm_, "[ Declarations");
On 2009/10/21 07:39:28, Kevin Millikin wrote:
> We have a mix in our codebase of opening brace on a line by itself to start a
> block and first line of code on the same line as opening brace, so either is
> acceptable.
> 
> However, we probably shouldn't mix them in the same function and code should
be
> formatted to match the code around it, so change this one or the others.  (I
> prefer the other style that saves on vertical space.  Economizing on vertical
> space where appropriate is encouraged by the coding guide.)

Done. 

I also changed the order in which we generate the stack check, call
VisitDeclarations and call VisitStatements to be consistent across all
platforms.

http://codereview.chromium.org/302002/diff/8002/9004
File src/fast-codegen.cc (right):

http://codereview.chromium.org/302002/diff/8002/9004#newcode126
Line 126: static Handle<Code> ComputeLazyCompile(int argc) {
On 2009/10/21 07:39:28, Kevin Millikin wrote:
> Can you get rid of this one?

Done.

http://codereview.chromium.org/302002/diff/8002/9004#newcode138
Line 138: Handle<Code> code = ComputeLazyCompile(fun->num_parameters());
On 2009/10/21 07:39:28, Kevin Millikin wrote:
> Can you call CodeGenerator::ComputeLazyCompile here?

Done.

Powered by Google App Engine
This is Rietveld 408576698