| 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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 break; | 248 break; |
| 249 } | 249 } |
| 250 case DATA_CONSTANT: | 250 case DATA_CONSTANT: |
| 251 os << Brief(descs->GetConstant(i)) << " (data constant)\n"; | 251 os << Brief(descs->GetConstant(i)) << " (data constant)\n"; |
| 252 break; | 252 break; |
| 253 case ACCESSOR_CONSTANT: | 253 case ACCESSOR_CONSTANT: |
| 254 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n"; | 254 os << Brief(descs->GetCallbacksObject(i)) << " (accessor constant)\n"; |
| 255 break; | 255 break; |
| 256 } | 256 } |
| 257 } | 257 } |
| 258 } else if (IsGlobalObject()) { |
| 259 global_dictionary()->Print(os); |
| 258 } else { | 260 } else { |
| 259 property_dictionary()->Print(os); | 261 property_dictionary()->Print(os); |
| 260 } | 262 } |
| 261 } | 263 } |
| 262 | 264 |
| 263 | 265 |
| 264 template <class T> | 266 template <class T> |
| 265 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT | 267 static void DoPrintElements(std::ostream& os, Object* object) { // NOLINT |
| 266 T* p = T::cast(object); | 268 T* p = T::cast(object); |
| 267 for (int i = 0; i < p->length(); i++) { | 269 for (int i = 0; i < p->length(); i++) { |
| (...skipping 937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 os << " -> " << Brief(target) << "\n"; | 1207 os << " -> " << Brief(target) << "\n"; |
| 1206 } | 1208 } |
| 1207 } | 1209 } |
| 1208 | 1210 |
| 1209 | 1211 |
| 1210 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1212 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1211 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1213 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1212 } | 1214 } |
| 1213 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1215 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1214 } } // namespace v8::internal | 1216 } } // namespace v8::internal |
| OLD | NEW |