Chromium Code Reviews| Index: src/ia32/lithium-ia32.cc |
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
| index f7eeb60fcd178cd85b1712073dc05f4544ebeb3d..565ffa64ca82c5bc0e9189ec80c2eb870e9d2a4c 100644 |
| --- a/src/ia32/lithium-ia32.cc |
| +++ b/src/ia32/lithium-ia32.cc |
| @@ -2471,10 +2471,15 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
| LStoreNamedField* result = |
| new(zone()) LStoreNamedField(obj, val, temp, temp_map); |
| - if ((FLAG_track_fields && instr->field_representation().IsSmi()) || |
| - (FLAG_track_heap_object_fields && |
| - instr->field_representation().IsHeapObject())) { |
| - return AssignEnvironment(result); |
| + if (FLAG_track_fields && instr->field_representation().IsSmi()) { |
| + if (!instr->value()->range()->IsInSmiRange()) { |
|
danno
2013/06/06 07:54:19
See comment above.
|
| + return AssignEnvironment(result); |
| + } |
| + } else if (FLAG_track_heap_object_fields && |
| + instr->field_representation().IsHeapObject()) { |
| + if (!instr->value()->type().IsHeapObject()) { |
| + return AssignEnvironment(result); |
| + } |
| } |
| return result; |
| } |