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