OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4222 int offset = instr->offset(); | 4222 int offset = instr->offset(); |
4223 | 4223 |
4224 Handle<Map> transition = instr->transition(); | 4224 Handle<Map> transition = instr->transition(); |
4225 | 4225 |
4226 if (FLAG_track_fields && representation.IsSmi()) { | 4226 if (FLAG_track_fields && representation.IsSmi()) { |
4227 Register value = ToRegister(instr->value()); | 4227 Register value = ToRegister(instr->value()); |
4228 __ SmiTag(value, value, SetCC); | 4228 __ SmiTag(value, value, SetCC); |
4229 if (!instr->hydrogen()->value()->range()->IsInSmiRange()) { | 4229 if (!instr->hydrogen()->value()->range()->IsInSmiRange()) { |
4230 DeoptimizeIf(vs, instr->environment()); | 4230 DeoptimizeIf(vs, instr->environment()); |
4231 } | 4231 } |
| 4232 } else if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
| 4233 Register value = ToRegister(instr->value()); |
| 4234 if (!instr->hydrogen()->value()->type().IsHeapObject()) { |
| 4235 __ tst(value, Operand(kSmiTagMask)); |
| 4236 DeoptimizeIf(eq, instr->environment()); |
| 4237 } |
4232 } else if (FLAG_track_double_fields && representation.IsDouble()) { | 4238 } else if (FLAG_track_double_fields && representation.IsDouble()) { |
4233 ASSERT(transition.is_null()); | 4239 ASSERT(transition.is_null()); |
4234 ASSERT(instr->is_in_object()); | 4240 ASSERT(instr->is_in_object()); |
4235 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); | 4241 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); |
4236 DwVfpRegister value = ToDoubleRegister(instr->value()); | 4242 DwVfpRegister value = ToDoubleRegister(instr->value()); |
4237 __ vstr(value, FieldMemOperand(object, offset)); | 4243 __ vstr(value, FieldMemOperand(object, offset)); |
4238 return; | 4244 return; |
4239 } | 4245 } |
4240 | 4246 |
4241 if (!transition.is_null()) { | 4247 if (!transition.is_null()) { |
(...skipping 1669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5911 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5917 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
5912 __ ldr(result, FieldMemOperand(scratch, | 5918 __ ldr(result, FieldMemOperand(scratch, |
5913 FixedArray::kHeaderSize - kPointerSize)); | 5919 FixedArray::kHeaderSize - kPointerSize)); |
5914 __ bind(&done); | 5920 __ bind(&done); |
5915 } | 5921 } |
5916 | 5922 |
5917 | 5923 |
5918 #undef __ | 5924 #undef __ |
5919 | 5925 |
5920 } } // namespace v8::internal | 5926 } } // namespace v8::internal |
OLD | NEW |