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/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 } | 298 } |
299 | 299 |
300 | 300 |
301 void LInvokeFunction::PrintDataTo(StringStream* stream) { | 301 void LInvokeFunction::PrintDataTo(StringStream* stream) { |
302 stream->Add("= "); | 302 stream->Add("= "); |
303 function()->PrintTo(stream); | 303 function()->PrintTo(stream); |
304 stream->Add(" #%d / ", arity()); | 304 stream->Add(" #%d / ", arity()); |
305 } | 305 } |
306 | 306 |
307 | 307 |
308 void LCallNew::PrintDataTo(StringStream* stream) { | |
309 stream->Add("= "); | |
310 constructor()->PrintTo(stream); | |
311 stream->Add(" #%d / ", arity()); | |
312 } | |
313 | |
314 | |
315 void LCallNewArray::PrintDataTo(StringStream* stream) { | 308 void LCallNewArray::PrintDataTo(StringStream* stream) { |
316 stream->Add("= "); | 309 stream->Add("= "); |
317 constructor()->PrintTo(stream); | 310 constructor()->PrintTo(stream); |
318 stream->Add(" #%d / ", arity()); | 311 stream->Add(" #%d / ", arity()); |
319 ElementsKind kind = hydrogen()->elements_kind(); | 312 ElementsKind kind = hydrogen()->elements_kind(); |
320 stream->Add(" (%s) ", ElementsKindToString(kind)); | 313 stream->Add(" (%s) ", ElementsKindToString(kind)); |
321 } | 314 } |
322 | 315 |
323 | 316 |
324 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { | 317 void LAccessArgumentsAt::PrintDataTo(StringStream* stream) { |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1214 | 1207 |
1215 | 1208 |
1216 LInstruction* LChunkBuilder::DoMathRound(HUnaryMathOperation* instr) { | 1209 LInstruction* LChunkBuilder::DoMathRound(HUnaryMathOperation* instr) { |
1217 LOperand* input = UseRegister(instr->value()); | 1210 LOperand* input = UseRegister(instr->value()); |
1218 LOperand* temp = TempDoubleRegister(); | 1211 LOperand* temp = TempDoubleRegister(); |
1219 LMathRound* result = new(zone()) LMathRound(input, temp); | 1212 LMathRound* result = new(zone()) LMathRound(input, temp); |
1220 return AssignEnvironment(DefineAsRegister(result)); | 1213 return AssignEnvironment(DefineAsRegister(result)); |
1221 } | 1214 } |
1222 | 1215 |
1223 | 1216 |
1224 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { | |
1225 LOperand* context = UseFixed(instr->context(), cp); | |
1226 LOperand* constructor = UseFixed(instr->constructor(), a1); | |
1227 LCallNew* result = new(zone()) LCallNew(context, constructor); | |
1228 return MarkAsCall(DefineFixed(result, v0), instr); | |
1229 } | |
1230 | |
1231 | |
1232 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { | 1217 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { |
1233 LOperand* context = UseFixed(instr->context(), cp); | 1218 LOperand* context = UseFixed(instr->context(), cp); |
1234 LOperand* constructor = UseFixed(instr->constructor(), a1); | 1219 LOperand* constructor = UseFixed(instr->constructor(), a1); |
1235 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1220 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
1236 return MarkAsCall(DefineFixed(result, v0), instr); | 1221 return MarkAsCall(DefineFixed(result, v0), instr); |
1237 } | 1222 } |
1238 | 1223 |
1239 | 1224 |
1240 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1225 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
1241 LOperand* context = UseFixed(instr->context(), cp); | 1226 LOperand* context = UseFixed(instr->context(), cp); |
(...skipping 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2608 LOperand* function = UseRegisterAtStart(instr->function()); | 2593 LOperand* function = UseRegisterAtStart(instr->function()); |
2609 LAllocateBlockContext* result = | 2594 LAllocateBlockContext* result = |
2610 new(zone()) LAllocateBlockContext(context, function); | 2595 new(zone()) LAllocateBlockContext(context, function); |
2611 return MarkAsCall(DefineFixed(result, cp), instr); | 2596 return MarkAsCall(DefineFixed(result, cp), instr); |
2612 } | 2597 } |
2613 | 2598 |
2614 } // namespace internal | 2599 } // namespace internal |
2615 } // namespace v8 | 2600 } // namespace v8 |
2616 | 2601 |
2617 #endif // V8_TARGET_ARCH_MIPS | 2602 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |