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/objects.h" | 5 #include "src/objects.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/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 os << "\n - type: " << instance_type(); | 450 os << "\n - type: " << instance_type(); |
451 os << "\n - instance size: " << instance_size(); | 451 os << "\n - instance size: " << instance_size(); |
452 if (IsJSObjectMap()) { | 452 if (IsJSObjectMap()) { |
453 os << "\n - inobject properties: " << GetInObjectProperties(); | 453 os << "\n - inobject properties: " << GetInObjectProperties(); |
454 } | 454 } |
455 os << "\n - elements kind: " << ElementsKindToString(elements_kind()); | 455 os << "\n - elements kind: " << ElementsKindToString(elements_kind()); |
456 os << "\n - unused property fields: " << unused_property_fields(); | 456 os << "\n - unused property fields: " << unused_property_fields(); |
457 if (is_deprecated()) os << "\n - deprecated_map"; | 457 if (is_deprecated()) os << "\n - deprecated_map"; |
458 if (is_stable()) os << "\n - stable_map"; | 458 if (is_stable()) os << "\n - stable_map"; |
459 if (is_dictionary_map()) os << "\n - dictionary_map"; | 459 if (is_dictionary_map()) os << "\n - dictionary_map"; |
460 if (is_hidden_prototype()) os << "\n - hidden_prototype"; | 460 if (has_hidden_prototype()) os << "\n - has_hidden_prototype"; |
461 if (has_named_interceptor()) os << " - named_interceptor"; | 461 if (has_named_interceptor()) os << " - named_interceptor"; |
462 if (has_indexed_interceptor()) os << "\n - indexed_interceptor"; | 462 if (has_indexed_interceptor()) os << "\n - indexed_interceptor"; |
463 if (is_undetectable()) os << "\n - undetectable"; | 463 if (is_undetectable()) os << "\n - undetectable"; |
464 if (is_callable()) os << "\n - callable"; | 464 if (is_callable()) os << "\n - callable"; |
465 if (is_constructor()) os << "\n - constructor"; | 465 if (is_constructor()) os << "\n - constructor"; |
466 if (is_access_check_needed()) os << "\n - access_check_needed"; | 466 if (is_access_check_needed()) os << "\n - access_check_needed"; |
467 if (!is_extensible()) os << "\n - non-extensible"; | 467 if (!is_extensible()) os << "\n - non-extensible"; |
468 if (is_observed()) os << "\n - observed"; | 468 if (is_observed()) os << "\n - observed"; |
469 if (is_strong()) os << "\n - strong_map"; | 469 if (is_strong()) os << "\n - strong_map"; |
470 if (is_prototype_map()) { | 470 if (is_prototype_map()) { |
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1316 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1317 Object* transitions = map()->raw_transitions(); | 1317 Object* transitions = map()->raw_transitions(); |
1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1318 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1319 if (num_transitions == 0) return; | 1319 if (num_transitions == 0) return; |
1320 os << "\n - transitions"; | 1320 os << "\n - transitions"; |
1321 TransitionArray::PrintTransitions(os, transitions, false); | 1321 TransitionArray::PrintTransitions(os, transitions, false); |
1322 } | 1322 } |
1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1323 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1324 } // namespace internal | 1324 } // namespace internal |
1325 } // namespace v8 | 1325 } // namespace v8 |
OLD | NEW |