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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 os << "\n - enum length: "; | 476 os << "\n - enum length: "; |
477 if (EnumLength() == kInvalidEnumCacheSentinel) { | 477 if (EnumLength() == kInvalidEnumCacheSentinel) { |
478 os << "invalid"; | 478 os << "invalid"; |
479 } else { | 479 } else { |
480 os << EnumLength(); | 480 os << EnumLength(); |
481 } | 481 } |
482 if (is_deprecated()) os << "\n - deprecated_map"; | 482 if (is_deprecated()) os << "\n - deprecated_map"; |
483 if (is_stable()) os << "\n - stable_map"; | 483 if (is_stable()) os << "\n - stable_map"; |
484 if (is_dictionary_map()) os << "\n - dictionary_map"; | 484 if (is_dictionary_map()) os << "\n - dictionary_map"; |
485 if (has_hidden_prototype()) os << "\n - has_hidden_prototype"; | 485 if (has_hidden_prototype()) os << "\n - has_hidden_prototype"; |
486 if (has_named_interceptor()) os << " - named_interceptor"; | 486 if (has_named_interceptor()) os << "\n - named_interceptor"; |
487 if (has_indexed_interceptor()) os << "\n - indexed_interceptor"; | 487 if (has_indexed_interceptor()) os << "\n - indexed_interceptor"; |
488 if (is_undetectable()) os << "\n - undetectable"; | 488 if (is_undetectable()) os << "\n - undetectable"; |
489 if (is_callable()) os << "\n - callable"; | 489 if (is_callable()) os << "\n - callable"; |
490 if (is_constructor()) os << "\n - constructor"; | 490 if (is_constructor()) os << "\n - constructor"; |
491 if (is_access_check_needed()) os << "\n - access_check_needed"; | 491 if (is_access_check_needed()) os << "\n - access_check_needed"; |
492 if (!is_extensible()) os << "\n - non-extensible"; | 492 if (!is_extensible()) os << "\n - non-extensible"; |
493 if (is_prototype_map()) { | 493 if (is_prototype_map()) { |
494 os << "\n - prototype_map"; | 494 os << "\n - prototype_map"; |
495 os << "\n - prototype info: " << Brief(prototype_info()); | 495 os << "\n - prototype info: " << Brief(prototype_info()); |
496 } else { | 496 } else { |
(...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1419 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1419 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1420 Object* transitions = map()->raw_transitions(); | 1420 Object* transitions = map()->raw_transitions(); |
1421 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1421 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
1422 if (num_transitions == 0) return; | 1422 if (num_transitions == 0) return; |
1423 os << "\n - transitions"; | 1423 os << "\n - transitions"; |
1424 TransitionArray::PrintTransitions(os, transitions, false); | 1424 TransitionArray::PrintTransitions(os, transitions, false); |
1425 } | 1425 } |
1426 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1426 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1427 } // namespace internal | 1427 } // namespace internal |
1428 } // namespace v8 | 1428 } // namespace v8 |
OLD | NEW |