| 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 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2551       __ movsd(XMMRegister::FromAllocationIndex(save_iterator.Current()), | 2551       __ movsd(XMMRegister::FromAllocationIndex(save_iterator.Current()), | 
| 2552                MemOperand(rsp, count * kDoubleSize)); | 2552                MemOperand(rsp, count * kDoubleSize)); | 
| 2553       save_iterator.Advance(); | 2553       save_iterator.Advance(); | 
| 2554       count++; | 2554       count++; | 
| 2555     } | 2555     } | 
| 2556   } | 2556   } | 
| 2557   if (NeedsEagerFrame()) { | 2557   if (NeedsEagerFrame()) { | 
| 2558     __ movq(rsp, rbp); | 2558     __ movq(rsp, rbp); | 
| 2559     __ pop(rbp); | 2559     __ pop(rbp); | 
| 2560   } | 2560   } | 
| 2561   if (info()->IsStub()) { | 2561   if (instr->has_constant_parameter_count()) { | 
| 2562     __ Ret(0, r10); | 2562     __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, | 
|  | 2563            rcx); | 
| 2563   } else { | 2564   } else { | 
| 2564     __ Ret((GetParameterCount() + 1) * kPointerSize, rcx); | 2565     Register reg = ToRegister(instr->parameter_count()); | 
|  | 2566     Register return_addr_reg = reg.is(rcx) ? rbx : rcx; | 
|  | 2567     __ pop(return_addr_reg); | 
|  | 2568     __ shl(reg, Immediate(kPointerSizeLog2)); | 
|  | 2569     __ addq(rsp, reg); | 
|  | 2570     __ jmp(return_addr_reg); | 
| 2565   } | 2571   } | 
| 2566 } | 2572 } | 
| 2567 | 2573 | 
| 2568 | 2574 | 
| 2569 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { | 2575 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { | 
| 2570   Register result = ToRegister(instr->result()); | 2576   Register result = ToRegister(instr->result()); | 
| 2571   __ LoadGlobalCell(result, instr->hydrogen()->cell()); | 2577   __ LoadGlobalCell(result, instr->hydrogen()->cell()); | 
| 2572   if (instr->hydrogen()->RequiresHoleCheck()) { | 2578   if (instr->hydrogen()->RequiresHoleCheck()) { | 
| 2573     __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 2579     __ CompareRoot(result, Heap::kTheHoleValueRootIndex); | 
| 2574     DeoptimizeIf(equal, instr->environment()); | 2580     DeoptimizeIf(equal, instr->environment()); | 
| (...skipping 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5834                                FixedArray::kHeaderSize - kPointerSize)); | 5840                                FixedArray::kHeaderSize - kPointerSize)); | 
| 5835   __ bind(&done); | 5841   __ bind(&done); | 
| 5836 } | 5842 } | 
| 5837 | 5843 | 
| 5838 | 5844 | 
| 5839 #undef __ | 5845 #undef __ | 
| 5840 | 5846 | 
| 5841 } }  // namespace v8::internal | 5847 } }  // namespace v8::internal | 
| 5842 | 5848 | 
| 5843 #endif  // V8_TARGET_ARCH_X64 | 5849 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|