| 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 2776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2787 ASSERT(ToRegister(instr->value()).is(a0)); | 2787 ASSERT(ToRegister(instr->value()).is(a0)); |
| 2788 | 2788 |
| 2789 __ li(a2, Operand(instr->name())); | 2789 __ li(a2, Operand(instr->name())); |
| 2790 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2790 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
| 2791 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2791 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
| 2792 : isolate()->builtins()->StoreIC_Initialize(); | 2792 : isolate()->builtins()->StoreIC_Initialize(); |
| 2793 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2793 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
| 2794 } | 2794 } |
| 2795 | 2795 |
| 2796 | 2796 |
| 2797 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { |
| 2798 Register object = ToRegister(instr->object()); |
| 2799 ExternalReference sites_list_address = instr->GetReference(isolate()); |
| 2800 |
| 2801 __ li(at, Operand(sites_list_address)); |
| 2802 __ lw(at, MemOperand(at)); |
| 2803 __ sw(at, FieldMemOperand(object, |
| 2804 instr->hydrogen()->store_field().offset())); |
| 2805 __ li(at, Operand(sites_list_address)); |
| 2806 __ sw(object, MemOperand(at)); |
| 2807 } |
| 2808 |
| 2809 |
| 2797 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2810 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
| 2798 Register context = ToRegister(instr->context()); | 2811 Register context = ToRegister(instr->context()); |
| 2799 Register result = ToRegister(instr->result()); | 2812 Register result = ToRegister(instr->result()); |
| 2800 | 2813 |
| 2801 __ lw(result, ContextOperand(context, instr->slot_index())); | 2814 __ lw(result, ContextOperand(context, instr->slot_index())); |
| 2802 if (instr->hydrogen()->RequiresHoleCheck()) { | 2815 if (instr->hydrogen()->RequiresHoleCheck()) { |
| 2803 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); | 2816 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); |
| 2804 | 2817 |
| 2805 if (instr->hydrogen()->DeoptimizesOnHole()) { | 2818 if (instr->hydrogen()->DeoptimizesOnHole()) { |
| 2806 DeoptimizeIf(eq, instr->environment(), result, Operand(at)); | 2819 DeoptimizeIf(eq, instr->environment(), result, Operand(at)); |
| (...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5794 __ Subu(scratch, result, scratch); | 5807 __ Subu(scratch, result, scratch); |
| 5795 __ lw(result, FieldMemOperand(scratch, | 5808 __ lw(result, FieldMemOperand(scratch, |
| 5796 FixedArray::kHeaderSize - kPointerSize)); | 5809 FixedArray::kHeaderSize - kPointerSize)); |
| 5797 __ bind(&done); | 5810 __ bind(&done); |
| 5798 } | 5811 } |
| 5799 | 5812 |
| 5800 | 5813 |
| 5801 #undef __ | 5814 #undef __ |
| 5802 | 5815 |
| 5803 } } // namespace v8::internal | 5816 } } // namespace v8::internal |
| OLD | NEW |