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

Unified Diff: lib/compiler/implementation/ssa/bailout.dart

Issue 10702167: Fix bug in recompilation handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 5 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
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/bailout.dart
diff --git a/lib/compiler/implementation/ssa/bailout.dart b/lib/compiler/implementation/ssa/bailout.dart
index 5c0b7a94559c742767354c1190a89fa1a22fceba..548de769ef6c99637e8bc850336a9dab2af00009 100644
--- a/lib/compiler/implementation/ssa/bailout.dart
+++ b/lib/compiler/implementation/ssa/bailout.dart
@@ -75,7 +75,6 @@ class SsaTypeGuardInserter extends HGraphVisitor implements OptimizationPhase {
final String name = 'SsaTypeGuardInserter';
final WorkItem work;
bool calledInLoop = false;
- bool highTypeLikelyhood = false;
bool isRecursiveMethod = false;
int stateId = 1;
@@ -84,7 +83,6 @@ class SsaTypeGuardInserter extends HGraphVisitor implements OptimizationPhase {
void visitGraph(HGraph graph) {
isRecursiveMethod = graph.isRecursiveMethod;
calledInLoop = graph.calledInLoop;
- highTypeLikelyhood = graph.highTypeLikelyhood;
work.guards = <HTypeGuard>[];
visitDominatorTree(graph);
}
@@ -163,7 +161,7 @@ class SsaTypeGuardInserter extends HGraphVisitor implements OptimizationPhase {
// Insert type guards if the method is likely to be called in a
// loop.
- return calledInLoop || highTypeLikelyhood;
+ return calledInLoop;
}
bool shouldInsertTypeGuard(HInstruction instruction) {
« no previous file with comments | « no previous file | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698