| OLD | NEW |
| 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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 | 254 |
| 255 | 255 |
| 256 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 256 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
| 257 stream->Add(" = "); | 257 stream->Add(" = "); |
| 258 base_object()->PrintTo(stream); | 258 base_object()->PrintTo(stream); |
| 259 stream->Add(" + "); | 259 stream->Add(" + "); |
| 260 offset()->PrintTo(stream); | 260 offset()->PrintTo(stream); |
| 261 } | 261 } |
| 262 | 262 |
| 263 | 263 |
| 264 void LCallJSFunction::PrintDataTo(StringStream* stream) { | |
| 265 stream->Add("= "); | |
| 266 function()->PrintTo(stream); | |
| 267 stream->Add("#%d / ", arity()); | |
| 268 } | |
| 269 | |
| 270 | |
| 271 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { | 264 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { |
| 272 for (int i = 0; i < InputCount(); i++) { | 265 for (int i = 0; i < InputCount(); i++) { |
| 273 InputAt(i)->PrintTo(stream); | 266 InputAt(i)->PrintTo(stream); |
| 274 stream->Add(" "); | 267 stream->Add(" "); |
| 275 } | 268 } |
| 276 stream->Add("#%d / ", arity()); | 269 stream->Add("#%d / ", arity()); |
| 277 } | 270 } |
| 278 | 271 |
| 279 | 272 |
| 280 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 273 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 return DefineAsRegister(new (zone()) LContext); | 1042 return DefineAsRegister(new (zone()) LContext); |
| 1050 } | 1043 } |
| 1051 | 1044 |
| 1052 | 1045 |
| 1053 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1046 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
| 1054 LOperand* context = UseFixed(instr->context(), cp); | 1047 LOperand* context = UseFixed(instr->context(), cp); |
| 1055 return MarkAsCall(new (zone()) LDeclareGlobals(context), instr); | 1048 return MarkAsCall(new (zone()) LDeclareGlobals(context), instr); |
| 1056 } | 1049 } |
| 1057 | 1050 |
| 1058 | 1051 |
| 1059 LInstruction* LChunkBuilder::DoCallJSFunction(HCallJSFunction* instr) { | |
| 1060 LOperand* function = UseFixed(instr->function(), r4); | |
| 1061 | |
| 1062 LCallJSFunction* result = new (zone()) LCallJSFunction(function); | |
| 1063 | |
| 1064 return MarkAsCall(DefineFixed(result, r3), instr); | |
| 1065 } | |
| 1066 | |
| 1067 | |
| 1068 LInstruction* LChunkBuilder::DoCallWithDescriptor(HCallWithDescriptor* instr) { | 1052 LInstruction* LChunkBuilder::DoCallWithDescriptor(HCallWithDescriptor* instr) { |
| 1069 CallInterfaceDescriptor descriptor = instr->descriptor(); | 1053 CallInterfaceDescriptor descriptor = instr->descriptor(); |
| 1070 | 1054 |
| 1071 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); | 1055 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); |
| 1072 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); | 1056 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); |
| 1073 // Target | 1057 // Target |
| 1074 ops.Add(target, zone()); | 1058 ops.Add(target, zone()); |
| 1075 // Context | 1059 // Context |
| 1076 LOperand* op = UseFixed(instr->OperandAt(1), cp); | 1060 LOperand* op = UseFixed(instr->OperandAt(1), cp); |
| 1077 ops.Add(op, zone()); | 1061 ops.Add(op, zone()); |
| (...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2519 } | 2503 } |
| 2520 | 2504 |
| 2521 | 2505 |
| 2522 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2506 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2523 LOperand* context = UseRegisterAtStart(instr->context()); | 2507 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2524 return new (zone()) LStoreFrameContext(context); | 2508 return new (zone()) LStoreFrameContext(context); |
| 2525 } | 2509 } |
| 2526 | 2510 |
| 2527 } // namespace internal | 2511 } // namespace internal |
| 2528 } // namespace v8 | 2512 } // namespace v8 |
| OLD | NEW |