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

Side by Side Diff: src/arm/lithium-arm.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
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 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/hydrogen-osr.h" 8 #include "src/hydrogen-osr.h"
9 #include "src/lithium-inl.h" 9 #include "src/lithium-inl.h"
10 10
(...skipping 2438 matching lines...) Expand 10 before | Expand all | Expand 10 after
2449 } 2449 }
2450 2450
2451 2451
2452 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2452 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2453 LParameter* result = new(zone()) LParameter; 2453 LParameter* result = new(zone()) LParameter;
2454 if (instr->kind() == HParameter::STACK_PARAMETER) { 2454 if (instr->kind() == HParameter::STACK_PARAMETER) {
2455 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2455 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2456 return DefineAsSpilled(result, spill_index); 2456 return DefineAsSpilled(result, spill_index);
2457 } else { 2457 } else {
2458 DCHECK(info()->IsStub()); 2458 DCHECK(info()->IsStub());
2459 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); 2459 CallInterfaceDescriptor descriptor =
2460 info()->code_stub()->GetCallInterfaceDescriptor();
2460 int index = static_cast<int>(instr->index()); 2461 int index = static_cast<int>(instr->index());
2461 Register reg = descriptor.GetEnvironmentParameterRegister(index); 2462 Register reg = descriptor.GetEnvironmentParameterRegister(index);
2462 return DefineFixed(result, reg); 2463 return DefineFixed(result, reg);
2463 } 2464 }
2464 } 2465 }
2465 2466
2466 2467
2467 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2468 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2468 // Use an index that corresponds to the location in the unoptimized frame, 2469 // Use an index that corresponds to the location in the unoptimized frame,
2469 // which the optimized frame will subsume. 2470 // which the optimized frame will subsume.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2637 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2638 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2638 HAllocateBlockContext* instr) { 2639 HAllocateBlockContext* instr) {
2639 LOperand* context = UseFixed(instr->context(), cp); 2640 LOperand* context = UseFixed(instr->context(), cp);
2640 LOperand* function = UseRegisterAtStart(instr->function()); 2641 LOperand* function = UseRegisterAtStart(instr->function());
2641 LAllocateBlockContext* result = 2642 LAllocateBlockContext* result =
2642 new(zone()) LAllocateBlockContext(context, function); 2643 new(zone()) LAllocateBlockContext(context, function);
2643 return MarkAsCall(DefineFixed(result, cp), instr); 2644 return MarkAsCall(DefineFixed(result, cp), instr);
2644 } 2645 }
2645 2646
2646 } } // namespace v8::internal 2647 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | src/code-stubs.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698