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

Issue 2487873003: Speculate on bitwise operators. (Closed)

Created:
4 years, 1 month ago by rmacnak
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

AOT: Speculate that bitwise operators will have Smi receivers and arguments. Add shifts to CheckedSmiOps. Fix invalid load forwarding across CheckedSmiOps and CheckedSmiComparisons. R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/e7040c86ebb7933ce53153abbe6e5290e678da2e

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 7

Patch Set 6 : . #

Patch Set 7 : git cl format #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -7 lines) Patch
M runtime/vm/aot_optimizer.cc View 1 2 3 4 5 6 2 chunks +12 lines, -5 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 4 5 6 4 chunks +37 lines, -1 line 0 comments Download
M runtime/vm/redundancy_elimination.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 1 comment Download
M runtime/vm/token.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/token.cc View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
rmacnak
before: I/flutter (31900): Stock build: 1480.1µs per iteration I/flutter (32098): Stock build: 1496.6µs per iteration ...
4 years, 1 month ago (2016-11-11 17:54:02 UTC) #3
Florian Schneider
LGTM https://codereview.chromium.org/2487873003/diff/80001/runtime/vm/intermediate_language_arm.cc File runtime/vm/intermediate_language_arm.cc (right): https://codereview.chromium.org/2487873003/diff/80001/runtime/vm/intermediate_language_arm.cc#newcode3271 runtime/vm/intermediate_language_arm.cc:3271: __ mov(result, Operand(left, LSL, TMP)); Can Assembler::LsL be ...
4 years, 1 month ago (2016-11-11 18:12:20 UTC) #4
rmacnak
https://codereview.chromium.org/2487873003/diff/80001/runtime/vm/intermediate_language_arm.cc File runtime/vm/intermediate_language_arm.cc (right): https://codereview.chromium.org/2487873003/diff/80001/runtime/vm/intermediate_language_arm.cc#newcode3271 runtime/vm/intermediate_language_arm.cc:3271: __ mov(result, Operand(left, LSL, TMP)); On 2016/11/11 18:12:20, Florian ...
4 years, 1 month ago (2016-11-11 21:29:02 UTC) #5
rmacnak
Committed patchset #7 (id:120001) manually as e7040c86ebb7933ce53153abbe6e5290e678da2e (presubmit successful).
4 years, 1 month ago (2016-11-11 21:33:49 UTC) #7
Vyacheslav Egorov (Google)
4 years, 1 month ago (2016-11-15 21:58:34 UTC) #9
Message was sent while issue was closed.
DBC

https://codereview.chromium.org/2487873003/diff/120001/runtime/vm/redundancy_...
File runtime/vm/redundancy_elimination.cc (right):

https://codereview.chromium.org/2487873003/diff/120001/runtime/vm/redundancy_...
runtime/vm/redundancy_elimination.cc:1007: instr->IsCheckedSmiComparison() ||
We should consider making this a flag / function on a Instruction. 

If we decide to add a new instruction with a slow path that can call arbitrary
Dart code we might forget to add a rule here again.

Powered by Google App Engine
This is Rietveld 408576698