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

Issue 10123007: Optimize ~~(expr) in optimized code. (Closed)

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

Description

Optimize ~~(expr) in optimized code. ~~ is commonly used to truncate a value to int32 (ToInt32). This change avoid actually emitting the bitwise operations, and just truncates the subexpression of ~~. BUG=v8:2037 TEST=test/mjsunit/compiler/optimize-bitnot.js Committed: https://code.google.com/p/v8/source/detail?r=11390

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -0 lines) Patch
M src/arm/lithium-arm.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/hydrogen-instructions.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/lithium-mips.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 chunk +1 line, -0 lines 0 comments Download
A test/mjsunit/compiler/optimize-bitnot.js View 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
fschneider
8 years, 8 months ago (2012-04-19 11:17:09 UTC) #1
Sven Panne
8 years, 8 months ago (2012-04-19 11:28:05 UTC) #2
lgtm

Powered by Google App Engine
This is Rietveld 408576698