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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 if (kind == DOUBLE_REGISTERS) { | 373 if (kind == DOUBLE_REGISTERS) { |
374 return LDoubleStackSlot::Create(index, zone()); | 374 return LDoubleStackSlot::Create(index, zone()); |
375 } else { | 375 } else { |
376 DCHECK(kind == GENERAL_REGISTERS); | 376 DCHECK(kind == GENERAL_REGISTERS); |
377 return LStackSlot::Create(index, zone()); | 377 return LStackSlot::Create(index, zone()); |
378 } | 378 } |
379 } | 379 } |
380 | 380 |
381 | 381 |
382 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { | 382 void LLoadGlobalViaContext::PrintDataTo(StringStream* stream) { |
383 stream->Add(String::cast(*name())->ToCString().get()); | 383 stream->Add("depth:%d slot:%d", depth(), slot_index()); |
384 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
385 } | 384 } |
386 | 385 |
387 | 386 |
388 void LStoreNamedField::PrintDataTo(StringStream* stream) { | 387 void LStoreNamedField::PrintDataTo(StringStream* stream) { |
389 object()->PrintTo(stream); | 388 object()->PrintTo(stream); |
390 std::ostringstream os; | 389 std::ostringstream os; |
391 os << hydrogen()->access() << " <- "; | 390 os << hydrogen()->access() << " <- "; |
392 stream->Add(os.str().c_str()); | 391 stream->Add(os.str().c_str()); |
393 value()->PrintTo(stream); | 392 value()->PrintTo(stream); |
394 } | 393 } |
395 | 394 |
396 | 395 |
397 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { | 396 void LStoreNamedGeneric::PrintDataTo(StringStream* stream) { |
398 object()->PrintTo(stream); | 397 object()->PrintTo(stream); |
399 stream->Add("."); | 398 stream->Add("."); |
400 stream->Add(String::cast(*name())->ToCString().get()); | 399 stream->Add(String::cast(*name())->ToCString().get()); |
401 stream->Add(" <- "); | 400 stream->Add(" <- "); |
402 value()->PrintTo(stream); | 401 value()->PrintTo(stream); |
403 } | 402 } |
404 | 403 |
405 | 404 |
406 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { | 405 void LStoreGlobalViaContext::PrintDataTo(StringStream* stream) { |
407 stream->Add(String::cast(*name())->ToCString().get()); | 406 stream->Add("depth:%d slot:%d <- ", depth(), slot_index()); |
408 stream->Add(" <- "); | |
409 value()->PrintTo(stream); | 407 value()->PrintTo(stream); |
410 stream->Add(" depth:%d slot:%d", depth(), slot_index()); | |
411 } | 408 } |
412 | 409 |
413 | 410 |
414 void LLoadKeyed::PrintDataTo(StringStream* stream) { | 411 void LLoadKeyed::PrintDataTo(StringStream* stream) { |
415 elements()->PrintTo(stream); | 412 elements()->PrintTo(stream); |
416 stream->Add("["); | 413 stream->Add("["); |
417 key()->PrintTo(stream); | 414 key()->PrintTo(stream); |
418 if (hydrogen()->IsDehoisted()) { | 415 if (hydrogen()->IsDehoisted()) { |
419 stream->Add(" + %d]", base_offset()); | 416 stream->Add(" + %d]", base_offset()); |
420 } else { | 417 } else { |
(...skipping 2364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2785 LAllocateBlockContext* result = | 2782 LAllocateBlockContext* result = |
2786 new(zone()) LAllocateBlockContext(context, function); | 2783 new(zone()) LAllocateBlockContext(context, function); |
2787 return MarkAsCall(DefineFixed(result, esi), instr); | 2784 return MarkAsCall(DefineFixed(result, esi), instr); |
2788 } | 2785 } |
2789 | 2786 |
2790 | 2787 |
2791 } // namespace internal | 2788 } // namespace internal |
2792 } // namespace v8 | 2789 } // namespace v8 |
2793 | 2790 |
2794 #endif // V8_TARGET_ARCH_IA32 | 2791 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |