| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1805 DoMathSqrt(instr); | 1805 DoMathSqrt(instr); |
| 1806 break; | 1806 break; |
| 1807 default: | 1807 default: |
| 1808 Abort("Unimplemented type of LUnaryMathOperation."); | 1808 Abort("Unimplemented type of LUnaryMathOperation."); |
| 1809 UNREACHABLE(); | 1809 UNREACHABLE(); |
| 1810 } | 1810 } |
| 1811 } | 1811 } |
| 1812 | 1812 |
| 1813 | 1813 |
| 1814 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { | 1814 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { |
| 1815 Abort("DoCallKeyed unimplemented."); | 1815 ASSERT(ToRegister(instr->result()).is(r0)); |
| 1816 |
| 1817 int arity = instr->arity(); |
| 1818 Handle<Code> ic = StubCache::ComputeKeyedCallInitialize(arity, NOT_IN_LOOP); |
| 1819 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 1820 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 1816 } | 1821 } |
| 1817 | 1822 |
| 1818 | 1823 |
| 1819 void LCodeGen::DoCallNamed(LCallNamed* instr) { | 1824 void LCodeGen::DoCallNamed(LCallNamed* instr) { |
| 1820 ASSERT(ToRegister(instr->result()).is(r0)); | 1825 ASSERT(ToRegister(instr->result()).is(r0)); |
| 1821 | 1826 |
| 1822 int arity = instr->arity(); | 1827 int arity = instr->arity(); |
| 1823 Handle<Code> ic = StubCache::ComputeCallInitialize(arity, NOT_IN_LOOP); | 1828 Handle<Code> ic = StubCache::ComputeCallInitialize(arity, NOT_IN_LOOP); |
| 1824 __ mov(r2, Operand(instr->name())); | 1829 __ mov(r2, Operand(instr->name())); |
| 1825 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 1830 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2623 | 2628 |
| 2624 | 2629 |
| 2625 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 2630 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
| 2626 Abort("DoOsrEntry unimplemented."); | 2631 Abort("DoOsrEntry unimplemented."); |
| 2627 } | 2632 } |
| 2628 | 2633 |
| 2629 | 2634 |
| 2630 #undef __ | 2635 #undef __ |
| 2631 | 2636 |
| 2632 } } // namespace v8::internal | 2637 } } // namespace v8::internal |
| OLD | NEW |