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

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

Issue 554023002: MIPS: 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
« no previous file with comments | « src/mips64/deoptimizer-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 2387 matching lines...) Expand 10 before | Expand all | Expand 10 after
2398 } 2398 }
2399 2399
2400 2400
2401 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2401 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2402 LParameter* result = new(zone()) LParameter; 2402 LParameter* result = new(zone()) LParameter;
2403 if (instr->kind() == HParameter::STACK_PARAMETER) { 2403 if (instr->kind() == HParameter::STACK_PARAMETER) {
2404 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2404 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2405 return DefineAsSpilled(result, spill_index); 2405 return DefineAsSpilled(result, spill_index);
2406 } else { 2406 } else {
2407 DCHECK(info()->IsStub()); 2407 DCHECK(info()->IsStub());
2408 CodeStubInterfaceDescriptor descriptor(info()->code_stub()); 2408 CallInterfaceDescriptor descriptor =
2409 info()->code_stub()->GetCallInterfaceDescriptor();
2409 int index = static_cast<int>(instr->index()); 2410 int index = static_cast<int>(instr->index());
2410 Register reg = descriptor.GetEnvironmentParameterRegister(index); 2411 Register reg = descriptor.GetEnvironmentParameterRegister(index);
2411 return DefineFixed(result, reg); 2412 return DefineFixed(result, reg);
2412 } 2413 }
2413 } 2414 }
2414 2415
2415 2416
2416 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2417 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2417 // Use an index that corresponds to the location in the unoptimized frame, 2418 // Use an index that corresponds to the location in the unoptimized frame,
2418 // which the optimized frame will subsume. 2419 // which the optimized frame will subsume.
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2589 LOperand* function = UseRegisterAtStart(instr->function()); 2590 LOperand* function = UseRegisterAtStart(instr->function());
2590 LAllocateBlockContext* result = 2591 LAllocateBlockContext* result =
2591 new(zone()) LAllocateBlockContext(context, function); 2592 new(zone()) LAllocateBlockContext(context, function);
2592 return MarkAsCall(DefineFixed(result, cp), instr); 2593 return MarkAsCall(DefineFixed(result, cp), instr);
2593 } 2594 }
2594 2595
2595 2596
2596 } } // namespace v8::internal 2597 } } // namespace v8::internal
2597 2598
2598 #endif // V8_TARGET_ARCH_MIPS64 2599 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/deoptimizer-mips64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698