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

Issue 266633007: Merge ConstantInstr -> UnboxDouble to UnboxedConstant. Reduces register usage and allows for variou… (Closed)

Created:
6 years, 7 months ago by srdjan
Modified:
6 years, 7 months ago
Reviewers:
zra, Florian Schneider
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Merge ConstantInstr -> UnboxDouble to UnboxedConstant. Reduces register usage and allows for various optimization with constants. R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=35663

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 12

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+222 lines, -13 lines) Patch
M runtime/vm/assembler_x64.h View 1 2 3 4 5 6 2 chunks +0 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_builder.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 4 5 6 3 chunks +9 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 5 6 2 chunks +13 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 3 4 5 6 2 chunks +8 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 4 5 6 2 chunks +24 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 4 5 6 3 chunks +22 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
srdjan
6 years, 7 months ago (2014-05-01 18:01:10 UTC) #1
zra
https://codereview.chromium.org/266633007/diff/13/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/266633007/diff/13/runtime/vm/flow_graph_builder.cc#newcode47 runtime/vm/flow_graph_builder.cc:47: 10.0, 20.0, 30.0, 64.0, 255.0}; PI? e? https://codereview.chromium.org/266633007/diff/13/runtime/vm/flow_graph_builder.cc#newcode60 runtime/vm/flow_graph_builder.cc:60: ...
6 years, 7 months ago (2014-05-01 18:34:14 UTC) #2
Florian Schneider
lgtm https://codereview.chromium.org/266633007/diff/13/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/266633007/diff/13/runtime/vm/intermediate_language.cc#newcode1610 runtime/vm/intermediate_language.cc:1610: Definition* UnboxDoubleInstr::Canonicalize(FlowGraph* flow_graph) { Maybe add if (!HasUses()) ...
6 years, 7 months ago (2014-05-01 18:34:15 UTC) #3
Florian Schneider
https://codereview.chromium.org/266633007/diff/50001/runtime/vm/intermediate_language_x64.cc File runtime/vm/intermediate_language_x64.cc (right): https://codereview.chromium.org/266633007/diff/50001/runtime/vm/intermediate_language_x64.cc#newcode248 runtime/vm/intermediate_language_x64.cc:248: __ movsd(result, FieldAddress(boxed, Double::value_offset())); Do the same as on ...
6 years, 7 months ago (2014-05-01 18:36:23 UTC) #4
srdjan
https://codereview.chromium.org/266633007/diff/13/runtime/vm/flow_graph_builder.cc File runtime/vm/flow_graph_builder.cc (right): https://codereview.chromium.org/266633007/diff/13/runtime/vm/flow_graph_builder.cc#newcode47 runtime/vm/flow_graph_builder.cc:47: 10.0, 20.0, 30.0, 64.0, 255.0}; On 2014/05/01 18:34:14, zra ...
6 years, 7 months ago (2014-05-01 20:33:03 UTC) #5
zra
https://codereview.chromium.org/266633007/diff/70001/runtime/vm/assembler_x64.cc File runtime/vm/assembler_x64.cc (right): https://codereview.chromium.org/266633007/diff/70001/runtime/vm/assembler_x64.cc#newcode2571 runtime/vm/assembler_x64.cc:2571: const int32_t offset = FindImmediate(*reinterpret_cast<int64_t*>(&value)); See checks in CanLoadImmediateFromPool ...
6 years, 7 months ago (2014-05-01 20:41:19 UTC) #6
srdjan
https://codereview.chromium.org/266633007/diff/70001/runtime/vm/assembler_x64.cc File runtime/vm/assembler_x64.cc (right): https://codereview.chromium.org/266633007/diff/70001/runtime/vm/assembler_x64.cc#newcode2571 runtime/vm/assembler_x64.cc:2571: const int32_t offset = FindImmediate(*reinterpret_cast<int64_t*>(&value)); On 2014/05/01 20:41:19, zra ...
6 years, 7 months ago (2014-05-01 21:14:13 UTC) #7
srdjan
6 years, 7 months ago (2014-05-01 22:03:30 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 manually as r35663 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698