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

Issue 13844009: Actually implement the sqrt intrinsic in Crankshaft (Closed)

Created:
7 years, 8 months ago by Sven Panne
Modified:
7 years, 8 months ago
Reviewers:
Yang
CC:
v8-dev, tfarina
Visibility:
Public.

Description

Actually implement the sqrt intrinsic in Crankshaft Committed: http://code.google.com/p/v8/source/detail?r=14260

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -1 line) Patch
M src/hydrogen.cc View 1 chunk +7 lines, -1 line 2 comments Download

Messages

Total messages: 5 (0 generated)
Sven Panne
7 years, 8 months ago (2013-04-12 15:30:22 UTC) #1
Yang
On 2013/04/12 15:30:22, Sven Panne wrote: LGTM.
7 years, 8 months ago (2013-04-12 15:36:26 UTC) #2
Sven Panne
Committed patchset #1 manually as r14260 (presubmit successful).
7 years, 8 months ago (2013-04-15 10:36:20 UTC) #3
tfarina
https://codereview.chromium.org/13844009/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/13844009/diff/1/src/hydrogen.cc#newcode10974 src/hydrogen.cc:10974: return ast_context()->ReturnInstruction(result, call->id()); why you return here, if the ...
7 years, 8 months ago (2013-04-16 01:23:19 UTC) #4
Sven Panne
7 years, 8 months ago (2013-04-16 06:11:16 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/13844009/diff/1/src/hydrogen.cc
File src/hydrogen.cc (right):

https://codereview.chromium.org/13844009/diff/1/src/hydrogen.cc#newcode10974
src/hydrogen.cc:10974: return ast_context()->ReturnInstruction(result,
call->id());
On 2013/04/16 01:23:19, tfarina wrote:
> why you return here, if the return type of GenerateMathSqrt is void?

There is no deep reason, just for consistency with the other GenerateFoo
functions in the vicinity. OTOH, in C++ 'void' is not really special (because of
templates), and this is a good thing IMHO: 'void' is just another type with a
single value, just like Haskell's 0-tuple '()'.

Powered by Google App Engine
This is Rietveld 408576698