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

Issue 141030: X64 implementation: if-then-else (Closed)

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

Description

X64 implementation: if-then-else Committed: http://code.google.com/p/v8/source/detail?r=2229

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+531 lines, -38 lines) Patch
M src/x64/assembler-x64.cc View 1 1 chunk +0 lines, -13 lines 0 comments Download
M src/x64/codegen-x64.cc View 1 5 chunks +184 lines, -20 lines 0 comments Download
M src/x64/jump-target-x64.cc View 1 1 chunk +341 lines, -0 lines 0 comments Download
M src/x64/virtual-frame-x64.h View 1 1 chunk +2 lines, -5 lines 0 comments Download
M src/x64/virtual-frame-x64.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
William Hesse
If statement compiles, runs, and works correctly in one simple test case.
11 years, 6 months ago (2009-06-20 18:38:49 UTC) #1
Lasse Reichstein
LGTM (but I don't completely understand how the compiler works). http://codereview.chromium.org/141030/diff/1/6 File src/x64/codegen-x64.cc (right): http://codereview.chromium.org/141030/diff/1/6#newcode1170 ...
11 years, 6 months ago (2009-06-22 07:47:45 UTC) #2
William Hesse
11 years, 6 months ago (2009-06-22 08:06:58 UTC) #3
http://codereview.chromium.org/141030/diff/1/6
File src/x64/codegen-x64.cc (right):

http://codereview.chromium.org/141030/diff/1/6#newcode1170
Line 1170: frame_->Push(&value);  // Undo the Pop() from above.
On 2009/06/22 07:47:45, Lasse Reichstein wrote:
> Would it be faster to inline the remaining three false cases (null, NaN and
> empty string)? Or is the code for that too big to be inlined?

I count more cases: null, undetectable, empty string, NaN, +0, -0.  It is a lot
of code, and I think these cases aren't hit as often.

Powered by Google App Engine
This is Rietveld 408576698