OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 4034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4045 } | 4045 } |
4046 | 4046 |
4047 Handle<Map> transition = instr->transition(); | 4047 Handle<Map> transition = instr->transition(); |
4048 | 4048 |
4049 if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { | 4049 if (FLAG_track_heap_object_fields && representation.IsHeapObject()) { |
4050 Register value = ToRegister(instr->value()); | 4050 Register value = ToRegister(instr->value()); |
4051 if (!instr->hydrogen()->value()->type().IsHeapObject()) { | 4051 if (!instr->hydrogen()->value()->type().IsHeapObject()) { |
4052 __ SmiTst(value, scratch); | 4052 __ SmiTst(value, scratch); |
4053 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); | 4053 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); |
4054 } | 4054 } |
4055 } else if (FLAG_track_double_fields && representation.IsDouble()) { | 4055 } else if (representation.IsDouble()) { |
4056 ASSERT(transition.is_null()); | 4056 ASSERT(transition.is_null()); |
4057 ASSERT(access.IsInobject()); | 4057 ASSERT(access.IsInobject()); |
4058 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); | 4058 ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); |
4059 DoubleRegister value = ToDoubleRegister(instr->value()); | 4059 DoubleRegister value = ToDoubleRegister(instr->value()); |
4060 __ sdc1(value, FieldMemOperand(object, offset)); | 4060 __ sdc1(value, FieldMemOperand(object, offset)); |
4061 return; | 4061 return; |
4062 } | 4062 } |
4063 | 4063 |
4064 if (!transition.is_null()) { | 4064 if (!transition.is_null()) { |
4065 __ li(scratch, Operand(transition)); | 4065 __ li(scratch, Operand(transition)); |
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5808 __ Subu(scratch, result, scratch); | 5808 __ Subu(scratch, result, scratch); |
5809 __ lw(result, FieldMemOperand(scratch, | 5809 __ lw(result, FieldMemOperand(scratch, |
5810 FixedArray::kHeaderSize - kPointerSize)); | 5810 FixedArray::kHeaderSize - kPointerSize)); |
5811 __ bind(&done); | 5811 __ bind(&done); |
5812 } | 5812 } |
5813 | 5813 |
5814 | 5814 |
5815 #undef __ | 5815 #undef __ |
5816 | 5816 |
5817 } } // namespace v8::internal | 5817 } } // namespace v8::internal |
OLD | NEW |