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

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

Issue 1132513007: PPC: Now that vector ics are established for load, keyed load and call ics, let's remove dead code … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/ppc/lithium-ppc.h ('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 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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
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 1093 matching lines...) Expand 10 before | Expand all | Expand 10 after
1104 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1)); 1104 UseFixed(instr->OperandAt(i), descriptor.GetParameterRegister(i - 1));
1105 ops.Add(op, zone()); 1105 ops.Add(op, zone());
1106 } 1106 }
1107 1107
1108 LCallWithDescriptor* result = 1108 LCallWithDescriptor* result =
1109 new (zone()) LCallWithDescriptor(descriptor, ops, zone()); 1109 new (zone()) LCallWithDescriptor(descriptor, ops, zone());
1110 return MarkAsCall(DefineFixed(result, r3), instr); 1110 return MarkAsCall(DefineFixed(result, r3), instr);
1111 } 1111 }
1112 1112
1113 1113
1114 LInstruction* LChunkBuilder::DoTailCallThroughMegamorphicCache(
1115 HTailCallThroughMegamorphicCache* instr) {
1116 LOperand* context = UseFixed(instr->context(), cp);
1117 LOperand* receiver_register =
1118 UseFixed(instr->receiver(), LoadDescriptor::ReceiverRegister());
1119 LOperand* name_register =
1120 UseFixed(instr->name(), LoadDescriptor::NameRegister());
1121
1122 // Not marked as call. It can't deoptimize, and it never returns.
1123 return new (zone()) LTailCallThroughMegamorphicCache(
1124 context, receiver_register, name_register);
1125 }
1126
1127
1128 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) { 1114 LInstruction* LChunkBuilder::DoInvokeFunction(HInvokeFunction* instr) {
1129 LOperand* context = UseFixed(instr->context(), cp); 1115 LOperand* context = UseFixed(instr->context(), cp);
1130 LOperand* function = UseFixed(instr->function(), r4); 1116 LOperand* function = UseFixed(instr->function(), r4);
1131 LInvokeFunction* result = new (zone()) LInvokeFunction(context, function); 1117 LInvokeFunction* result = new (zone()) LInvokeFunction(context, function);
1132 return MarkAsCall(DefineFixed(result, r3), instr, CANNOT_DEOPTIMIZE_EAGERLY); 1118 return MarkAsCall(DefineFixed(result, r3), instr, CANNOT_DEOPTIMIZE_EAGERLY);
1133 } 1119 }
1134 1120
1135 1121
1136 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) { 1122 LInstruction* LChunkBuilder::DoUnaryMathOperation(HUnaryMathOperation* instr) {
1137 switch (instr->op()) { 1123 switch (instr->op()) {
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2629 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2615 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2630 HAllocateBlockContext* instr) { 2616 HAllocateBlockContext* instr) {
2631 LOperand* context = UseFixed(instr->context(), cp); 2617 LOperand* context = UseFixed(instr->context(), cp);
2632 LOperand* function = UseRegisterAtStart(instr->function()); 2618 LOperand* function = UseRegisterAtStart(instr->function());
2633 LAllocateBlockContext* result = 2619 LAllocateBlockContext* result =
2634 new (zone()) LAllocateBlockContext(context, function); 2620 new (zone()) LAllocateBlockContext(context, function);
2635 return MarkAsCall(DefineFixed(result, cp), instr); 2621 return MarkAsCall(DefineFixed(result, cp), instr);
2636 } 2622 }
2637 } 2623 }
2638 } // namespace v8::internal 2624 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ppc/lithium-ppc.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698