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

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed)

Created:
6 years, 4 months ago by srdjan
Modified:
6 years, 2 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Ivan Posva
Visibility:
Public.

Description

Faster IC stubs by specializing them for two-argument Smi operations (implemented only a few for now) R=zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=39471

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Total comments: 26

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : #

Patch Set 19 : #

Patch Set 20 : #

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Patch Set 24 : #

Total comments: 12

Patch Set 25 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+828 lines, -184 lines) Patch
M runtime/vm/compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 3 chunks +10 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 13 chunks +69 lines, -52 lines 0 comments Download
M runtime/vm/il_printer.cc View 1 chunk +1 line, -4 lines 0 comments Download
M runtime/vm/intermediate_language.cc View 3 chunks +62 lines, -10 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 chunk +1 line, -1 line 2 comments Download
M runtime/vm/object.h View 4 chunks +11 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 11 chunks +80 lines, -16 lines 0 comments Download
M runtime/vm/object_test.cc View 3 chunks +8 lines, -1 line 0 comments Download
M runtime/vm/stub_code.h View 2 chunks +5 lines, -1 line 0 comments Download
M runtime/vm/stub_code_arm.cc View 5 chunks +107 lines, -18 lines 0 comments Download
M runtime/vm/stub_code_arm64.cc View 5 chunks +115 lines, -18 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 6 chunks +115 lines, -18 lines 0 comments Download
M runtime/vm/stub_code_mips.cc View 5 chunks +113 lines, -18 lines 0 comments Download
M runtime/vm/stub_code_x64.cc View 6 chunks +122 lines, -18 lines 0 comments Download
M runtime/vm/symbols.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (1 generated)
srdjan
6 years, 4 months ago (2014-08-15 20:49:19 UTC) #1
Cutch
DBC https://codereview.chromium.org/436643002/diff/240001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/intermediate_language.cc#newcode2444 runtime/vm/intermediate_language.cc:2444: if (label_address != 0) { != NULL ? ...
6 years, 4 months ago (2014-08-15 21:23:28 UTC) #2
Ivan Posva
-ip https://codereview.chromium.org/436643002/diff/240001/runtime/vm/intermediate_language.cc File runtime/vm/intermediate_language.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/intermediate_language.cc#newcode2444 runtime/vm/intermediate_language.cc:2444: if (label_address != 0) { On 2014/08/15 21:23:28, ...
6 years, 4 months ago (2014-08-15 21:32:35 UTC) #3
Vyacheslav Egorov (Google)
I feel like we are going the path that we walked already and we know ...
6 years, 4 months ago (2014-08-15 21:36:19 UTC) #4
zra
Is there some way to do this for all intrinsics? https://codereview.chromium.org/436643002/diff/240001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/object.cc#newcode11713 ...
6 years, 4 months ago (2014-08-15 21:45:09 UTC) #5
srdjan
https://codereview.chromium.org/436643002/diff/240001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/object.cc#newcode11380 runtime/vm/object.cc:11380: String::Handle(target.name()).ToCString(), On 2014/08/15 21:23:28, Cutch wrote: > Should this ...
6 years, 4 months ago (2014-08-15 21:49:00 UTC) #6
zra
https://codereview.chromium.org/436643002/diff/240001/runtime/vm/stub_code_arm64.cc File runtime/vm/stub_code_arm64.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/stub_code_arm64.cc#newcode1317 runtime/vm/stub_code_arm64.cc:1317: // Note: xxx must be preserved if 'not_smi_or_overflow' is ...
6 years, 4 months ago (2014-08-15 22:12:33 UTC) #7
srdjan
https://codereview.chromium.org/436643002/diff/240001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/object.cc#newcode11688 runtime/vm/object.cc:11688: // TODO(srdjan): Make this test more robust. On 2014/08/15 ...
6 years, 4 months ago (2014-08-18 20:28:40 UTC) #8
srdjan
https://codereview.chromium.org/436643002/diff/240001/runtime/vm/stub_code_arm.cc File runtime/vm/stub_code_arm.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/stub_code_arm.cc#newcode1247 runtime/vm/stub_code_arm.cc:1247: case Token::kEQ: { On 2014/08/15 21:45:08, zra wrote: > ...
6 years, 4 months ago (2014-08-18 20:40:27 UTC) #9
zra
lgtm https://codereview.chromium.org/436643002/diff/240001/runtime/vm/stub_code_arm.cc File runtime/vm/stub_code_arm.cc (right): https://codereview.chromium.org/436643002/diff/240001/runtime/vm/stub_code_arm.cc#newcode1275 runtime/vm/stub_code_arm.cc:1275: __ Bind(&error); On 2014/08/18 20:40:27, srdjan wrote: > ...
6 years, 4 months ago (2014-08-18 21:00:30 UTC) #10
srdjan
PTAL. Changed handling of ICData with unused entries. Instead of replacing them with copies that ...
6 years, 4 months ago (2014-08-20 18:11:05 UTC) #11
zra
https://codereview.chromium.org/436643002/diff/460001/runtime/vm/flow_graph_compiler_ia32.cc File runtime/vm/flow_graph_compiler_ia32.cc (right): https://codereview.chromium.org/436643002/diff/460001/runtime/vm/flow_graph_compiler_ia32.cc#newcode1485 runtime/vm/flow_graph_compiler_ia32.cc:1485: ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > 0)); Is this change also ...
6 years, 4 months ago (2014-08-20 20:17:11 UTC) #12
srdjan
Thanks for comments and PTAL. https://codereview.chromium.org/436643002/diff/460001/runtime/vm/flow_graph_compiler_ia32.cc File runtime/vm/flow_graph_compiler_ia32.cc (right): https://codereview.chromium.org/436643002/diff/460001/runtime/vm/flow_graph_compiler_ia32.cc#newcode1485 runtime/vm/flow_graph_compiler_ia32.cc:1485: ASSERT(!ic_data.IsNull() && (ic_data.NumberOfUsedChecks() > ...
6 years, 4 months ago (2014-08-21 17:30:22 UTC) #13
zra
lgtm
6 years, 4 months ago (2014-08-21 17:41:52 UTC) #14
srdjan
Committed patchset #25 manually as r39471 (presubmit successful).
6 years, 4 months ago (2014-08-21 20:08:54 UTC) #15
Florian Schneider
https://codereview.chromium.org/436643002/diff/480001/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://codereview.chromium.org/436643002/diff/480001/runtime/vm/intermediate_language_ia32.cc#newcode5201 runtime/vm/intermediate_language_ia32.cc:5201: if (ic_data().NumberOfUsedChecks() == 0) { Why is this only ...
6 years, 3 months ago (2014-09-18 12:32:30 UTC) #17
srdjan
6 years, 2 months ago (2014-09-25 17:40:25 UTC) #18
Message was sent while issue was closed.
https://codereview.chromium.org/436643002/diff/480001/runtime/vm/intermediate...
File runtime/vm/intermediate_language_ia32.cc (right):

https://codereview.chromium.org/436643002/diff/480001/runtime/vm/intermediate...
runtime/vm/intermediate_language_ia32.cc:5201: if
(ic_data().NumberOfUsedChecks() == 0) {
On 2014/09/18 12:32:29, Florian Schneider wrote:
> Why is this only changed on ia32? This also seems to be unreachable code.

This was fixed in a follow up CL

Powered by Google App Engine
This is Rietveld 408576698