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 2920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2931 ASSERT(ToRegister(instr->value()).is(r0)); | 2931 ASSERT(ToRegister(instr->value()).is(r0)); |
2932 | 2932 |
2933 __ mov(r2, Operand(instr->name())); | 2933 __ mov(r2, Operand(instr->name())); |
2934 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2934 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
2935 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2935 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
2936 : isolate()->builtins()->StoreIC_Initialize(); | 2936 : isolate()->builtins()->StoreIC_Initialize(); |
2937 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2937 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
2938 } | 2938 } |
2939 | 2939 |
2940 | 2940 |
2941 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { | |
2942 Register object = ToRegister(instr->object()); | |
2943 ExternalReference sites_list_address = instr->GetReference(isolate()); | |
2944 | |
2945 __ mov(ip, Operand(sites_list_address)); | |
2946 __ ldr(ip, MemOperand(ip)); | |
2947 __ str(ip, FieldMemOperand(object, | |
2948 instr->hydrogen()->store_field().offset())); | |
2949 __ mov(ip, Operand(sites_list_address)); | |
2950 __ str(object, MemOperand(ip)); | |
2951 } | |
2952 | |
2953 | |
2954 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2941 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2955 Register context = ToRegister(instr->context()); | 2942 Register context = ToRegister(instr->context()); |
2956 Register result = ToRegister(instr->result()); | 2943 Register result = ToRegister(instr->result()); |
2957 __ ldr(result, ContextOperand(context, instr->slot_index())); | 2944 __ ldr(result, ContextOperand(context, instr->slot_index())); |
2958 if (instr->hydrogen()->RequiresHoleCheck()) { | 2945 if (instr->hydrogen()->RequiresHoleCheck()) { |
2959 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); | 2946 __ LoadRoot(ip, Heap::kTheHoleValueRootIndex); |
2960 __ cmp(result, ip); | 2947 __ cmp(result, ip); |
2961 if (instr->hydrogen()->DeoptimizesOnHole()) { | 2948 if (instr->hydrogen()->DeoptimizesOnHole()) { |
2962 DeoptimizeIf(eq, instr->environment()); | 2949 DeoptimizeIf(eq, instr->environment()); |
2963 } else { | 2950 } else { |
(...skipping 2878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5842 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5829 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
5843 __ ldr(result, FieldMemOperand(scratch, | 5830 __ ldr(result, FieldMemOperand(scratch, |
5844 FixedArray::kHeaderSize - kPointerSize)); | 5831 FixedArray::kHeaderSize - kPointerSize)); |
5845 __ bind(&done); | 5832 __ bind(&done); |
5846 } | 5833 } |
5847 | 5834 |
5848 | 5835 |
5849 #undef __ | 5836 #undef __ |
5850 | 5837 |
5851 } } // namespace v8::internal | 5838 } } // namespace v8::internal |
OLD | NEW |