| 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_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
| 10 | 10 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 | 268 |
| 269 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { | 269 void LInnerAllocatedObject::PrintDataTo(StringStream* stream) { |
| 270 stream->Add(" = "); | 270 stream->Add(" = "); |
| 271 base_object()->PrintTo(stream); | 271 base_object()->PrintTo(stream); |
| 272 stream->Add(" + "); | 272 stream->Add(" + "); |
| 273 offset()->PrintTo(stream); | 273 offset()->PrintTo(stream); |
| 274 } | 274 } |
| 275 | 275 |
| 276 | 276 |
| 277 void LCallFunction::PrintDataTo(StringStream* stream) { | |
| 278 context()->PrintTo(stream); | |
| 279 stream->Add(" "); | |
| 280 function()->PrintTo(stream); | |
| 281 if (hydrogen()->HasVectorAndSlot()) { | |
| 282 stream->Add(" (type-feedback-vector "); | |
| 283 temp_vector()->PrintTo(stream); | |
| 284 stream->Add(" "); | |
| 285 temp_slot()->PrintTo(stream); | |
| 286 stream->Add(")"); | |
| 287 } | |
| 288 } | |
| 289 | |
| 290 | |
| 291 void LCallJSFunction::PrintDataTo(StringStream* stream) { | 277 void LCallJSFunction::PrintDataTo(StringStream* stream) { |
| 292 stream->Add("= "); | 278 stream->Add("= "); |
| 293 function()->PrintTo(stream); | 279 function()->PrintTo(stream); |
| 294 stream->Add("#%d / ", arity()); | 280 stream->Add("#%d / ", arity()); |
| 295 } | 281 } |
| 296 | 282 |
| 297 | 283 |
| 298 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { | 284 void LCallWithDescriptor::PrintDataTo(StringStream* stream) { |
| 299 for (int i = 0; i < InputCount(); i++) { | 285 for (int i = 0; i < InputCount(); i++) { |
| 300 InputAt(i)->PrintTo(stream); | 286 InputAt(i)->PrintTo(stream); |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1288 LOperand* context = UseFixed(instr->context(), esi); | 1274 LOperand* context = UseFixed(instr->context(), esi); |
| 1289 LOperand* constructor = UseFixed(instr->constructor(), edi); | 1275 LOperand* constructor = UseFixed(instr->constructor(), edi); |
| 1290 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); | 1276 LCallNewArray* result = new(zone()) LCallNewArray(context, constructor); |
| 1291 return MarkAsCall(DefineFixed(result, eax), instr); | 1277 return MarkAsCall(DefineFixed(result, eax), instr); |
| 1292 } | 1278 } |
| 1293 | 1279 |
| 1294 | 1280 |
| 1295 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { | 1281 LInstruction* LChunkBuilder::DoCallFunction(HCallFunction* instr) { |
| 1296 LOperand* context = UseFixed(instr->context(), esi); | 1282 LOperand* context = UseFixed(instr->context(), esi); |
| 1297 LOperand* function = UseFixed(instr->function(), edi); | 1283 LOperand* function = UseFixed(instr->function(), edi); |
| 1298 LOperand* slot = NULL; | 1284 LCallFunction* call = new(zone()) LCallFunction(context, function); |
| 1299 LOperand* vector = NULL; | |
| 1300 if (instr->HasVectorAndSlot()) { | |
| 1301 slot = FixedTemp(edx); | |
| 1302 vector = FixedTemp(ebx); | |
| 1303 } | |
| 1304 | |
| 1305 LCallFunction* call = | |
| 1306 new (zone()) LCallFunction(context, function, slot, vector); | |
| 1307 return MarkAsCall(DefineFixed(call, eax), instr); | 1285 return MarkAsCall(DefineFixed(call, eax), instr); |
| 1308 } | 1286 } |
| 1309 | 1287 |
| 1310 | 1288 |
| 1311 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { | 1289 LInstruction* LChunkBuilder::DoCallRuntime(HCallRuntime* instr) { |
| 1312 LOperand* context = UseFixed(instr->context(), esi); | 1290 LOperand* context = UseFixed(instr->context(), esi); |
| 1313 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); | 1291 return MarkAsCall(DefineFixed(new(zone()) LCallRuntime(context), eax), instr); |
| 1314 } | 1292 } |
| 1315 | 1293 |
| 1316 | 1294 |
| (...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2735 LOperand* function = UseRegisterAtStart(instr->function()); | 2713 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2736 LAllocateBlockContext* result = | 2714 LAllocateBlockContext* result = |
| 2737 new(zone()) LAllocateBlockContext(context, function); | 2715 new(zone()) LAllocateBlockContext(context, function); |
| 2738 return MarkAsCall(DefineFixed(result, esi), instr); | 2716 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2739 } | 2717 } |
| 2740 | 2718 |
| 2741 | 2719 |
| 2742 } } // namespace v8::internal | 2720 } } // namespace v8::internal |
| 2743 | 2721 |
| 2744 #endif // V8_TARGET_ARCH_IA32 | 2722 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |