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