| 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 4148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4159 | 4159 |
| 4160 | 4160 |
| 4161 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 4161 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
| 4162 CallRuntime(instr->function(), instr->arity(), instr); | 4162 CallRuntime(instr->function(), instr->arity(), instr); |
| 4163 } | 4163 } |
| 4164 | 4164 |
| 4165 | 4165 |
| 4166 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { | 4166 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { |
| 4167 Register result = ToRegister(instr->result()); | 4167 Register result = ToRegister(instr->result()); |
| 4168 Register base = ToRegister(instr->base_object()); | 4168 Register base = ToRegister(instr->base_object()); |
| 4169 int offset = instr->offset(); |
| 4170 if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
| 4171 ASSERT(kPointerAlignment * 2 == kDoubleAlignment); |
| 4172 Label aligned; |
| 4173 Register scratch = scratch0(); |
| 4174 __ and_(scratch, result, Operand(kDoubleAlignmentMask), SetCC); |
| 4175 __ b(eq, &aligned); |
| 4176 offset += kDoubleSize / 2; |
| 4177 __ bind(&aligned); |
| 4178 } |
| 4169 __ add(result, base, Operand(instr->offset())); | 4179 __ add(result, base, Operand(instr->offset())); |
| 4170 } | 4180 } |
| 4171 | 4181 |
| 4172 | 4182 |
| 4173 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 4183 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
| 4174 Representation representation = instr->representation(); | 4184 Representation representation = instr->representation(); |
| 4175 | 4185 |
| 4176 Register object = ToRegister(instr->object()); | 4186 Register object = ToRegister(instr->object()); |
| 4177 Register scratch = scratch0(); | 4187 Register scratch = scratch0(); |
| 4178 | 4188 |
| (...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5821 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5831 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5822 __ ldr(result, FieldMemOperand(scratch, | 5832 __ ldr(result, FieldMemOperand(scratch, |
| 5823 FixedArray::kHeaderSize - kPointerSize)); | 5833 FixedArray::kHeaderSize - kPointerSize)); |
| 5824 __ bind(&done); | 5834 __ bind(&done); |
| 5825 } | 5835 } |
| 5826 | 5836 |
| 5827 | 5837 |
| 5828 #undef __ | 5838 #undef __ |
| 5829 | 5839 |
| 5830 } } // namespace v8::internal | 5840 } } // namespace v8::internal |
| OLD | NEW |