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

Issue 1924413002: Fix modulo and bitwise operators. (Closed)

Created:
4 years, 7 months ago by sra1
Modified:
4 years, 7 months ago
Reviewers:
Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dev_compiler@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix modulo and bitwise operators. Dart `%` is modulo, JS `%` is remainder, so call the runtime version. Use dart2js interpretation of bit operations and shifts which always produce a 32-bit unsigned result. Optimization of the bit operations to follow. BUG= https://github.com/dart-lang/dev_compiler/issues/518 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/8ab6b7172aeaeabc17e229f2366fb73bebf1af6c

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -302 lines) Patch
M lib/runtime/dart_sdk.js View 106 chunks +282 lines, -282 lines 0 comments Download
M lib/src/compiler/code_generator.dart View 1 3 chunks +59 lines, -12 lines 0 comments Download
M test/browser/language_tests.js View 1 chunk +1 line, -0 lines 0 comments Download
M test/codegen/expect/expect.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/expect/expect.js View 1 chunk +1 line, -1 line 0 comments Download
M test/codegen/expect/notnull.js View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 7 (4 generated)
sra1
https://codereview.chromium.org/1924413002/diff/1/lib/runtime/dart_sdk.js File lib/runtime/dart_sdk.js (right): https://codereview.chromium.org/1924413002/diff/1/lib/runtime/dart_sdk.js#newcode3235 lib/runtime/dart_sdk.js:3235: + hash = (536870911 & hash + ((67108863 & ...
4 years, 7 months ago (2016-04-28 19:56:37 UTC) #4
Jennifer Messerly
LGTM! https://codereview.chromium.org/1924413002/diff/1/lib/src/compiler/code_generator.dart File lib/src/compiler/code_generator.dart (right): https://codereview.chromium.org/1924413002/diff/1/lib/src/compiler/code_generator.dart#newcode2822 lib/src/compiler/code_generator.dart:2822: case TokenType.TILDE_SLASH: this looks great, love the refactoring! ...
4 years, 7 months ago (2016-04-28 20:08:52 UTC) #5
sra1
4 years, 7 months ago (2016-04-28 20:47:34 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
8ab6b7172aeaeabc17e229f2366fb73bebf1af6c (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698