| OLD | NEW |
| 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/crankshaft/arm/lithium-arm.h" | 5 #include "src/crankshaft/arm/lithium-arm.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" | 9 #include "src/crankshaft/arm/lithium-codegen-arm.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 | 241 |
| 242 | 242 |
| 243 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 243 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
| 244 stream->Add(" = "); | 244 stream->Add(" = "); |
| 245 base_object()->PrintTo(stream); | 245 base_object()->PrintTo(stream); |
| 246 stream->Add(" + "); | 246 stream->Add(" + "); |
| 247 offset()->PrintTo(stream); | 247 offset()->PrintTo(stream); |
| 248 } | 248 } |
| 249 | 249 |
| 250 | 250 |
| 251 void LCallJSFunction::PrintDataTo(StringStream* stream) { | |
| 252 stream->Add("= "); | |
| 253 function()->PrintTo(stream); | |
| 254 stream->Add("#%d / ", arity()); | |
| 255 } | |
| 256 | |
| 257 | |
| 258 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { | 251 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { |
| 259 for (int i = 0; i < InputCount(); i++) { | 252 for (int i = 0; i < InputCount(); i++) { |
| 260 InputAt(i)->PrintTo(stream); | 253 InputAt(i)->PrintTo(stream); |
| 261 stream->Add(" "); | 254 stream->Add(" "); |
| 262 } | 255 } |
| 263 stream->Add("#%d / ", arity()); | 256 stream->Add("#%d / ", arity()); |
| 264 } | 257 } |
| 265 | 258 |
| 266 | 259 |
| 267 void LLoadContextSlot::PrintDataTo(StringStream* stream) { | 260 void LLoadContextSlot::PrintDataTo(StringStream* stream) { |
| (...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1038 return DefineAsRegister(new(zone()) LContext); | 1031 return DefineAsRegister(new(zone()) LContext); |
| 1039 } | 1032 } |
| 1040 | 1033 |
| 1041 | 1034 |
| 1042 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { | 1035 LInstruction* LChunkBuilder::DoDeclareGlobals(HDeclareGlobals* instr) { |
| 1043 LOperand* context = UseFixed(instr->context(), cp); | 1036 LOperand* context = UseFixed(instr->context(), cp); |
| 1044 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); | 1037 return MarkAsCall(new(zone()) LDeclareGlobals(context), instr); |
| 1045 } | 1038 } |
| 1046 | 1039 |
| 1047 | 1040 |
| 1048 LInstruction* LChunkBuilder::DoCallJSFunction( | |
| 1049 HCallJSFunction* instr) { | |
| 1050 LOperand* function = UseFixed(instr->function(), r1); | |
| 1051 | |
| 1052 LCallJSFunction* result = new(zone()) LCallJSFunction(function); | |
| 1053 | |
| 1054 return MarkAsCall(DefineFixed(result, r0), instr); | |
| 1055 } | |
| 1056 | |
| 1057 | |
| 1058 LInstruction* LChunkBuilder::DoCallWithDescriptor( | 1041 LInstruction* LChunkBuilder::DoCallWithDescriptor( |
| 1059 HCallWithDescriptor* instr) { | 1042 HCallWithDescriptor* instr) { |
| 1060 CallInterfaceDescriptor descriptor = instr->descriptor(); | 1043 CallInterfaceDescriptor descriptor = instr->descriptor(); |
| 1061 | 1044 |
| 1062 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); | 1045 LOperand* target = UseRegisterOrConstantAtStart(instr->target()); |
| 1063 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); | 1046 ZoneList<LOperand*> ops(instr->OperandCount(), zone()); |
| 1064 // Target | 1047 // Target |
| 1065 ops.Add(target, zone()); | 1048 ops.Add(target, zone()); |
| 1066 // Context | 1049 // Context |
| 1067 LOperand* op = UseFixed(instr->OperandAt(1), cp); | 1050 LOperand* op = UseFixed(instr->OperandAt(1), cp); |
| (...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2567 } | 2550 } |
| 2568 | 2551 |
| 2569 | 2552 |
| 2570 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { | 2553 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { |
| 2571 LOperand* context = UseRegisterAtStart(instr->context()); | 2554 LOperand* context = UseRegisterAtStart(instr->context()); |
| 2572 return new(zone()) LStoreFrameContext(context); | 2555 return new(zone()) LStoreFrameContext(context); |
| 2573 } | 2556 } |
| 2574 | 2557 |
| 2575 } // namespace internal | 2558 } // namespace internal |
| 2576 } // namespace v8 | 2559 } // namespace v8 |
| OLD | NEW |