| 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/ia32/lithium-ia32.h" | 5 #include "src/crankshaft/ia32/lithium-ia32.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 void LInvokeFunction::PrintDataTo(StringStream* stream) { | 313 void LInvokeFunction::PrintDataTo(StringStream* stream) { |
| 314 stream->Add("= "); | 314 stream->Add("= "); |
| 315 context()->PrintTo(stream); | 315 context()->PrintTo(stream); |
| 316 stream->Add(" "); | 316 stream->Add(" "); |
| 317 function()->PrintTo(stream); | 317 function()->PrintTo(stream); |
| 318 stream->Add(" #%d / ", arity()); | 318 stream->Add(" #%d / ", arity()); |
| 319 } | 319 } |
| 320 | 320 |
| 321 | 321 |
| 322 void LCallNew::PrintDataTo(StringStream* stream) { | |
| 323 stream->Add("= "); | |
| 324 context()->PrintTo(stream); | |
| 325 stream->Add(" "); | |
| 326 constructor()->PrintTo(stream); | |
| 327 stream->Add(" #%d / ", arity()); | |
| 328 } | |
| 329 | |
| 330 | |
| 331 void LCallNewArray::PrintDataTo(StringStream* stream) { | 322 void LCallNewArray::PrintDataTo(StringStream* stream) { |
| 332 stream->Add("= "); | 323 stream->Add("= "); |
| 333 context()->PrintTo(stream); | 324 context()->PrintTo(stream); |
| 334 stream->Add(" "); | 325 stream->Add(" "); |
| 335 constructor()->PrintTo(stream); | 326 constructor()->PrintTo(stream); |
| 336 stream->Add(" #%d / ", arity()); | 327 stream->Add(" #%d / ", arity()); |
| 337 ElementsKind kind = hydrogen()->elements_kind(); | 328 ElementsKind kind = hydrogen()->elements_kind(); |
| 338 stream->Add(" (%s) ", ElementsKindToString(kind)); | 329 stream->Add(" (%s) ", ElementsKindToString(kind)); |
| 339 } | 330 } |
| 340 | 331 |
| (...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1245 | 1236 |
| 1246 | 1237 |
| 1247 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { | 1238 LInstruction* LChunkBuilder::DoMathPowHalf(HUnaryMathOperation* instr) { |
| 1248 LOperand* input = UseRegisterAtStart(instr->value()); | 1239 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1249 LOperand* temp = TempRegister(); | 1240 LOperand* temp = TempRegister(); |
| 1250 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); | 1241 LMathPowHalf* result = new(zone()) LMathPowHalf(input, temp); |
| 1251 return DefineSameAsFirst(result); | 1242 return DefineSameAsFirst(result); |
| 1252 } | 1243 } |
| 1253 | 1244 |
| 1254 | 1245 |
| 1255 LInstruction* LChunkBuilder::DoCallNew(HCallNew* instr) { | |
| 1256 LOperand* context = UseFixed(instr->context(), esi); | |
| 1257 LOperand* constructor = UseFixed(instr->constructor(), edi); | |
| 1258 LCallNew* result = new(zone()) LCallNew(context, constructor); | |
| 1259 return MarkAsCall(DefineFixed(result, eax), instr); | |
| 1260 } | |
| 1261 | |
| 1262 | |
| 1263 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { | 1246 LInstruction* LChunkBuilder::DoCallNewArray(HCallNewArray* instr) { |
| 1264 LOperand* context = UseFixed(instr->context(), esi); | 1247 LOperand* context = UseFixed(instr->context(), esi); |
| 1265 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1248 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1266 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1249 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1267 return MarkAsCall(DefineFixed(result, eax), instr); | 1250 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1268 } | 1251 } |
| 1269 | 1252 |
| 1270 | 1253 |
| 1271 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1254 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1272 LOperand* context = UseFixed(instr->context(), esi); | 1255 LOperand* context = UseFixed(instr->context(), esi); |
| (...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2720 LAllocateBlockContext* result = | 2703 LAllocateBlockContext* result = |
| 2721 new(zone()) LAllocateBlockContext(context, function); | 2704 new(zone()) LAllocateBlockContext(context, function); |
| 2722 return MarkAsCall(DefineFixed(result, esi), instr); | 2705 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2723 } | 2706 } |
| 2724 | 2707 |
| 2725 | 2708 |
| 2726 } // namespace internal | 2709 } // namespace internal |
| 2727 } // namespace v8 | 2710 } // namespace v8 |
| 2728 | 2711 |
| 2729 #endif // V8_TARGET_ARCH_IA32 | 2712 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |