| 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 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2803 ASSERT(ToRegister(instr->value()).is(a0)); | 2803 ASSERT(ToRegister(instr->value()).is(a0)); |
| 2804 | 2804 |
| 2805 __ li(a2, Operand(instr->name())); | 2805 __ li(a2, Operand(instr->name())); |
| 2806 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2806 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
| 2807 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2807 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
| 2808 : isolate()->builtins()->StoreIC_Initialize(); | 2808 : isolate()->builtins()->StoreIC_Initialize(); |
| 2809 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2809 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
| 2810 } | 2810 } |
| 2811 | 2811 |
| 2812 | 2812 |
| 2813 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { | |
| 2814 Register object = ToRegister(instr->object()); | |
| 2815 ExternalReference sites_list_address = instr->GetReference(isolate()); | |
| 2816 | |
| 2817 __ li(at, Operand(sites_list_address)); | |
| 2818 __ lw(at, MemOperand(at)); | |
| 2819 __ sw(at, FieldMemOperand(object, | |
| 2820 instr->hydrogen()->store_field().offset())); | |
| 2821 __ li(at, Operand(sites_list_address)); | |
| 2822 __ sw(object, MemOperand(at)); | |
| 2823 } | |
| 2824 | |
| 2825 | |
| 2826 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2813 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
| 2827 Register context = ToRegister(instr->context()); | 2814 Register context = ToRegister(instr->context()); |
| 2828 Register result = ToRegister(instr->result()); | 2815 Register result = ToRegister(instr->result()); |
| 2829 | 2816 |
| 2830 __ lw(result, ContextOperand(context, instr->slot_index())); | 2817 __ lw(result, ContextOperand(context, instr->slot_index())); |
| 2831 if (instr->hydrogen()->RequiresHoleCheck()) { | 2818 if (instr->hydrogen()->RequiresHoleCheck()) { |
| 2832 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); | 2819 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
| 2833 | 2820 |
| 2834 if (instr->hydrogen()->DeoptimizesOnHole()) { | 2821 if (instr->hydrogen()->DeoptimizesOnHole()) { |
| 2835 DeoptimizeIf(eq, instr->environment(), result, Operand(at)); | 2822 DeoptimizeIf(eq, instr->environment(), result, Operand(at)); |
| (...skipping 3024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5860 __ Subu(scratch, result, scratch); | 5847 __ Subu(scratch, result, scratch); |
| 5861 __ lw(result, FieldMemOperand(scratch, | 5848 __ lw(result, FieldMemOperand(scratch, |
| 5862 FixedArray::kHeaderSize - kPointerSize)); | 5849 FixedArray::kHeaderSize - kPointerSize)); |
| 5863 __ bind(&done); | 5850 __ bind(&done); |
| 5864 } | 5851 } |
| 5865 | 5852 |
| 5866 | 5853 |
| 5867 #undef __ | 5854 #undef __ |
| 5868 | 5855 |
| 5869 } } // namespace v8::internal | 5856 } } // namespace v8::internal |
| OLD | NEW |