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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 39414)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -159,7 +159,7 @@
ic_data = current->AsInstanceCall()->ic_data();
ASSERT(ic_data != NULL);
}
- if ((ic_data != NULL) && (ic_data->NumberOfChecks() == 0)) {
+ if ((ic_data != NULL) && (ic_data->NumberOfUsedChecks() == 0)) {
may_reoptimize_ = true;
}
if (is_leaf &&
@@ -836,10 +836,10 @@
LocationSummary* locs,
const ICData& ic_data) {
ASSERT(!ic_data.IsNull());
- ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfChecks() == 0));
+ ASSERT(FLAG_propagate_ic_data || (ic_data.NumberOfUsedChecks() == 0));
uword label_address = 0;
StubCode* stub_code = isolate()->stub_code();
- if (is_optimizing() && (ic_data.NumberOfChecks() == 0)) {
+ if (is_optimizing() && (ic_data.NumberOfUsedChecks() == 0)) {
if (ic_data.IsClosureCall()) {
// This IC call may be closure call only.
label_address = stub_code->ClosureCallInlineCacheEntryPoint();

Powered by Google App Engine
This is Rietveld 408576698