| 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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 842   if (WasNeutered()) os << " - neutered\n"; | 842   if (WasNeutered()) os << " - neutered\n"; | 
| 843   JSObjectPrintBody(os, this, !WasNeutered()); | 843   JSObjectPrintBody(os, this, !WasNeutered()); | 
| 844 } | 844 } | 
| 845 | 845 | 
| 846 | 846 | 
| 847 void JSFunction::JSFunctionPrint(std::ostream& os) {  // NOLINT | 847 void JSFunction::JSFunctionPrint(std::ostream& os) {  // NOLINT | 
| 848   JSObjectPrintHeader(os, this, "Function"); | 848   JSObjectPrintHeader(os, this, "Function"); | 
| 849   os << "\n - initial_map = "; | 849   os << "\n - initial_map = "; | 
| 850   if (has_initial_map()) os << Brief(initial_map()); | 850   if (has_initial_map()) os << Brief(initial_map()); | 
| 851   os << "\n - shared_info = " << Brief(shared()); | 851   os << "\n - shared_info = " << Brief(shared()); | 
| 852   os << "\n   - name = " << Brief(shared()->name()); | 852   os << "\n - name = " << Brief(shared()->name()); | 
| 853   if (shared()->is_generator()) { | 853   if (shared()->is_generator()) { | 
| 854     os << "\n   - generator"; | 854     os << "\n   - generator"; | 
| 855   } | 855   } | 
| 856   os << "\n - context = " << Brief(context()); | 856   os << "\n - context = " << Brief(context()); | 
| 857   if (shared()->bound()) { | 857   if (shared()->bound()) { | 
| 858     os << "\n - bindings = " << Brief(function_bindings()); | 858     os << "\n - bindings = " << Brief(function_bindings()); | 
| 859   } else { | 859   } else { | 
| 860     os << "\n - literals = " << Brief(literals()); | 860     os << "\n - literals = " << Brief(literals()); | 
| 861   } | 861   } | 
| 862   os << "\n - code = " << Brief(code()); | 862   os << "\n - code = " << Brief(code()); | 
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1314 void JSObject::PrintTransitions(std::ostream& os) {  // NOLINT | 1314 void JSObject::PrintTransitions(std::ostream& os) {  // NOLINT | 
| 1315   Object* transitions = map()->raw_transitions(); | 1315   Object* transitions = map()->raw_transitions(); | 
| 1316   int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1316   int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 
| 1317   if (num_transitions == 0) return; | 1317   if (num_transitions == 0) return; | 
| 1318   os << "\n - transitions"; | 1318   os << "\n - transitions"; | 
| 1319   TransitionArray::PrintTransitions(os, transitions, false); | 1319   TransitionArray::PrintTransitions(os, transitions, false); | 
| 1320 } | 1320 } | 
| 1321 #endif  // defined(DEBUG) || defined(OBJECT_PRINT) | 1321 #endif  // defined(DEBUG) || defined(OBJECT_PRINT) | 
| 1322 }  // namespace internal | 1322 }  // namespace internal | 
| 1323 }  // namespace v8 | 1323 }  // namespace v8 | 
| OLD | NEW | 
|---|