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

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

Issue 400743002: MIPS: StubCallInterfaceDescriptor and CallInterfaceDescriptor are unified under a base class Interf… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/mips/lithium-mips.h ('k') | src/mips64/code-stubs-mips64.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/hydrogen-osr.h" 7 #include "src/hydrogen-osr.h"
8 #include "src/lithium-allocator-inl.h" 8 #include "src/lithium-allocator-inl.h"
9 #include "src/mips/lithium-codegen-mips.h" 9 #include "src/mips/lithium-codegen-mips.h"
10 #include "src/mips/lithium-mips.h" 10 #include "src/mips/lithium-mips.h"
(...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 LOperand* function = UseFixed(instr->function(), a1); 1079 LOperand* function = UseFixed(instr->function(), a1);
1080 1080
1081 LCallJSFunction* result = new(zone()) LCallJSFunction(function); 1081 LCallJSFunction* result = new(zone()) LCallJSFunction(function);
1082 1082
1083 return MarkAsCall(DefineFixed(result, v0), instr); 1083 return MarkAsCall(DefineFixed(result, v0), instr);
1084 } 1084 }
1085 1085
1086 1086
1087 LInstruction* LChunkBuilder::DoCallWithDescriptor( 1087 LInstruction* LChunkBuilder::DoCallWithDescriptor(
1088 HCallWithDescriptor* instr) { 1088 HCallWithDescriptor* instr) {
1089 const CallInterfaceDescriptor* descriptor = instr->descriptor(); 1089 const InterfaceDescriptor* descriptor = instr->descriptor();
1090 1090
1091 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); 1091 LOperand* target = UseRegisterOrConstantAtStart(instr->target());
1092 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); 1092 ZoneList<LOperand*> ops(instr->OperandCount(), zone());
1093 ops.Add(target, zone()); 1093 ops.Add(target, zone());
1094 for (int i = 1; i < instr->OperandCount(); i++) { 1094 for (int i = 1; i < instr->OperandCount(); i++) {
1095 LOperand* op = UseFixed(instr->OperandAt(i), 1095 LOperand* op = UseFixed(instr->OperandAt(i),
1096 descriptor->GetParameterRegister(i - 1)); 1096 descriptor->GetParameterRegister(i - 1));
1097 ops.Add(op, zone()); 1097 ops.Add(op, zone());
1098 } 1098 }
1099 1099
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
2350 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2350 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2351 LParameter* result = new(zone()) LParameter; 2351 LParameter* result = new(zone()) LParameter;
2352 if (instr->kind() == HParameter::STACK_PARAMETER) { 2352 if (instr->kind() == HParameter::STACK_PARAMETER) {
2353 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2353 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2354 return DefineAsSpilled(result, spill_index); 2354 return DefineAsSpilled(result, spill_index);
2355 } else { 2355 } else {
2356 ASSERT(info()->IsStub()); 2356 ASSERT(info()->IsStub());
2357 CodeStubInterfaceDescriptor* descriptor = 2357 CodeStubInterfaceDescriptor* descriptor =
2358 info()->code_stub()->GetInterfaceDescriptor(); 2358 info()->code_stub()->GetInterfaceDescriptor();
2359 int index = static_cast<int>(instr->index()); 2359 int index = static_cast<int>(instr->index());
2360 Register reg = descriptor->GetParameterRegister(index); 2360 Register reg = descriptor->GetEnvironmentParameterRegister(index);
2361 return DefineFixed(result, reg); 2361 return DefineFixed(result, reg);
2362 } 2362 }
2363 } 2363 }
2364 2364
2365 2365
2366 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2366 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2367 // Use an index that corresponds to the location in the unoptimized frame, 2367 // Use an index that corresponds to the location in the unoptimized frame,
2368 // which the optimized frame will subsume. 2368 // which the optimized frame will subsume.
2369 int env_index = instr->index(); 2369 int env_index = instr->index();
2370 int spill_index = 0; 2370 int spill_index = 0;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2536 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2537 HAllocateBlockContext* instr) { 2537 HAllocateBlockContext* instr) {
2538 LOperand* context = UseFixed(instr->context(), cp); 2538 LOperand* context = UseFixed(instr->context(), cp);
2539 LOperand* function = UseRegisterAtStart(instr->function()); 2539 LOperand* function = UseRegisterAtStart(instr->function());
2540 LAllocateBlockContext* result = 2540 LAllocateBlockContext* result =
2541 new(zone()) LAllocateBlockContext(context, function); 2541 new(zone()) LAllocateBlockContext(context, function);
2542 return MarkAsCall(DefineFixed(result, cp), instr); 2542 return MarkAsCall(DefineFixed(result, cp), instr);
2543 } 2543 }
2544 2544
2545 } } // namespace v8::internal 2545 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698