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

Issue 126293: Inline mod for integer powers of 2. (Closed)

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

Description

Inline mod for integer powers of 2. Committed: http://code.google.com/p/v8/source/detail?r=2215

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -1 line) Patch
M src/ia32/codegen-ia32.cc View 2 chunks +31 lines, -1 line 1 comment Download

Messages

Total messages: 2 (0 generated)
Erik Corry
11 years, 6 months ago (2009-06-17 21:01:32 UTC) #1
Kevin Millikin (Chromium)
11 years, 6 months ago (2009-06-18 07:23:49 UTC) #2
LGTM.

http://codereview.chromium.org/126293/diff/1/2
File src/ia32/codegen-ia32.cc (right):

http://codereview.chromium.org/126293/diff/1/2#newcode1393
Line 1393: GenericBinaryOpStub stub(op_, overwrite_mode_, flags);
You could write this:

GenericBinaryFlags flags = (op_ == Token::MOD)
  ? SMI_CODE_IN_STUB
  : SMI_CODE_INLINED;

Powered by Google App Engine
This is Rietveld 408576698