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

Issue 564843002: Initial steps towards cleaning up integer arithmetic IR. (Closed)

Created:
6 years, 3 months ago by Vyacheslav Egorov (Google)
Modified:
5 years, 8 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Initial steps towards cleaning up integer arithmetic IR. Introduce base classes for binary and unary integer operations and move all shared logic (e.g. canonicalization) into these classes. Start removing special cases dispatch from instructions patterns - it goes into Canonicalization pass. Start removing duplication between instruction patterns where meaningful and possible. Cleanup the notion of truncation in the operations: is_truncating implies !can_overflow, not the other way around. BUG= R=johnmccutchan@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=40375

Patch Set 1 #

Total comments: 15
Unified diffs Side-by-side diffs Delta from patch set Stats (+1032 lines, -1578 lines) Patch
M runtime/vm/assembler_arm.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/assembler_arm64.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/assembler_ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/assembler_mips.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/assembler_x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/flow_graph.cc View 1 chunk +1 line, -1 line 1 comment Download
M runtime/vm/flow_graph_optimizer.h View 1 chunk +1 line, -6 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 14 chunks +54 lines, -125 lines 2 comments Download
M runtime/vm/flow_graph_range_analysis.cc View 4 chunks +61 lines, -96 lines 1 comment Download
M runtime/vm/il_printer.cc View 2 chunks +10 lines, -70 lines 0 comments Download
M runtime/vm/intermediate_language.h View 9 chunks +261 lines, -403 lines 2 comments Download
M runtime/vm/intermediate_language.cc View 10 chunks +344 lines, -134 lines 7 comments Download
M runtime/vm/intermediate_language_arm.cc View 13 chunks +56 lines, -146 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 8 chunks +20 lines, -75 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 14 chunks +167 lines, -373 lines 1 comment Download
M runtime/vm/intermediate_language_mips.cc View 8 chunks +19 lines, -78 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 7 chunks +22 lines, -69 lines 1 comment Download
M runtime/vm/object.h View 2 chunks +4 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Vyacheslav Egorov (Google)
PTAL This is first steps, I did not complete the cleanup that I planned because ...
6 years, 3 months ago (2014-09-11 15:36:27 UTC) #2
srdjan
lgtm https://codereview.chromium.org/564843002/diff/1/runtime/vm/flow_graph.cc File runtime/vm/flow_graph.cc (right): https://codereview.chromium.org/564843002/diff/1/runtime/vm/flow_graph.cc#newcode98 runtime/vm/flow_graph.cc:98: constant = new(isolate()) ConstantInstr(Object::ZoneHandle(object.raw())); isolate(), object.raw() https://codereview.chromium.org/564843002/diff/1/runtime/vm/flow_graph_range_analysis.cc File ...
6 years, 3 months ago (2014-09-11 17:38:12 UTC) #3
Cutch
lgtm https://codereview.chromium.org/564843002/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc (left): https://codereview.chromium.org/564843002/diff/1/runtime/vm/flow_graph_optimizer.cc#oldcode2253 runtime/vm/flow_graph_optimizer.cc:2253: call->token_pos()); Why are we dropping the token position? ...
6 years, 3 months ago (2014-09-11 17:41:53 UTC) #5
Vyacheslav Egorov (Google)
some answers below, I'll address comments and land. thanks for the review. https://codereview.chromium.org/564843002/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc ...
6 years, 3 months ago (2014-09-11 19:50:47 UTC) #6
Vyacheslav Egorov (Google)
6 years, 3 months ago (2014-09-17 13:31:38 UTC) #7
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 40375 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698