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 14315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
14326 Vector<char> buf = Vector<char>::New(50); | 14326 Vector<char> buf = Vector<char>::New(50); |
14327 intptr_t* ptr = reinterpret_cast<intptr_t*>(begin + constant_pool_offset); | 14327 intptr_t* ptr = reinterpret_cast<intptr_t*>(begin + constant_pool_offset); |
14328 for (int i = 0; i < constant_pool_size; i += kPointerSize, ptr++) { | 14328 for (int i = 0; i < constant_pool_size; i += kPointerSize, ptr++) { |
14329 SNPrintF(buf, "%4d %08" V8PRIxPTR, i, *ptr); | 14329 SNPrintF(buf, "%4d %08" V8PRIxPTR, i, *ptr); |
14330 os << static_cast<const void*>(ptr) << " " << buf.start() << "\n"; | 14330 os << static_cast<const void*>(ptr) << " " << buf.start() << "\n"; |
14331 } | 14331 } |
14332 } | 14332 } |
14333 } | 14333 } |
14334 os << "\n"; | 14334 os << "\n"; |
14335 | 14335 |
| 14336 SourcePositionTableIterator it(source_position_table()); |
| 14337 if (!it.done()) { |
| 14338 os << "Source positions:\n pc offset position\n"; |
| 14339 for (; !it.done(); it.Advance()) { |
| 14340 os << std::setw(10) << it.code_offset() << std::setw(10) |
| 14341 << it.source_position() << (it.is_statement() ? " statement" : "") |
| 14342 << "\n"; |
| 14343 } |
| 14344 os << "\n"; |
| 14345 } |
| 14346 |
14336 if (kind() == FUNCTION) { | 14347 if (kind() == FUNCTION) { |
14337 DeoptimizationOutputData* data = | 14348 DeoptimizationOutputData* data = |
14338 DeoptimizationOutputData::cast(this->deoptimization_data()); | 14349 DeoptimizationOutputData::cast(this->deoptimization_data()); |
14339 data->DeoptimizationOutputDataPrint(os); | 14350 data->DeoptimizationOutputDataPrint(os); |
14340 } else if (kind() == OPTIMIZED_FUNCTION) { | 14351 } else if (kind() == OPTIMIZED_FUNCTION) { |
14341 DeoptimizationInputData* data = | 14352 DeoptimizationInputData* data = |
14342 DeoptimizationInputData::cast(this->deoptimization_data()); | 14353 DeoptimizationInputData::cast(this->deoptimization_data()); |
14343 data->DeoptimizationInputDataPrint(os); | 14354 data->DeoptimizationInputDataPrint(os); |
14344 } | 14355 } |
14345 os << "\n"; | 14356 os << "\n"; |
(...skipping 4603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18949 | 18960 |
18950 Object* data_obj = | 18961 Object* data_obj = |
18951 constructor->shared()->get_api_func_data()->access_check_info(); | 18962 constructor->shared()->get_api_func_data()->access_check_info(); |
18952 if (data_obj->IsUndefined(isolate)) return nullptr; | 18963 if (data_obj->IsUndefined(isolate)) return nullptr; |
18953 | 18964 |
18954 return AccessCheckInfo::cast(data_obj); | 18965 return AccessCheckInfo::cast(data_obj); |
18955 } | 18966 } |
18956 | 18967 |
18957 } // namespace internal | 18968 } // namespace internal |
18958 } // namespace v8 | 18969 } // namespace v8 |
OLD | NEW |