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

Issue 2947633002: VM-codegen: Clean up the way we emit code for comparison instructions. (Closed)

Created:
3 years, 6 months ago by erikcorry
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

VM-codegen: Clean up the way we emit code for comparison instructions. Removes some redundancy in the Emit* methods in intermediate_language_*.cc for the 6 architectures we support. This is a reapplication of https://codereview.chromium.org/2937933002/ - see the comments there. It fixes a bug in the way the TestCids instruction was emitted on DBC. R=vegorov@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/dfb67ecbf873e4423506d1f5f74ecc9b6aee0c05

Patch Set 1 #

Patch Set 2 : Fix TestCids instruction on DBC and DBC64 #

Total comments: 8

Patch Set 3 : Simplify DBC ComparisonInstr::EmitNativeCode #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -902 lines) Patch
M runtime/vm/assembler_mips.h View 3 chunks +25 lines, -5 lines 0 comments Download
M runtime/vm/constants_arm.h View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/constants_arm64.h View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/constants_dbc.h View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/constants_ia32.h View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/constants_mips.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/constants_x64.h View 1 chunk +3 lines, -1 line 0 comments Download
M runtime/vm/disassembler_arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/disassembler_arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 17 chunks +66 lines, -45 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 11 chunks +43 lines, -172 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 11 chunks +27 lines, -155 lines 0 comments Download
M runtime/vm/intermediate_language_dbc.cc View 1 2 10 chunks +107 lines, -121 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 8 chunks +15 lines, -127 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 11 chunks +19 lines, -142 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 10 chunks +17 lines, -128 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
erikcorry
3 years, 6 months ago (2017-06-19 11:08:37 UTC) #1
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/2947633002/diff/20001/runtime/vm/intermediate_language_dbc.cc File runtime/vm/intermediate_language_dbc.cc (right): https://codereview.chromium.org/2947633002/diff/20001/runtime/vm/intermediate_language_dbc.cc#newcode575 runtime/vm/intermediate_language_dbc.cc:575: __ LoadConstant( maybe make a const bool next_is_true ...
3 years, 6 months ago (2017-06-19 13:41:21 UTC) #2
erikcorry
https://codereview.chromium.org/2947633002/diff/20001/runtime/vm/intermediate_language_dbc.cc File runtime/vm/intermediate_language_dbc.cc (right): https://codereview.chromium.org/2947633002/diff/20001/runtime/vm/intermediate_language_dbc.cc#newcode575 runtime/vm/intermediate_language_dbc.cc:575: __ LoadConstant( On 2017/06/19 13:41:20, Vyacheslav Egorov (Google) wrote: ...
3 years, 6 months ago (2017-06-20 15:06:06 UTC) #3
erikcorry
3 years, 6 months ago (2017-06-20 15:41:20 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
dfb67ecbf873e4423506d1f5f74ecc9b6aee0c05 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698