Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(551)

Side by Side Diff: src/x64/lithium-x64.cc

Issue 552803002: Get CallInterfaceDescriptor directly from CodeStub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/x64/code-stubs-x64.cc ('K') | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 2476 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 } 2487 }
2488 2488
2489 2489
2490 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2490 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2491 LParameter* result = new(zone()) LParameter; 2491 LParameter* result = new(zone()) LParameter;
2492 if (instr->kind() == HParameter::STACK_PARAMETER) { 2492 if (instr->kind() == HParameter::STACK_PARAMETER) {
2493 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2493 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2494 return DefineAsSpilled(result, spill_index); 2494 return DefineAsSpilled(result, spill_index);
2495 } else { 2495 } else {
2496 DCHECK(info()->IsStub()); 2496 DCHECK(info()->IsStub());
2497 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); 2497 CallInterfaceDescriptor descriptor =
2498 info()->code_stub()->GetCallInterfaceDescriptor();
2498 int index = static_cast<int>(instr->index()); 2499 int index = static_cast<int>(instr->index());
2499 Register reg = descriptor.GetEnvironmentParameterRegister(index); 2500 Register reg = descriptor.GetEnvironmentParameterRegister(index);
2500 return DefineFixed(result, reg); 2501 return DefineFixed(result, reg);
2501 } 2502 }
2502 } 2503 }
2503 2504
2504 2505
2505 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2506 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2506 // Use an index that corresponds to the location in the unoptimized frame, 2507 // Use an index that corresponds to the location in the unoptimized frame,
2507 // which the optimized frame will subsume. 2508 // which the optimized frame will subsume.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
2689 LOperand* function = UseRegisterAtStart(instr->function()); 2690 LOperand* function = UseRegisterAtStart(instr->function());
2690 LAllocateBlockContext* result = 2691 LAllocateBlockContext* result =
2691 new(zone()) LAllocateBlockContext(context, function); 2692 new(zone()) LAllocateBlockContext(context, function);
2692 return MarkAsCall(DefineFixed(result, rsi), instr); 2693 return MarkAsCall(DefineFixed(result, rsi), instr);
2693 } 2694 }
2694 2695
2695 2696
2696 } } // namespace v8::internal 2697 } } // namespace v8::internal
2697 2698
2698 #endif // V8_TARGET_ARCH_X64 2699 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/x64/code-stubs-x64.cc ('K') | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698