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

Issue 126198: X64 Implementation: Make codegen load literals and assign to local variables. (Closed)

Created:
11 years, 6 months ago by William Hesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

X64 Implementation: Make codegen load literals and assign to local variables. Committed: http://code.google.com/p/v8/source/detail?r=2204

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 6

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1166 lines, -43 lines) Patch
M src/x64/assembler-x64.cc View 2 1 chunk +1 line, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 1 2 11 chunks +813 lines, -21 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/register-allocator-x64.cc View 1 chunk +9 lines, -7 lines 0 comments Download
M src/x64/virtual-frame-x64.cc View 1 2 3 5 chunks +342 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
William Hesse
Does not yet compile and run. But please comment.
11 years, 6 months ago (2009-06-16 12:54:26 UTC) #1
William Hesse
Compiles, runs, and returns the wrong answer from { 39; _result = 42; return _result; ...
11 years, 6 months ago (2009-06-16 14:17:39 UTC) #2
William Hesse
This now works, and returns the right answer. Please review.
11 years, 6 months ago (2009-06-17 11:23:33 UTC) #3
Lasse Reichstein
LGTM http://codereview.chromium.org/126198/diff/1010/1012 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/126198/diff/1010/1012#newcode133 Line 133: // Function compiles and runs, but returns ...
11 years, 6 months ago (2009-06-17 11:35:05 UTC) #4
William Hesse
11 years, 6 months ago (2009-06-17 12:02:32 UTC) #5
http://codereview.chromium.org/126198/diff/1010/1012
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/126198/diff/1010/1012#newcode133
Line 133: // Function compiles and runs, but returns a JSFunction object.
On 2009/06/17 11:35:05, Lasse Reichstein wrote:
> Comment no longer correct?

Done.

http://codereview.chromium.org/126198/diff/1010/1012#newcode336
Line 336: */
On 2009/06/17 11:35:05, Lasse Reichstein wrote:
> What is the commented part for?

Handling multiple return statements in the same function.  Added as a TODO and
commented.

http://codereview.chromium.org/126198/diff/1010/1011
File src/x64/virtual-frame-x64.cc (right):

http://codereview.chromium.org/126198/diff/1010/1011#newcode520
Line 520: 
On 2009/06/17 11:35:05, Lasse Reichstein wrote:
> Much of this code looks like it's identical to the ia32 version, except for a
> few lines of assembler. 
> Would it be possible to abstract the identical parts into a shared template
> function so the architecture specific bits are only assembler operations?

Actually, the use of kScratchRegister makes a number of things much simpler.  I
forgot to remove lines 473 and 474 - that is an example.

Powered by Google App Engine
This is Rietveld 408576698