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

Issue 10356095: The shift-amount must not be anded with 31. (Closed)

Created:
8 years, 7 months ago by floitsch
Modified:
8 years, 7 months ago
Reviewers:
ngeoffray
CC:
reviews_dartlang.org, kasperl, Mads Ager (google)
Visibility:
Public.

Description

The shift-amount must not be anded with 31. In JS x >> y is equivalent to x >> (y & 31). Dart's semantics is different. Committed: https://code.google.com/p/dart/source/detail?r=7486

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -0 lines) Patch
M lib/compiler/implementation/lib/js_helper.dart View 2 chunks +6 lines, -0 lines 0 comments Download
A tests/language/bit_shift_test.dart View 1 chunk +46 lines, -0 lines 0 comments Download
M tests/language/language.status View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
floitsch
8 years, 7 months ago (2012-05-10 12:26:19 UTC) #1
ngeoffray
8 years, 7 months ago (2012-05-10 12:33:23 UTC) #2
LGTM

Powered by Google App Engine
This is Rietveld 408576698