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

Issue 11362210: Restrict immediate operands to smi where only smis are supported. (Closed)

Created:
8 years, 1 month ago by Florian Schneider
Modified:
8 years, 1 month ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Restrict immediate operands to smi where only smis are supported. Re-enable redundant phi elimination. Add x64 codegen templates and assembler instructions for immediate operands. Fix x64 assembler for imull when using r8-r15. Add x64 instruction for imulq(reg, imm). Fix x64 disassembler printing of immediates. Committed: https://code.google.com/p/dart/source/detail?r=14814

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+209 lines, -139 lines) Patch
M runtime/vm/assembler_x64.h View 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/assembler_x64.cc View 7 chunks +57 lines, -16 lines 0 comments Download
M runtime/vm/assembler_x64_test.cc View 20 chunks +72 lines, -52 lines 0 comments Download
M runtime/vm/disassembler_x64.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 7 chunks +16 lines, -34 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 8 chunks +23 lines, -34 lines 0 comments Download
M runtime/vm/locations.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/locations.cc View 2 chunks +16 lines, -0 lines 0 comments Download
A tests/language/inline_closure_with_constant_arguments.dart View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
8 years, 1 month ago (2012-11-12 19:49:56 UTC) #1
srdjan
LGTM https://codereview.chromium.org/11362210/diff/7001/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://codereview.chromium.org/11362210/diff/7001/runtime/vm/intermediate_language_ia32.cc#newcode899 runtime/vm/intermediate_language_ia32.cc:899: // Only one input can be a constant ...
8 years, 1 month ago (2012-11-12 20:48:18 UTC) #2
Florian Schneider
8 years, 1 month ago (2012-11-12 22:43:45 UTC) #3
https://codereview.chromium.org/11362210/diff/7001/runtime/vm/intermediate_la...
File runtime/vm/intermediate_language_ia32.cc (right):

https://codereview.chromium.org/11362210/diff/7001/runtime/vm/intermediate_la...
runtime/vm/intermediate_language_ia32.cc:899: // Only one input can be a
constant operand.
On 2012/11/12 20:48:18, srdjan wrote:
> Why don't you allow both to be constant? You expect that to be handled in the
> optimizer instead? (please add comment).

Done.

Powered by Google App Engine
This is Rietveld 408576698