| 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 1268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1279 Heap* heap = key->GetHeap(); | 1279 Heap* heap = key->GetHeap(); |
| 1280 if (key == heap->nonextensible_symbol()) { | 1280 if (key == heap->nonextensible_symbol()) { |
| 1281 os << "(transition to non-extensible)"; | 1281 os << "(transition to non-extensible)"; |
| 1282 } else if (key == heap->sealed_symbol()) { | 1282 } else if (key == heap->sealed_symbol()) { |
| 1283 os << "(transition to sealed)"; | 1283 os << "(transition to sealed)"; |
| 1284 } else if (key == heap->frozen_symbol()) { | 1284 } else if (key == heap->frozen_symbol()) { |
| 1285 os << "(transition to frozen)"; | 1285 os << "(transition to frozen)"; |
| 1286 } else if (key == heap->elements_transition_symbol()) { | 1286 } else if (key == heap->elements_transition_symbol()) { |
| 1287 os << "(transition to " << ElementsKindToString(target->elements_kind()) | 1287 os << "(transition to " << ElementsKindToString(target->elements_kind()) |
| 1288 << ")"; | 1288 << ")"; |
| 1289 } else if (key == heap->strict_function_transition_symbol()) { |
| 1290 os << " (transition to strict function)"; |
| 1291 } else if (key == heap->strong_function_transition_symbol()) { |
| 1292 os << " (transition to strong function)"; |
| 1289 } else if (key == heap->observed_symbol()) { | 1293 } else if (key == heap->observed_symbol()) { |
| 1290 os << " (transition to Object.observe)"; | 1294 os << " (transition to Object.observe)"; |
| 1291 } else { | 1295 } else { |
| 1292 PropertyDetails details = GetTargetDetails(key, target); | 1296 PropertyDetails details = GetTargetDetails(key, target); |
| 1293 os << "(transition to "; | 1297 os << "(transition to "; |
| 1294 if (details.location() == kDescriptor) { | 1298 if (details.location() == kDescriptor) { |
| 1295 os << "immutable "; | 1299 os << "immutable "; |
| 1296 } | 1300 } |
| 1297 os << (details.kind() == kData ? "data" : "accessor"); | 1301 os << (details.kind() == kData ? "data" : "accessor"); |
| 1298 if (details.location() == kDescriptor) { | 1302 if (details.location() == kDescriptor) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1310 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1314 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1311 Object* transitions = map()->raw_transitions(); | 1315 Object* transitions = map()->raw_transitions(); |
| 1312 int num_transitions = TransitionArray::NumberOfTransitions(transitions); | 1316 int num_transitions = TransitionArray::NumberOfTransitions(transitions); |
| 1313 if (num_transitions == 0) return; | 1317 if (num_transitions == 0) return; |
| 1314 os << "\n - transitions"; | 1318 os << "\n - transitions"; |
| 1315 TransitionArray::PrintTransitions(os, transitions, false); | 1319 TransitionArray::PrintTransitions(os, transitions, false); |
| 1316 } | 1320 } |
| 1317 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1321 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1318 } // namespace internal | 1322 } // namespace internal |
| 1319 } // namespace v8 | 1323 } // namespace v8 |
| OLD | NEW |