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/factory.h" | 9 #include "src/factory.h" |
10 #include "src/hydrogen-infer-representation.h" | 10 #include "src/hydrogen-infer-representation.h" |
(...skipping 2958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2969 | 2969 |
2970 std::ostream& HConstant::PrintDataTo(std::ostream& os) const { // NOLINT | 2970 std::ostream& HConstant::PrintDataTo(std::ostream& os) const { // NOLINT |
2971 if (HasInteger32Value()) { | 2971 if (HasInteger32Value()) { |
2972 os << int32_value_ << " "; | 2972 os << int32_value_ << " "; |
2973 } else if (HasDoubleValue()) { | 2973 } else if (HasDoubleValue()) { |
2974 os << double_value_ << " "; | 2974 os << double_value_ << " "; |
2975 } else if (HasExternalReferenceValue()) { | 2975 } else if (HasExternalReferenceValue()) { |
2976 os << reinterpret_cast<void*>(external_reference_value_.address()) << " "; | 2976 os << reinterpret_cast<void*>(external_reference_value_.address()) << " "; |
2977 } else { | 2977 } else { |
2978 // The handle() method is silently and lazily mutating the object. | 2978 // The handle() method is silently and lazily mutating the object. |
2979 Handle<Object> h = const_cast<HConstant*>(this)->handle(Isolate::Current()); | 2979 Handle<Object> h = const_cast<HConstant*>(this)->handle(isolate()); |
2980 os << Brief(*h) << " "; | 2980 os << Brief(*h) << " "; |
2981 if (HasStableMapValue()) os << "[stable-map] "; | 2981 if (HasStableMapValue()) os << "[stable-map] "; |
2982 if (HasObjectMap()) os << "[map " << *ObjectMap().handle() << "] "; | 2982 if (HasObjectMap()) os << "[map " << *ObjectMap().handle() << "] "; |
2983 } | 2983 } |
2984 if (!NotInNewSpace()) os << "[new space] "; | 2984 if (!NotInNewSpace()) os << "[new space] "; |
2985 return os; | 2985 return os; |
2986 } | 2986 } |
2987 | 2987 |
2988 | 2988 |
2989 std::ostream& HBinaryOperation::PrintDataTo(std::ostream& os) const { // NOLINT | 2989 std::ostream& HBinaryOperation::PrintDataTo(std::ostream& os) const { // NOLINT |
(...skipping 1735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4725 break; | 4725 break; |
4726 case HObjectAccess::kExternalMemory: | 4726 case HObjectAccess::kExternalMemory: |
4727 os << "[external-memory]"; | 4727 os << "[external-memory]"; |
4728 break; | 4728 break; |
4729 } | 4729 } |
4730 | 4730 |
4731 return os << "@" << access.offset(); | 4731 return os << "@" << access.offset(); |
4732 } | 4732 } |
4733 | 4733 |
4734 } } // namespace v8::internal | 4734 } } // namespace v8::internal |
OLD | NEW |