OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 2585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2596 ASSERT(ToRegister(instr->value()).is(rax)); | 2596 ASSERT(ToRegister(instr->value()).is(rax)); |
2597 | 2597 |
2598 __ Move(rcx, instr->name()); | 2598 __ Move(rcx, instr->name()); |
2599 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2599 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) |
2600 ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2600 ? isolate()->builtins()->StoreIC_Initialize_Strict() |
2601 : isolate()->builtins()->StoreIC_Initialize(); | 2601 : isolate()->builtins()->StoreIC_Initialize(); |
2602 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2602 CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); |
2603 } | 2603 } |
2604 | 2604 |
2605 | 2605 |
| 2606 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { |
| 2607 Register object = ToRegister(instr->object()); |
| 2608 ExternalReference sites_list_address = instr->GetReference(isolate()); |
| 2609 __ Load(kScratchRegister, sites_list_address); |
| 2610 __ movq(FieldOperand(object, instr->hydrogen()->store_field().offset()), |
| 2611 kScratchRegister); |
| 2612 __ Store(sites_list_address, object); |
| 2613 } |
| 2614 |
| 2615 |
2606 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2616 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { |
2607 Register context = ToRegister(instr->context()); | 2617 Register context = ToRegister(instr->context()); |
2608 Register result = ToRegister(instr->result()); | 2618 Register result = ToRegister(instr->result()); |
2609 __ movq(result, ContextOperand(context, instr->slot_index())); | 2619 __ movq(result, ContextOperand(context, instr->slot_index())); |
2610 if (instr->hydrogen()->RequiresHoleCheck()) { | 2620 if (instr->hydrogen()->RequiresHoleCheck()) { |
2611 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 2621 __ CompareRoot(result, Heap::kTheHoleValueRootIndex); |
2612 if (instr->hydrogen()->DeoptimizesOnHole()) { | 2622 if (instr->hydrogen()->DeoptimizesOnHole()) { |
2613 DeoptimizeIf(equal, instr->environment()); | 2623 DeoptimizeIf(equal, instr->environment()); |
2614 } else { | 2624 } else { |
2615 Label is_not_hole; | 2625 Label is_not_hole; |
(...skipping 2900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5516 FixedArray::kHeaderSize - kPointerSize)); | 5526 FixedArray::kHeaderSize - kPointerSize)); |
5517 __ bind(&done); | 5527 __ bind(&done); |
5518 } | 5528 } |
5519 | 5529 |
5520 | 5530 |
5521 #undef __ | 5531 #undef __ |
5522 | 5532 |
5523 } } // namespace v8::internal | 5533 } } // namespace v8::internal |
5524 | 5534 |
5525 #endif // V8_TARGET_ARCH_X64 | 5535 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |