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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/double.h" | 8 #include "src/double.h" |
9 #include "src/elements.h" | 9 #include "src/elements.h" |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
(...skipping 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3594 std::ostream& HStoreNamedGeneric::PrintDataTo( | 3594 std::ostream& HStoreNamedGeneric::PrintDataTo( |
3595 std::ostream& os) const { // NOLINT | 3595 std::ostream& os) const { // NOLINT |
3596 Handle<String> n = Handle<String>::cast(name()); | 3596 Handle<String> n = Handle<String>::cast(name()); |
3597 return os << NameOf(object()) << "." << n->ToCString().get() << " = " | 3597 return os << NameOf(object()) << "." << n->ToCString().get() << " = " |
3598 << NameOf(value()); | 3598 << NameOf(value()); |
3599 } | 3599 } |
3600 | 3600 |
3601 | 3601 |
3602 std::ostream& HStoreGlobalViaContext::PrintDataTo( | 3602 std::ostream& HStoreGlobalViaContext::PrintDataTo( |
3603 std::ostream& os) const { // NOLINT | 3603 std::ostream& os) const { // NOLINT |
3604 return os << name()->ToCString().get() << " = " << NameOf(value()) | 3604 return os << " depth:" << depth() << " slot:" << slot_index() << " = " |
3605 << " depth:" << depth() << " slot:" << slot_index(); | 3605 << NameOf(value()); |
3606 } | 3606 } |
3607 | 3607 |
3608 | 3608 |
3609 std::ostream& HStoreNamedField::PrintDataTo(std::ostream& os) const { // NOLINT | 3609 std::ostream& HStoreNamedField::PrintDataTo(std::ostream& os) const { // NOLINT |
3610 os << NameOf(object()) << access_ << " = " << NameOf(value()); | 3610 os << NameOf(object()) << access_ << " = " << NameOf(value()); |
3611 if (NeedsWriteBarrier()) os << " (write-barrier)"; | 3611 if (NeedsWriteBarrier()) os << " (write-barrier)"; |
3612 if (has_transition()) os << " (transition map " << *transition_map() << ")"; | 3612 if (has_transition()) os << " (transition map " << *transition_map() << ")"; |
3613 return os; | 3613 return os; |
3614 } | 3614 } |
3615 | 3615 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3651 | 3651 |
3652 | 3652 |
3653 std::ostream& HLoadGlobalGeneric::PrintDataTo( | 3653 std::ostream& HLoadGlobalGeneric::PrintDataTo( |
3654 std::ostream& os) const { // NOLINT | 3654 std::ostream& os) const { // NOLINT |
3655 return os << name()->ToCString().get() << " "; | 3655 return os << name()->ToCString().get() << " "; |
3656 } | 3656 } |
3657 | 3657 |
3658 | 3658 |
3659 std::ostream& HLoadGlobalViaContext::PrintDataTo( | 3659 std::ostream& HLoadGlobalViaContext::PrintDataTo( |
3660 std::ostream& os) const { // NOLINT | 3660 std::ostream& os) const { // NOLINT |
3661 return os << name()->ToCString().get() << " " | 3661 return os << "depth:" << depth() << " slot:" << slot_index(); |
3662 << "depth:" << depth() << " slot:" << slot_index(); | |
3663 } | 3662 } |
3664 | 3663 |
3665 | 3664 |
3666 std::ostream& HInnerAllocatedObject::PrintDataTo( | 3665 std::ostream& HInnerAllocatedObject::PrintDataTo( |
3667 std::ostream& os) const { // NOLINT | 3666 std::ostream& os) const { // NOLINT |
3668 os << NameOf(base_object()) << " offset "; | 3667 os << NameOf(base_object()) << " offset "; |
3669 return offset()->PrintTo(os); | 3668 return offset()->PrintTo(os); |
3670 } | 3669 } |
3671 | 3670 |
3672 | 3671 |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4742 case HObjectAccess::kExternalMemory: | 4741 case HObjectAccess::kExternalMemory: |
4743 os << "[external-memory]"; | 4742 os << "[external-memory]"; |
4744 break; | 4743 break; |
4745 } | 4744 } |
4746 | 4745 |
4747 return os << "@" << access.offset(); | 4746 return os << "@" << access.offset(); |
4748 } | 4747 } |
4749 | 4748 |
4750 } // namespace internal | 4749 } // namespace internal |
4751 } // namespace v8 | 4750 } // namespace v8 |
OLD | NEW |