Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: src/objects.cc

Issue 2143033002: Revert of Implement .eh_frame writer and disassembler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@eh-frame-base
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/perf-jit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "src/source-position-table.h" 54 #include "src/source-position-table.h"
55 #include "src/string-builder.h" 55 #include "src/string-builder.h"
56 #include "src/string-search.h" 56 #include "src/string-search.h"
57 #include "src/string-stream.h" 57 #include "src/string-stream.h"
58 #include "src/utils.h" 58 #include "src/utils.h"
59 #include "src/zone.h" 59 #include "src/zone.h"
60 60
61 #ifdef ENABLE_DISASSEMBLER 61 #ifdef ENABLE_DISASSEMBLER
62 #include "src/disasm.h" 62 #include "src/disasm.h"
63 #include "src/disassembler.h" 63 #include "src/disassembler.h"
64 #include "src/eh-frame.h"
65 #endif 64 #endif
66 65
67 namespace v8 { 66 namespace v8 {
68 namespace internal { 67 namespace internal {
69 68
70 std::ostream& operator<<(std::ostream& os, InstanceType instance_type) { 69 std::ostream& operator<<(std::ostream& os, InstanceType instance_type) {
71 switch (instance_type) { 70 switch (instance_type) {
72 #define WRITE_TYPE(TYPE) \ 71 #define WRITE_TYPE(TYPE) \
73 case TYPE: \ 72 case TYPE: \
74 return os << #TYPE; 73 return os << #TYPE;
(...skipping 14291 matching lines...) Expand 10 before | Expand all | Expand 10 after
14366 HandlerTable::cast(handler_table())->HandlerTableReturnPrint(os); 14365 HandlerTable::cast(handler_table())->HandlerTableReturnPrint(os);
14367 } 14366 }
14368 os << "\n"; 14367 os << "\n";
14369 } 14368 }
14370 14369
14371 os << "RelocInfo (size = " << relocation_size() << ")\n"; 14370 os << "RelocInfo (size = " << relocation_size() << ")\n";
14372 for (RelocIterator it(this); !it.done(); it.next()) { 14371 for (RelocIterator it(this); !it.done(); it.next()) {
14373 it.rinfo()->Print(GetIsolate(), os); 14372 it.rinfo()->Print(GetIsolate(), os);
14374 } 14373 }
14375 os << "\n"; 14374 os << "\n";
14376
14377 if (has_unwinding_info()) {
14378 os << "UnwindingInfo (size = " << unwinding_info_size() << ")\n";
14379 EhFrameDisassembler eh_frame_disassembler(unwinding_info_start(),
14380 unwinding_info_end());
14381 eh_frame_disassembler.DisassembleToStream(os);
14382 os << "\n";
14383 }
14384 } 14375 }
14385 #endif // ENABLE_DISASSEMBLER 14376 #endif // ENABLE_DISASSEMBLER
14386 14377
14387 14378
14388 void BytecodeArray::Disassemble(std::ostream& os) { 14379 void BytecodeArray::Disassemble(std::ostream& os) {
14389 os << "Parameter count " << parameter_count() << "\n"; 14380 os << "Parameter count " << parameter_count() << "\n";
14390 os << "Frame size " << frame_size() << "\n"; 14381 os << "Frame size " << frame_size() << "\n";
14391 14382
14392 const uint8_t* base_address = GetFirstBytecodeAddress(); 14383 const uint8_t* base_address = GetFirstBytecodeAddress();
14393 SourcePositionTableIterator source_positions(source_position_table()); 14384 SourcePositionTableIterator source_positions(source_position_table());
(...skipping 4572 matching lines...) Expand 10 before | Expand all | Expand 10 after
18966 18957
18967 Object* data_obj = 18958 Object* data_obj =
18968 constructor->shared()->get_api_func_data()->access_check_info(); 18959 constructor->shared()->get_api_func_data()->access_check_info();
18969 if (data_obj->IsUndefined(isolate)) return nullptr; 18960 if (data_obj->IsUndefined(isolate)) return nullptr;
18970 18961
18971 return AccessCheckInfo::cast(data_obj); 18962 return AccessCheckInfo::cast(data_obj);
18972 } 18963 }
18973 18964
18974 } // namespace internal 18965 } // namespace internal
18975 } // namespace v8 18966 } // namespace v8
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/perf-jit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698