| Index: src/ia32/lithium-ia32.cc
|
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc
|
| index c5c7755abfcdc98e8b5f1f2e736e889a12866234..1b92c60f086149afc0cf906814a17d5b40adacb5 100644
|
| --- a/src/ia32/lithium-ia32.cc
|
| +++ b/src/ia32/lithium-ia32.cc
|
| @@ -2478,10 +2478,11 @@ 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_heap_object_fields &&
|
| + instr->field_representation().IsHeapObject()) {
|
| + if (!instr->value()->type().IsHeapObject()) {
|
| + return AssignEnvironment(result);
|
| + }
|
| }
|
| return result;
|
| }
|
|
|