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 2912 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2923 ASSERT(ToRegister(instr->value()).is(r0)); | 2923 ASSERT(ToRegister(instr->value()).is(r0)); |
2924 | 2924 |
2925 __ mov(r2, Operand(instr->name())); | 2925 __ mov(r2, Operand(instr->name())); |
2926 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2926 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
2927 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2927 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
2928 : isolate()->builtins()->StoreIC_Initialize(); | 2928 : isolate()->builtins()->StoreIC_Initialize(); |
2929 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2929 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
2930 } | 2930 } |
2931 | 2931 |
2932 | 2932 |
| 2933 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { |
| 2934 Register object = ToRegister(instr->object()); |
| 2935 ExternalReference sites_list_address = instr->GetReference(isolate()); |
| 2936 |
| 2937 __ mov(ip, Operand(sites_list_address)); |
| 2938 __ ldr(ip, MemOperand(ip)); |
| 2939 __ str(ip, FieldMemOperand(object, |
| 2940 instr->hydrogen()->store_field().offset())); |
| 2941 __ mov(ip, Operand(sites_list_address)); |
| 2942 __ str(object, MemOperand(ip)); |
| 2943 } |
| 2944 |
| 2945 |
2933 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2946 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2934 Register context = ToRegister(instr->context()); | 2947 Register context = ToRegister(instr->context()); |
2935 Register result = ToRegister(instr->result()); | 2948 Register result = ToRegister(instr->result()); |
2936 __ ldr(result, ContextOperand(context, instr->slot_index())); | 2949 __ ldr(result, ContextOperand(context, instr->slot_index())); |
2937 if (instr->hydrogen()->RequiresHoleCheck()) { | 2950 if (instr->hydrogen()->RequiresHoleCheck()) { |
2938 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); | 2951 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
2939 __ cmp(result, ip); | 2952 __ cmp(result, ip); |
2940 if (instr->hydrogen()->DeoptimizesOnHole()) { | 2953 if (instr->hydrogen()->DeoptimizesOnHole()) { |
2941 DeoptimizeIf(eq, instr->environment()); | 2954 DeoptimizeIf(eq, instr->environment()); |
2942 } else { | 2955 } else { |
(...skipping 2853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5796 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5809 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5797 __ ldr(result, FieldMemOperand(scratch, | 5810 __ ldr(result, FieldMemOperand(scratch, |
5798 FixedArray::kHeaderSize - kPointerSize)); | 5811 FixedArray::kHeaderSize - kPointerSize)); |
5799 __ bind(&done); | 5812 __ bind(&done); |
5800 } | 5813 } |
5801 | 5814 |
5802 | 5815 |
5803 #undef __ | 5816 #undef __ |
5804 | 5817 |
5805 } } // namespace v8::internal | 5818 } } // namespace v8::internal |
OLD | NEW |