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

Issue 10421028: When methods cannot be optimized initialize their count to a large negative number, otherwise they … (Closed)

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

Description

When methods cannot be optimized initialize their count to a large negative number, otherwise they keep calling the runtime. Committed: https://code.google.com/p/dart/source/detail?r=7969

Patch Set 1 #

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M runtime/vm/code_generator.cc View 4 chunks +4 lines, -3 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
srdjan
8 years, 7 months ago (2012-05-23 00:51:04 UTC) #1
srdjan
8 years, 7 months ago (2012-05-24 23:36:32 UTC) #2
siva
lgtm https://chromiumcodereview.appspot.com/10421028/diff/3001/runtime/vm/code_generator.cc File runtime/vm/code_generator.cc (right): https://chromiumcodereview.appspot.com/10421028/diff/3001/runtime/vm/code_generator.cc#newcode1319 runtime/vm/code_generator.cc:1319: const intptr_t kLowInvocationCount = -100000000; Why this value ...
8 years, 7 months ago (2012-05-24 23:44:22 UTC) #3
srdjan
8 years, 7 months ago (2012-05-24 23:57:22 UTC) #4
https://chromiumcodereview.appspot.com/10421028/diff/3001/runtime/vm/code_gen...
File runtime/vm/code_generator.cc (right):

https://chromiumcodereview.appspot.com/10421028/diff/3001/runtime/vm/code_gen...
runtime/vm/code_generator.cc:1319: const intptr_t kLowInvocationCount =
-100000000;
On 2012/05/24 23:44:22, asiva wrote:
> Why this value and not kIntptrMin....

It must be a Smi, could have been MinSmi but this number is as nice.

Powered by Google App Engine
This is Rietveld 408576698