Index: src/hydrogen.cc |
=================================================================== |
--- src/hydrogen.cc (revision 7884) |
+++ src/hydrogen.cc (working copy) |
@@ -4636,7 +4636,7 @@ |
TypeInfo info = oracle()->UnaryType(expr); |
Representation rep = ToRepresentation(info); |
TraceRepresentation(expr->op(), info, instr, rep); |
- AssumeRepresentation(instr, rep); |
+ instr->AssumeRepresentation(rep); |
ast_context()->ReturnInstruction(instr, expr->id()); |
} |
@@ -4707,7 +4707,7 @@ |
rep = Representation::Integer32(); |
} |
TraceRepresentation(expr->op(), info, instr, rep); |
- AssumeRepresentation(instr, rep); |
+ instr->AssumeRepresentation(rep); |
return instr; |
} |
@@ -4885,7 +4885,7 @@ |
rep = Representation::Integer32(); |
} |
TraceRepresentation(expr->op(), info, instr, rep); |
- AssumeRepresentation(instr, rep); |
+ instr->AssumeRepresentation(rep); |
return instr; |
} |
@@ -5073,16 +5073,6 @@ |
} |
-void HGraphBuilder::AssumeRepresentation(HValue* value, Representation rep) { |
- if (value->CheckFlag(HValue::kFlexibleRepresentation)) { |
- value->ChangeRepresentation(rep); |
- // The representation of the value is dictated by type feedback and |
- // will not be changed later. |
- value->ClearFlag(HValue::kFlexibleRepresentation); |
- } |
-} |
- |
- |
Representation HGraphBuilder::ToRepresentation(TypeInfo info) { |
if (info.IsSmi()) return Representation::Integer32(); |
if (info.IsInteger32()) return Representation::Integer32(); |