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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.cc

Issue 1604543002: [compiler] Remove CodeStub from CompilationInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 4 years, 11 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
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/x64/lithium-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/crankshaft/ppc/lithium-ppc.h" 5 #include "src/crankshaft/ppc/lithium-ppc.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/lithium-inl.h" 10 #include "src/crankshaft/lithium-inl.h"
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 } 2395 }
2396 2396
2397 2397
2398 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2398 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2399 LParameter* result = new (zone()) LParameter; 2399 LParameter* result = new (zone()) LParameter;
2400 if (instr->kind() == HParameter::STACK_PARAMETER) { 2400 if (instr->kind() == HParameter::STACK_PARAMETER) {
2401 int spill_index = chunk()->GetParameterStackSlot(instr->index()); 2401 int spill_index = chunk()->GetParameterStackSlot(instr->index());
2402 return DefineAsSpilled(result, spill_index); 2402 return DefineAsSpilled(result, spill_index);
2403 } else { 2403 } else {
2404 DCHECK(info()->IsStub()); 2404 DCHECK(info()->IsStub());
2405 CallInterfaceDescriptor descriptor = 2405 CallInterfaceDescriptor descriptor = graph()->descriptor();
2406 info()->code_stub()->GetCallInterfaceDescriptor();
2407 int index = static_cast<int>(instr->index()); 2406 int index = static_cast<int>(instr->index());
2408 Register reg = descriptor.GetRegisterParameter(index); 2407 Register reg = descriptor.GetRegisterParameter(index);
2409 return DefineFixed(result, reg); 2408 return DefineFixed(result, reg);
2410 } 2409 }
2411 } 2410 }
2412 2411
2413 2412
2414 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) { 2413 LInstruction* LChunkBuilder::DoUnknownOSRValue(HUnknownOSRValue* instr) {
2415 // Use an index that corresponds to the location in the unoptimized frame, 2414 // Use an index that corresponds to the location in the unoptimized frame,
2416 // which the optimized frame will subsume. 2415 // which the optimized frame will subsume.
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
2578 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2577 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2579 HAllocateBlockContext* instr) { 2578 HAllocateBlockContext* instr) {
2580 LOperand* context = UseFixed(instr->context(), cp); 2579 LOperand* context = UseFixed(instr->context(), cp);
2581 LOperand* function = UseRegisterAtStart(instr->function()); 2580 LOperand* function = UseRegisterAtStart(instr->function());
2582 LAllocateBlockContext* result = 2581 LAllocateBlockContext* result =
2583 new (zone()) LAllocateBlockContext(context, function); 2582 new (zone()) LAllocateBlockContext(context, function);
2584 return MarkAsCall(DefineFixed(result, cp), instr); 2583 return MarkAsCall(DefineFixed(result, cp), instr);
2585 } 2584 }
2586 } // namespace internal 2585 } // namespace internal
2587 } // namespace v8 2586 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.cc ('k') | src/crankshaft/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698