MIPS: Assign less environments.

Port r14983 (960d6de)

BUG=

Review URL: https://codereview.chromium.org/16567002
Patch from Balazs Kilvady <kilvadyb@homejinni.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14988 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
palfia@homejinni.com 2013-06-06 18:59:11 +00:00
parent 372457a793
commit 72f7abb4c9

View File

@ -2229,10 +2229,11 @@ LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) {
LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL;
LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp); LStoreNamedField* result = new(zone()) LStoreNamedField(obj, val, temp);
if ((FLAG_track_fields && instr->field_representation().IsSmi()) || if (FLAG_track_heap_object_fields &&
(FLAG_track_heap_object_fields && instr->field_representation().IsHeapObject()) {
instr->field_representation().IsHeapObject())) { if (!instr->value()->type().IsHeapObject()) {
return AssignEnvironment(result); return AssignEnvironment(result);
}
} }
return result; return result;
} }