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

Issue 126116: Optimize constant divisions by powers of 2. (Closed)

Created:
11 years, 6 months ago by Erik Corry
Modified:
9 years, 7 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Optimize constant divisions by powers of 2. Committed: http://code.google.com/p/v8/source/detail?r=2164

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -0 lines) Patch
M src/parser.cc View 1 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Erik Corry
11 years, 6 months ago (2009-06-15 09:47:49 UTC) #1
Kasper Lund
11 years, 6 months ago (2009-06-15 09:52:30 UTC) #2
LGTM.

http://codereview.chromium.org/126116/diff/1/2
File src/parser.cc (right):

http://codereview.chromium.org/126116/diff/1/2#newcode2661
Line 2661: ((y_int - 1) & y_int) == 0) {
Yeah, we kinda know about this trick. Please use IsPowerOf2 from utils.h :-)
(maybe it even fits on one line then).

Powered by Google App Engine
This is Rietveld 408576698