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

Issue 1048063002: Added %_Likely/%_Unlikely intrinsics (special cases of GCC's __builin_expect). (Closed)

Created:
5 years, 8 months ago by Sven Panne
Modified:
5 years, 8 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Added %_Likely/%_Unlikely intrinsics (special cases of GCC's __builin_expect). Currently this only sets branch hints, so we get unlikely code "out of the way", but in the long run the register allocator needs some love to treat the unlikely code as, well, unlikely. :-) Committed: https://crrev.com/677f3d5fd79f2f8804bb8e0ba7f2bbea698c0cd8 Cr-Commit-Position: refs/heads/master@{#27540}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed feedback. Win fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -0 lines) Patch
M src/compiler/js-intrinsic-lowering.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/compiler/js-intrinsic-lowering.cc View 4 chunks +29 lines, -0 lines 0 comments Download
M src/hydrogen.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime-internal.cc View 1 1 chunk +12 lines, -0 lines 0 comments Download
M test/unittests/compiler/js-intrinsic-lowering-unittest.cc View 1 4 chunks +50 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Sven Panne
5 years, 8 months ago (2015-03-31 11:55:22 UTC) #2
Michael Starzinger
LGTM (modulo Win failures as discussed offline). https://codereview.chromium.org/1048063002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/1048063002/diff/1/src/hydrogen.cc#newcode12049 src/hydrogen.cc:12049: CHECK_BAILOUT(Visit(call->arguments()->at(0))); nit: ...
5 years, 8 months ago (2015-03-31 12:49:03 UTC) #3
Sven Panne
Addressed feedback. Changed the runtime function, hopefully the LTO on Windows is not too "clever" ...
5 years, 8 months ago (2015-03-31 13:01:35 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1048063002/20001
5 years, 8 months ago (2015-03-31 13:19:37 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-03-31 13:23:12 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-03-31 13:23:29 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/677f3d5fd79f2f8804bb8e0ba7f2bbea698c0cd8
Cr-Commit-Position: refs/heads/master@{#27540}

Powered by Google App Engine
This is Rietveld 408576698