| 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/disasm.h" | 7 #include "src/disasm.h" | 
| 8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" | 
| 9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" | 
| 10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" | 
| (...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1058   os << "Layout descriptor: "; | 1058   os << "Layout descriptor: "; | 
| 1059   if (IsUninitialized()) { | 1059   if (IsUninitialized()) { | 
| 1060     os << "<uninitialized>"; | 1060     os << "<uninitialized>"; | 
| 1061   } else if (IsFastPointerLayout()) { | 1061   } else if (IsFastPointerLayout()) { | 
| 1062     os << "<all tagged>"; | 1062     os << "<all tagged>"; | 
| 1063   } else if (IsSmi()) { | 1063   } else if (IsSmi()) { | 
| 1064     os << "fast"; | 1064     os << "fast"; | 
| 1065     PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value())); | 1065     PrintBitMask(os, static_cast<uint32_t>(Smi::cast(this)->value())); | 
| 1066   } else { | 1066   } else { | 
| 1067     os << "slow"; | 1067     os << "slow"; | 
| 1068     int len = Smi::cast(length())->value(); | 1068     int len = length(); | 
| 1069     for (int i = 0; i < len; i++) { | 1069     for (int i = 0; i < len; i++) { | 
| 1070       if (i > 0) os << " |"; | 1070       if (i > 0) os << " |"; | 
| 1071       PrintBitMask(os, get_scalar(i)); | 1071       PrintBitMask(os, get_scalar(i)); | 
| 1072     } | 1072     } | 
| 1073   } | 1073   } | 
| 1074   os << "\n"; | 1074   os << "\n"; | 
| 1075 } | 1075 } | 
| 1076 | 1076 | 
| 1077 | 1077 | 
| 1078 #endif  // OBJECT_PRINT | 1078 #endif  // OBJECT_PRINT | 
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1201     os << " -> " << Brief(target) << "\n"; | 1201     os << " -> " << Brief(target) << "\n"; | 
| 1202   } | 1202   } | 
| 1203 } | 1203 } | 
| 1204 | 1204 | 
| 1205 | 1205 | 
| 1206 void JSObject::PrintTransitions(std::ostream& os) {  // NOLINT | 1206 void JSObject::PrintTransitions(std::ostream& os) {  // NOLINT | 
| 1207   TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1207   TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 
| 1208 } | 1208 } | 
| 1209 #endif  // defined(DEBUG) || defined(OBJECT_PRINT) | 1209 #endif  // defined(DEBUG) || defined(OBJECT_PRINT) | 
| 1210 } }  // namespace v8::internal | 1210 } }  // namespace v8::internal | 
| OLD | NEW | 
|---|