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

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

Issue 10116023: Don't rely on any speculative type in the bailout version. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 8 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 1df10d158e8420518cef115a02a8e3d55c46cc23..9c96cc03a029ddc6bc26cc4f150017c2893f8b73 100644
--- a/lib/compiler/implementation/ssa/bailout.dart
+++ b/lib/compiler/implementation/ssa/bailout.dart
@@ -286,7 +286,8 @@ class SsaTypeGuardBuilder extends HBaseVisitor implements OptimizationPhase {
int state = 1;
capturedEnvironments.forEach((HInstruction instruction, Environment env) {
List<HInstruction> inputs = env.buildAndSetLast(instruction);
- HTypeGuard guard = new HTypeGuard(state++, inputs);
+ HTypeGuard guard =
+ new HTypeGuard(instruction.propagatedType, state++, inputs);
work.guards.add(guard);
instruction.block.rewrite(instruction, guard);
HInstruction insertionPoint = (instruction is HPhi)
« 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