| 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 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2627   ASSERT(ToRegister(instr->value()).is(rax)); | 2627   ASSERT(ToRegister(instr->value()).is(rax)); | 
| 2628 | 2628 | 
| 2629   __ Move(rcx, instr->name()); | 2629   __ Move(rcx, instr->name()); | 
| 2630   Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 2630   Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) | 
| 2631       ? isolate()->builtins()->StoreIC_Initialize_Strict() | 2631       ? isolate()->builtins()->StoreIC_Initialize_Strict() | 
| 2632       : isolate()->builtins()->StoreIC_Initialize(); | 2632       : isolate()->builtins()->StoreIC_Initialize(); | 
| 2633   CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 2633   CallCode(ic, RelocInfo::CODE_TARGET_CONTEXT, instr); | 
| 2634 } | 2634 } | 
| 2635 | 2635 | 
| 2636 | 2636 | 
| 2637 void LCodeGen::DoLinkObjectInList(LLinkObjectInList* instr) { |  | 
| 2638   Register object = ToRegister(instr->object()); |  | 
| 2639   ExternalReference sites_list_address = instr->GetReference(isolate()); |  | 
| 2640   __ Load(kScratchRegister, sites_list_address); |  | 
| 2641   __ movq(FieldOperand(object, instr->hydrogen()->store_field().offset()), |  | 
| 2642           kScratchRegister); |  | 
| 2643   __ Store(sites_list_address, object); |  | 
| 2644 } |  | 
| 2645 |  | 
| 2646 |  | 
| 2647 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 2637 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { | 
| 2648   Register context = ToRegister(instr->context()); | 2638   Register context = ToRegister(instr->context()); | 
| 2649   Register result = ToRegister(instr->result()); | 2639   Register result = ToRegister(instr->result()); | 
| 2650   __ movq(result, ContextOperand(context, instr->slot_index())); | 2640   __ movq(result, ContextOperand(context, instr->slot_index())); | 
| 2651   if (instr->hydrogen()->RequiresHoleCheck()) { | 2641   if (instr->hydrogen()->RequiresHoleCheck()) { | 
| 2652     __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 2642     __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 
| 2653     if (instr->hydrogen()->DeoptimizesOnHole()) { | 2643     if (instr->hydrogen()->DeoptimizesOnHole()) { | 
| 2654       DeoptimizeIf(equal, instr->environment()); | 2644       DeoptimizeIf(equal, instr->environment()); | 
| 2655     } else { | 2645     } else { | 
| 2656       Label is_not_hole; | 2646       Label is_not_hole; | 
| (...skipping 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5575                                FixedArray::kHeaderSize - kPointerSize)); | 5565                                FixedArray::kHeaderSize - kPointerSize)); | 
| 5576   __ bind(&done); | 5566   __ bind(&done); | 
| 5577 } | 5567 } | 
| 5578 | 5568 | 
| 5579 | 5569 | 
| 5580 #undef __ | 5570 #undef __ | 
| 5581 | 5571 | 
| 5582 } }  // namespace v8::internal | 5572 } }  // namespace v8::internal | 
| 5583 | 5573 | 
| 5584 #endif  // V8_TARGET_ARCH_X64 | 5574 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|