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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 | 540 |
541 | 541 |
542 void JSValue::JSValuePrint(std::ostream& os) { // NOLINT | 542 void JSValue::JSValuePrint(std::ostream& os) { // NOLINT |
543 HeapObject::PrintHeader(os, "ValueObject"); | 543 HeapObject::PrintHeader(os, "ValueObject"); |
544 value()->Print(os); | 544 value()->Print(os); |
545 } | 545 } |
546 | 546 |
547 | 547 |
548 void JSMessageObject::JSMessageObjectPrint(std::ostream& os) { // NOLINT | 548 void JSMessageObject::JSMessageObjectPrint(std::ostream& os) { // NOLINT |
549 HeapObject::PrintHeader(os, "JSMessageObject"); | 549 HeapObject::PrintHeader(os, "JSMessageObject"); |
550 os << " - type: " << Brief(type()); | 550 os << " - type: " << type(); |
551 os << "\n - arguments: " << Brief(arguments()); | 551 os << "\n - arguments: " << Brief(argument()); |
552 os << "\n - start_position: " << start_position(); | 552 os << "\n - start_position: " << start_position(); |
553 os << "\n - end_position: " << end_position(); | 553 os << "\n - end_position: " << end_position(); |
554 os << "\n - script: " << Brief(script()); | 554 os << "\n - script: " << Brief(script()); |
555 os << "\n - stack_frames: " << Brief(stack_frames()); | 555 os << "\n - stack_frames: " << Brief(stack_frames()); |
556 os << "\n"; | 556 os << "\n"; |
557 } | 557 } |
558 | 558 |
559 | 559 |
560 void String::StringPrint(std::ostream& os) { // NOLINT | 560 void String::StringPrint(std::ostream& os) { // NOLINT |
561 if (StringShape(this).IsInternalized()) { | 561 if (StringShape(this).IsInternalized()) { |
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1205 os << " -> " << Brief(target) << "\n"; | 1205 os << " -> " << Brief(target) << "\n"; |
1206 } | 1206 } |
1207 } | 1207 } |
1208 | 1208 |
1209 | 1209 |
1210 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1210 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1211 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1211 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
1212 } | 1212 } |
1213 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1213 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1214 } } // namespace v8::internal | 1214 } } // namespace v8::internal |
OLD | NEW |