| 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 <sstream> | 5 #include <sstream> |
| 6 | 6 |
| 7 #include "src/v8.h" | 7 #include "src/v8.h" |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 | 279 |
| 280 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 280 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
| 281 stream->Add(" = "); | 281 stream->Add(" = "); |
| 282 base_object()->PrintTo(stream); | 282 base_object()->PrintTo(stream); |
| 283 stream->Add(" + "); | 283 stream->Add(" + "); |
| 284 offset()->PrintTo(stream); | 284 offset()->PrintTo(stream); |
| 285 } | 285 } |
| 286 | 286 |
| 287 | 287 |
| 288 void LCallFunction::PrintDataTo(StringStream* stream) { |
| 289 context()->PrintTo(stream); |
| 290 stream->Add(" "); |
| 291 function()->PrintTo(stream); |
| 292 if (hydrogen()->HasVectorAndSlot()) { |
| 293 stream->Add(" (type-feedback-vector "); |
| 294 temp_vector()->PrintTo(stream); |
| 295 stream->Add(" "); |
| 296 temp_slot()->PrintTo(stream); |
| 297 stream->Add(")"); |
| 298 } |
| 299 } |
| 300 |
| 301 |
| 288 void LCallJSFunction::PrintDataTo(StringStream* stream) { | 302 void LCallJSFunction::PrintDataTo(StringStream* stream) { |
| 289 stream->Add("= "); | 303 stream->Add("= "); |
| 290 function()->PrintTo(stream); | 304 function()->PrintTo(stream); |
| 291 stream->Add("#%d / ", arity()); | 305 stream->Add("#%d / ", arity()); |
| 292 } | 306 } |
| 293 | 307 |
| 294 | 308 |
| 295 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { | 309 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { |
| 296 for (int i = 0; i < InputCount(); i++) { | 310 for (int i = 0; i < InputCount(); i++) { |
| 297 InputAt(i)->PrintTo(stream); | 311 InputAt(i)->PrintTo(stream); |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1284 LOperand* context = UseFixed(instr->context(), esi); | 1298 LOperand* context = UseFixed(instr->context(), esi); |
| 1285 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1299 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1286 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1300 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1287 return MarkAsCall(DefineFixed(result, eax), instr); | 1301 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1288 } | 1302 } |
| 1289 | 1303 |
| 1290 | 1304 |
| 1291 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1305 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1292 LOperand* context = UseFixed(instr->context(), esi); | 1306 LOperand* context = UseFixed(instr->context(), esi); |
| 1293 LOperand* function = UseFixed(instr->function(), edi); | 1307 LOperand* function = UseFixed(instr->function(), edi); |
| 1294 LCallFunction* call = new(zone()) LCallFunction(context, function); | 1308 LOperand* slot = NULL; |
| 1309 LOperand* vector = NULL; |
| 1310 if (instr->HasVectorAndSlot()) { |
| 1311 slot = FixedTemp(edx); |
| 1312 vector = FixedTemp(ebx); |
| 1313 } |
| 1314 |
| 1315 LCallFunction* call = |
| 1316 new (zone()) LCallFunction(context, function, slot, vector); |
| 1295 return MarkAsCall(DefineFixed(call, eax), instr); | 1317 return MarkAsCall(DefineFixed(call, eax), instr); |
| 1296 } | 1318 } |
| 1297 | 1319 |
| 1298 | 1320 |
| 1299 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1321 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1300 LOperand* context = UseFixed(instr->context(), esi); | 1322 LOperand* context = UseFixed(instr->context(), esi); |
| 1301 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); | 1323 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); |
| 1302 } | 1324 } |
| 1303 | 1325 |
| 1304 | 1326 |
| (...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2717 LOperand* function = UseRegisterAtStart(instr->function()); | 2739 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2718 LAllocateBlockContext* result = | 2740 LAllocateBlockContext* result = |
| 2719 new(zone()) LAllocateBlockContext(context, function); | 2741 new(zone()) LAllocateBlockContext(context, function); |
| 2720 return MarkAsCall(DefineFixed(result, esi), instr); | 2742 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2721 } | 2743 } |
| 2722 | 2744 |
| 2723 | 2745 |
| 2724 } } // namespace v8::internal | 2746 } } // namespace v8::internal |
| 2725 | 2747 |
| 2726 #endif // V8_TARGET_ARCH_X87 | 2748 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |