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

Issue 17554003: Change static calls in unoptimized code to always call via a stub. Using ICData, the call count of … (Closed)

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

Description

Change static calls in unoptimized code to always call via a stub. Using ICData, the call count of static calls is collected as well. TODO: Use call frequency to guide inlining. R=asiva@google.com, hausner@google.com, zra@google.com Committed: https://code.google.com/p/dart/source/detail?r=24307

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -148 lines) Patch
M runtime/vm/code_generator.cc View 1 2 3 4 4 chunks +7 lines, -3 lines 0 comments Download
M runtime/vm/code_patcher.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_arm.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_arm_test.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/code_patcher_ia32.cc View 1 2 3 4 3 chunks +46 lines, -4 lines 0 comments Download
M runtime/vm/code_patcher_ia32_test.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/code_patcher_mips.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M runtime/vm/code_patcher_mips_test.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/code_patcher_x64.cc View 1 2 3 4 3 chunks +45 lines, -4 lines 0 comments Download
M runtime/vm/code_patcher_x64_test.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
M runtime/vm/debugger.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/vm/native_entry_test.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/native_entry_test.cc View 1 2 3 4 1 chunk +0 lines, -21 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 2 chunks +20 lines, -1 line 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/stub_code.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M runtime/vm/stub_code_arm.cc View 1 2 3 4 1 chunk +69 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 1 2 3 4 3 chunks +66 lines, -4 lines 0 comments Download
M runtime/vm/stub_code_mips.cc View 1 2 3 4 3 chunks +75 lines, -3 lines 0 comments Download
M runtime/vm/stub_code_x64.cc View 1 2 3 4 3 chunks +69 lines, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
srdjan
7 years, 6 months ago (2013-06-21 18:24:46 UTC) #1
zra
arm/mips lgtm https://codereview.chromium.org/17554003/diff/11001/runtime/vm/stub_code_mips.cc File runtime/vm/stub_code_mips.cc (right): https://codereview.chromium.org/17554003/diff/11001/runtime/vm/stub_code_mips.cc#newcode1812 runtime/vm/stub_code_mips.cc:1812: __ BranchEqual(T0, 0, &ok); __ beq(T0, ZR, ...
7 years, 6 months ago (2013-06-21 19:03:35 UTC) #2
srdjan
https://codereview.chromium.org/17554003/diff/11001/runtime/vm/stub_code_mips.cc File runtime/vm/stub_code_mips.cc (right): https://codereview.chromium.org/17554003/diff/11001/runtime/vm/stub_code_mips.cc#newcode1812 runtime/vm/stub_code_mips.cc:1812: __ BranchEqual(T0, 0, &ok); On 2013/06/21 19:03:35, zra wrote: ...
7 years, 6 months ago (2013-06-21 20:30:18 UTC) #3
hausner
lgtm https://codereview.chromium.org/17554003/diff/11001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/17554003/diff/11001/runtime/vm/object.cc#newcode8537 runtime/vm/object.cc:8537: const intptr_t old_num = NumberOfChecks(); Nit: suggest to ...
7 years, 6 months ago (2013-06-21 20:52:22 UTC) #4
siva
lgtm https://codereview.chromium.org/17554003/diff/32001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://codereview.chromium.org/17554003/diff/32001/runtime/vm/code_generator.cc#newcode733 runtime/vm/code_generator.cc:733: // necessary. Only static calls in optimized code ...
7 years, 6 months ago (2013-06-21 23:24:55 UTC) #5
srdjan
https://codereview.chromium.org/17554003/diff/11001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/17554003/diff/11001/runtime/vm/object.cc#newcode8537 runtime/vm/object.cc:8537: const intptr_t old_num = NumberOfChecks(); On 2013/06/21 20:52:22, hausner ...
7 years, 6 months ago (2013-06-21 23:32:20 UTC) #6
srdjan
7 years, 6 months ago (2013-06-21 23:35:22 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r24307 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698