| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 break; | 290 break; |
| 291 } | 291 } |
| 292 case DATA_CONSTANT: | 292 case DATA_CONSTANT: |
| 293 os << Brief(descs->GetConstant(i)) << " (data constant)\n"; | 293 os << Brief(descs->GetConstant(i)) << " (data constant)\n"; |
| 294 break; | 294 break; |
| 295 case ACCESSOR_CONSTANT: | 295 case ACCESSOR_CONSTANT: |
| 296 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n"; | 296 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n"; |
| 297 break; | 297 break; |
| 298 } | 298 } |
| 299 } | 299 } |
| 300 } else if (IsGlobalObject()) { | 300 } else if (IsJSGlobalObject()) { |
| 301 global_dictionary()->Print(os); | 301 global_dictionary()->Print(os); |
| 302 } else { | 302 } else { |
| 303 property_dictionary()->Print(os); | 303 property_dictionary()->Print(os); |
| 304 } | 304 } |
| 305 } | 305 } |
| 306 | 306 |
| 307 | 307 |
| 308 template <class T> | 308 template <class T> |
| 309 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT | 309 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT |
| 310 T* p = T::cast(object); | 310 T* p = T::cast(object); |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1324 } | 1324 } |
| 1325 } | 1325 } |
| 1326 | 1326 |
| 1327 | 1327 |
| 1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1328 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1329 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1329 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1330 } | 1330 } |
| 1331 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1331 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1332 } // namespace internal | 1332 } // namespace internal |
| 1333 } // namespace v8 | 1333 } // namespace v8 |
| OLD | NEW |