| 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 1783 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 | 1794 |
| 1795 | 1795 |
| 1796 void LCodeGen::DoConstantD(LConstantD* instr) { | 1796 void LCodeGen::DoConstantD(LConstantD* instr) { |
| 1797 ASSERT(instr->result()->IsDoubleRegister()); | 1797 ASSERT(instr->result()->IsDoubleRegister()); |
| 1798 DwVfpRegister result = ToDoubleRegister(instr->result()); | 1798 DwVfpRegister result = ToDoubleRegister(instr->result()); |
| 1799 double v = instr->value(); | 1799 double v = instr->value(); |
| 1800 __ Vmov(result, v, scratch0()); | 1800 __ Vmov(result, v, scratch0()); |
| 1801 } | 1801 } |
| 1802 | 1802 |
| 1803 | 1803 |
| 1804 void LCodeGen::DoConstantE(LConstantE* instr) { |
| 1805 __ mov(ToRegister(instr->result()), Operand(instr->value())); |
| 1806 } |
| 1807 |
| 1808 |
| 1804 void LCodeGen::DoConstantT(LConstantT* instr) { | 1809 void LCodeGen::DoConstantT(LConstantT* instr) { |
| 1805 Handle<Object> value = instr->value(); | 1810 Handle<Object> value = instr->value(); |
| 1806 AllowDeferredHandleDereference smi_check; | 1811 AllowDeferredHandleDereference smi_check; |
| 1807 if (value->IsSmi()) { | 1812 if (value->IsSmi()) { |
| 1808 __ mov(ToRegister(instr->result()), Operand(value)); | 1813 __ mov(ToRegister(instr->result()), Operand(value)); |
| 1809 } else { | 1814 } else { |
| 1810 __ LoadHeapObject(ToRegister(instr->result()), | 1815 __ LoadHeapObject(ToRegister(instr->result()), |
| 1811 Handle<HeapObject>::cast(value)); | 1816 Handle<HeapObject>::cast(value)); |
| 1812 } | 1817 } |
| 1813 } | 1818 } |
| (...skipping 4007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5821 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5826 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5822 __ ldr(result, FieldMemOperand(scratch, | 5827 __ ldr(result, FieldMemOperand(scratch, |
| 5823 FixedArray::kHeaderSize - kPointerSize)); | 5828 FixedArray::kHeaderSize - kPointerSize)); |
| 5824 __ bind(&done); | 5829 __ bind(&done); |
| 5825 } | 5830 } |
| 5826 | 5831 |
| 5827 | 5832 |
| 5828 #undef __ | 5833 #undef __ |
| 5829 | 5834 |
| 5830 } } // namespace v8::internal | 5835 } } // namespace v8::internal |
| OLD | NEW |