| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 3892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3903 | 3903 |
| 3904 | 3904 |
| 3905 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 3905 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
| 3906 CallRuntime(instr->function(), instr->arity(), instr); | 3906 CallRuntime(instr->function(), instr->arity(), instr); |
| 3907 } | 3907 } |
| 3908 | 3908 |
| 3909 | 3909 |
| 3910 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { | 3910 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { |
| 3911 Register result = ToRegister(instr->result()); | 3911 Register result = ToRegister(instr->result()); |
| 3912 Register base = ToRegister(instr->base_object()); | 3912 Register base = ToRegister(instr->base_object()); |
| 3913 if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
| 3914 ASSERT(kPointerAlignment == kDoubleAlignment); |
| 3915 __ testq(result, Immediate(kDoubleAlignmentMask)); |
| 3916 __ Check(zero, "Allocation is not double aligned"); |
| 3917 } |
| 3913 __ lea(result, Operand(base, instr->offset())); | 3918 __ lea(result, Operand(base, instr->offset())); |
| 3914 } | 3919 } |
| 3915 | 3920 |
| 3916 | 3921 |
| 3917 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 3922 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
| 3918 Representation representation = instr->representation(); | 3923 Representation representation = instr->representation(); |
| 3919 | 3924 |
| 3920 Register object = ToRegister(instr->object()); | 3925 Register object = ToRegister(instr->object()); |
| 3921 | 3926 |
| 3922 HObjectAccess access = instr->hydrogen()->access(); | 3927 HObjectAccess access = instr->hydrogen()->access(); |
| (...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5538 FixedArray::kHeaderSize - kPointerSize)); | 5543 FixedArray::kHeaderSize - kPointerSize)); |
| 5539 __ bind(&done); | 5544 __ bind(&done); |
| 5540 } | 5545 } |
| 5541 | 5546 |
| 5542 | 5547 |
| 5543 #undef __ | 5548 #undef __ |
| 5544 | 5549 |
| 5545 } } // namespace v8::internal | 5550 } } // namespace v8::internal |
| 5546 | 5551 |
| 5547 #endif // V8_TARGET_ARCH_X64 | 5552 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |