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

Issue 10440099: Adding unary op optimizations. missing assembly operations/ (Closed)

Created:
8 years, 6 months ago by srdjan
Modified:
8 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Adding unary op optimizations, missing assembly operations. Committed: https://code.google.com/p/dart/source/detail?r=8174

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+371 lines, -19 lines) Patch
M runtime/vm/assembler_x64.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/assembler_x64.cc View 1 3 chunks +30 lines, -0 lines 0 comments Download
M runtime/vm/assembler_x64_test.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 2 chunks +13 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 2 4 chunks +80 lines, -17 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 3 chunks +54 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 1 chunk +110 lines, -0 lines 0 comments Download
M runtime/vm/token.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/token.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
srdjan
Note that this code includes excerpts from http://codereview.chromium.org/10458031/ which needs to be submitted first.
8 years, 6 months ago (2012-05-30 21:58:17 UTC) #1
Florian Schneider
LGTM with comments. http://codereview.chromium.org/10440099/diff/1/runtime/vm/assembler_x64.cc File runtime/vm/assembler_x64.cc (right): http://codereview.chromium.org/10440099/diff/1/runtime/vm/assembler_x64.cc#newcode1577 runtime/vm/assembler_x64.cc:1577: ASSERT(RawObject::kClassTagSize == 16); These two would ...
8 years, 6 months ago (2012-05-31 09:22:54 UTC) #2
regis
LGTM https://chromiumcodereview.appspot.com/10440099/diff/1/runtime/vm/assembler_x64_test.cc File runtime/vm/assembler_x64_test.cc (right): https://chromiumcodereview.appspot.com/10440099/diff/1/runtime/vm/assembler_x64_test.cc#newcode1249 runtime/vm/assembler_x64_test.cc:1249: Shouldn't you add tests for notl and xorpd? ...
8 years, 6 months ago (2012-05-31 09:48:19 UTC) #3
srdjan
http://codereview.chromium.org/10440099/diff/1/runtime/vm/assembler_x64.cc File runtime/vm/assembler_x64.cc (right): http://codereview.chromium.org/10440099/diff/1/runtime/vm/assembler_x64.cc#newcode1577 runtime/vm/assembler_x64.cc:1577: ASSERT(RawObject::kClassTagSize == 16); On 2012/05/31 09:22:54, Florian Schneider wrote: ...
8 years, 6 months ago (2012-05-31 20:02:44 UTC) #4
srdjan
8 years, 6 months ago (2012-05-31 20:20:41 UTC) #5
https://chromiumcodereview.appspot.com/10440099/diff/1/runtime/vm/assembler_x...
File runtime/vm/assembler_x64_test.cc (right):

https://chromiumcodereview.appspot.com/10440099/diff/1/runtime/vm/assembler_x...
runtime/vm/assembler_x64_test.cc:1249: 
On 2012/05/31 09:48:19, regis wrote:
> Shouldn't you add tests for notl and xorpd?

Removed notl (it was never implemented), added test for xorpd.

https://chromiumcodereview.appspot.com/10440099/diff/1/runtime/vm/intermediat...
File runtime/vm/intermediate_language.cc (right):

https://chromiumcodereview.appspot.com/10440099/diff/1/runtime/vm/intermediat...
runtime/vm/intermediate_language.cc:549: // TODO(srdjan): Compute based on input
types (ICData).
On 2012/05/31 09:48:19, regis wrote:
> I am not sure that StaticType will depend on ICData. We may instead have a
> StaticType and a RuntimeType.
> Whereas the RuntimeType would depend on the ICData, the StaticType would
depend
> on the StaticType of the operands.
> The most specific of StaticType or RuntimeType would then be used to eliminate
> type tests.
> But you can leave the comment as is for now.

Changed to NumberInterface, which is the static type for this node.

Powered by Google App Engine
This is Rietveld 408576698