Index: src/ia32/stub-cache-ia32.cc |
diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc |
index c790a14e87e538792e5fbd6b58d516a2ccf8cc07..8709a85519d29c75720cb5db69576ad7264ab00f 100644 |
--- a/src/ia32/stub-cache-ia32.cc |
+++ b/src/ia32/stub-cache-ia32.cc |
@@ -371,7 +371,7 @@ void StubCompiler::GenerateFastPropertyLoad(MacroAssembler* masm, |
bool inobject, |
int index, |
Representation representation) { |
- ASSERT(!FLAG_track_double_fields || !representation.IsDouble()); |
+ ASSERT(!representation.IsDouble()); |
int offset = index * kPointerSize; |
if (!inobject) { |
// Calculate the offset into the properties array. |
@@ -573,11 +573,11 @@ void StoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
Handle<Object> constant(descriptors->GetValue(descriptor), masm->isolate()); |
__ CmpObject(value_reg, constant); |
__ j(not_equal, miss_label); |
- } else if (FLAG_track_fields && representation.IsSmi()) { |
+ } else if (representation.IsSmi()) { |
__ JumpIfNotSmi(value_reg, miss_label); |
- } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
+ } else if (representation.IsHeapObject()) { |
__ JumpIfSmi(value_reg, miss_label); |
- } else if (FLAG_track_double_fields && representation.IsDouble()) { |
+ } else if (representation.IsDouble()) { |
Label do_store, heap_number; |
__ AllocateHeapNumber(storage_reg, scratch1, scratch2, slow); |
@@ -668,15 +668,15 @@ void StoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
if (index < 0) { |
// Set the property straight into the object. |
int offset = object->map()->instance_size() + (index * kPointerSize); |
- if (FLAG_track_double_fields && representation.IsDouble()) { |
+ if (representation.IsDouble()) { |
__ mov(FieldOperand(receiver_reg, offset), storage_reg); |
} else { |
__ mov(FieldOperand(receiver_reg, offset), value_reg); |
} |
- if (!FLAG_track_fields || !representation.IsSmi()) { |
+ if (!representation.IsSmi()) { |
// Update the write barrier for the array address. |
- if (!FLAG_track_double_fields || !representation.IsDouble()) { |
+ if (!representation.IsDouble()) { |
__ mov(storage_reg, value_reg); |
} |
__ RecordWriteField(receiver_reg, |
@@ -692,15 +692,15 @@ void StoreStubCompiler::GenerateStoreTransition(MacroAssembler* masm, |
int offset = index * kPointerSize + FixedArray::kHeaderSize; |
// Get the properties array (optimistically). |
__ mov(scratch1, FieldOperand(receiver_reg, JSObject::kPropertiesOffset)); |
- if (FLAG_track_double_fields && representation.IsDouble()) { |
+ if (representation.IsDouble()) { |
__ mov(FieldOperand(scratch1, offset), storage_reg); |
} else { |
__ mov(FieldOperand(scratch1, offset), value_reg); |
} |
- if (!FLAG_track_fields || !representation.IsSmi()) { |
+ if (!representation.IsSmi()) { |
// Update the write barrier for the array address. |
- if (!FLAG_track_double_fields || !representation.IsDouble()) { |
+ if (!representation.IsDouble()) { |
__ mov(storage_reg, value_reg); |
} |
__ RecordWriteField(scratch1, |
@@ -743,11 +743,11 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm, |
Representation representation = lookup->representation(); |
ASSERT(!representation.IsNone()); |
- if (FLAG_track_fields && representation.IsSmi()) { |
+ if (representation.IsSmi()) { |
__ JumpIfNotSmi(value_reg, miss_label); |
- } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
+ } else if (representation.IsHeapObject()) { |
__ JumpIfSmi(value_reg, miss_label); |
- } else if (FLAG_track_double_fields && representation.IsDouble()) { |
+ } else if (representation.IsDouble()) { |
// Load the double storage. |
if (index < 0) { |
int offset = object->map()->instance_size() + (index * kPointerSize); |
@@ -794,7 +794,7 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm, |
return; |
} |
- ASSERT(!FLAG_track_double_fields || !representation.IsDouble()); |
+ ASSERT(!representation.IsDouble()); |
// TODO(verwaest): Share this code as a code stub. |
SmiCheck smi_check = representation.IsTagged() |
? INLINE_SMI_CHECK : OMIT_SMI_CHECK; |
@@ -803,7 +803,7 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm, |
int offset = object->map()->instance_size() + (index * kPointerSize); |
__ mov(FieldOperand(receiver_reg, offset), value_reg); |
- if (!FLAG_track_fields || !representation.IsSmi()) { |
+ if (!representation.IsSmi()) { |
// Update the write barrier for the array address. |
// Pass the value being stored in the now unused name_reg. |
__ mov(name_reg, value_reg); |
@@ -822,7 +822,7 @@ void StoreStubCompiler::GenerateStoreField(MacroAssembler* masm, |
__ mov(scratch1, FieldOperand(receiver_reg, JSObject::kPropertiesOffset)); |
__ mov(FieldOperand(scratch1, offset), value_reg); |
- if (!FLAG_track_fields || !representation.IsSmi()) { |
+ if (!representation.IsSmi()) { |
// Update the write barrier for the array address. |
// Pass the value being stored in the now unused name_reg. |
__ mov(name_reg, value_reg); |