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

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

Issue 384403002: StubCallInterfaceDescriptor takes a context register. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code comments and ports. Created 6 years, 5 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
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | 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 #include "src/arm/lithium-arm.h" 7 #include "src/arm/lithium-arm.h"
8 #include "src/arm/lithium-codegen-arm.h" 8 #include "src/arm/lithium-codegen-arm.h"
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-allocator-inl.h" 10 #include "src/lithium-allocator-inl.h"
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 LOperand* function = UseFixed(instr->function(), r1); 1076 LOperand* function = UseFixed(instr->function(), r1);
1077 1077
1078 LCallJSFunction* result = new(zone()) LCallJSFunction(function); 1078 LCallJSFunction* result = new(zone()) LCallJSFunction(function);
1079 1079
1080 return MarkAsCall(DefineFixed(result, r0), instr); 1080 return MarkAsCall(DefineFixed(result, r0), instr);
1081 } 1081 }
1082 1082
1083 1083
1084 LInstruction* LChunkBuilder::DoCallWithDescriptor( 1084 LInstruction* LChunkBuilder::DoCallWithDescriptor(
1085 HCallWithDescriptor* instr) { 1085 HCallWithDescriptor* instr) {
1086 const CallInterfaceDescriptor* descriptor = instr->descriptor(); 1086 const InterfaceDescriptor* descriptor = instr->descriptor();
1087 1087
1088 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); 1088 LOperand* target = UseRegisterOrConstantAtStart(instr->target());
1089 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); 1089 ZoneList<LOperand*> ops(instr->OperandCount(), zone());
1090 ops.Add(target, zone()); 1090 ops.Add(target, zone());
1091 for (int i = 1; i < instr->OperandCount(); i++) { 1091 for (int i = 1; i < instr->OperandCount(); i++) {
1092 LOperand* op = UseFixed(instr->OperandAt(i), 1092 LOperand* op = UseFixed(instr->OperandAt(i),
1093 descriptor->GetParameterRegister(i - 1)); 1093 descriptor->GetParameterRegister(i - 1));
1094 ops.Add(op, zone()); 1094 ops.Add(op, zone());
1095 } 1095 }
1096 1096
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2404 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2405 LParameter* result = new(zone()) LParameter; 2405 LParameter* result = new(zone()) LParameter;
2406 if (instr->kind() == HParameter::STACK_PARAMETER) { 2406 if (instr->kind() == HParameter::STACK_PARAMETER) {
2407 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2407 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2408 return DefineAsSpilled(result, spill_index); 2408 return DefineAsSpilled(result, spill_index);
2409 } else { 2409 } else {
2410 ASSERT(info()->IsStub()); 2410 ASSERT(info()->IsStub());
2411 CodeStubInterfaceDescriptor* descriptor = 2411 CodeStubInterfaceDescriptor* descriptor =
2412 info()->code_stub()->GetInterfaceDescriptor(); 2412 info()->code_stub()->GetInterfaceDescriptor();
2413 int index = static_cast<int>(instr->index()); 2413 int index = static_cast<int>(instr->index());
2414 Register reg = descriptor->GetParameterRegister(index); 2414 Register reg = descriptor->GetEnvironmentParameterRegister(index);
2415 return DefineFixed(result, reg); 2415 return DefineFixed(result, reg);
2416 } 2416 }
2417 } 2417 }
2418 2418
2419 2419
2420 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2420 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2421 // Use an index that corresponds to the location in the unoptimized frame, 2421 // Use an index that corresponds to the location in the unoptimized frame,
2422 // which the optimized frame will subsume. 2422 // which the optimized frame will subsume.
2423 int env_index = instr->index(); 2423 int env_index = instr->index();
2424 int spill_index = 0; 2424 int spill_index = 0;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2589 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2590 HAllocateBlockContext* instr) { 2590 HAllocateBlockContext* instr) {
2591 LOperand* context = UseFixed(instr->context(), cp); 2591 LOperand* context = UseFixed(instr->context(), cp);
2592 LOperand* function = UseRegisterAtStart(instr->function()); 2592 LOperand* function = UseRegisterAtStart(instr->function());
2593 LAllocateBlockContext* result = 2593 LAllocateBlockContext* result =
2594 new(zone()) LAllocateBlockContext(context, function); 2594 new(zone()) LAllocateBlockContext(context, function);
2595 return MarkAsCall(DefineFixed(result, cp), instr); 2595 return MarkAsCall(DefineFixed(result, cp), instr);
2596 } 2596 }
2597 2597
2598 } } // namespace v8::internal 2598 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698