OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 <cmath> | 7 #include <cmath> |
8 #include <iomanip> | 8 #include <iomanip> |
9 #include <sstream> | 9 #include <sstream> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 #include "src/source-position-table.h" | 53 #include "src/source-position-table.h" |
54 #include "src/string-builder.h" | 54 #include "src/string-builder.h" |
55 #include "src/string-search.h" | 55 #include "src/string-search.h" |
56 #include "src/string-stream.h" | 56 #include "src/string-stream.h" |
57 #include "src/utils.h" | 57 #include "src/utils.h" |
58 #include "src/zone.h" | 58 #include "src/zone.h" |
59 | 59 |
60 #ifdef ENABLE_DISASSEMBLER | 60 #ifdef ENABLE_DISASSEMBLER |
61 #include "src/disasm.h" | 61 #include "src/disasm.h" |
62 #include "src/disassembler.h" | 62 #include "src/disassembler.h" |
| 63 #include "src/eh-frame.h" |
63 #endif | 64 #endif |
64 | 65 |
65 namespace v8 { | 66 namespace v8 { |
66 namespace internal { | 67 namespace internal { |
67 | 68 |
68 std::ostream& operator<<(std::ostream& os, InstanceType instance_type) { | 69 std::ostream& operator<<(std::ostream& os, InstanceType instance_type) { |
69 switch (instance_type) { | 70 switch (instance_type) { |
70 #define WRITE_TYPE(TYPE) \ | 71 #define WRITE_TYPE(TYPE) \ |
71 case TYPE: \ | 72 case TYPE: \ |
72 return os << #TYPE; | 73 return os << #TYPE; |
(...skipping 14354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14427 HandlerTable::cast(handler_table())->HandlerTableReturnPrint(os); | 14428 HandlerTable::cast(handler_table())->HandlerTableReturnPrint(os); |
14428 } | 14429 } |
14429 os << "\n"; | 14430 os << "\n"; |
14430 } | 14431 } |
14431 | 14432 |
14432 os << "RelocInfo (size = " << relocation_size() << ")\n"; | 14433 os << "RelocInfo (size = " << relocation_size() << ")\n"; |
14433 for (RelocIterator it(this); !it.done(); it.next()) { | 14434 for (RelocIterator it(this); !it.done(); it.next()) { |
14434 it.rinfo()->Print(GetIsolate(), os); | 14435 it.rinfo()->Print(GetIsolate(), os); |
14435 } | 14436 } |
14436 os << "\n"; | 14437 os << "\n"; |
| 14438 |
| 14439 if (has_unwinding_info()) { |
| 14440 os << "UnwindingInfo (size = " << unwinding_info_size() << ")\n"; |
| 14441 EhFrameWriter::DisassembleToStream(os, unwinding_info_start(), |
| 14442 unwinding_info_end()); |
| 14443 os << "\n"; |
| 14444 } |
14437 } | 14445 } |
14438 #endif // ENABLE_DISASSEMBLER | 14446 #endif // ENABLE_DISASSEMBLER |
14439 | 14447 |
14440 int BytecodeArray::SourcePosition(int offset) { | 14448 int BytecodeArray::SourcePosition(int offset) { |
14441 int last_position = 0; | 14449 int last_position = 0; |
14442 for (SourcePositionTableIterator iterator(source_position_table()); | 14450 for (SourcePositionTableIterator iterator(source_position_table()); |
14443 !iterator.done() && iterator.code_offset() <= offset; | 14451 !iterator.done() && iterator.code_offset() <= offset; |
14444 iterator.Advance()) { | 14452 iterator.Advance()) { |
14445 last_position = iterator.source_position(); | 14453 last_position = iterator.source_position(); |
14446 } | 14454 } |
(...skipping 4552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18999 | 19007 |
19000 Object* data_obj = | 19008 Object* data_obj = |
19001 constructor->shared()->get_api_func_data()->access_check_info(); | 19009 constructor->shared()->get_api_func_data()->access_check_info(); |
19002 if (data_obj->IsUndefined(isolate)) return nullptr; | 19010 if (data_obj->IsUndefined(isolate)) return nullptr; |
19003 | 19011 |
19004 return AccessCheckInfo::cast(data_obj); | 19012 return AccessCheckInfo::cast(data_obj); |
19005 } | 19013 } |
19006 | 19014 |
19007 } // namespace internal | 19015 } // namespace internal |
19008 } // namespace v8 | 19016 } // namespace v8 |
OLD | NEW |