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 13805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13816 UNREACHABLE(); | 13816 UNREACHABLE(); |
13817 break; | 13817 break; |
13818 } | 13818 } |
13819 return NULL; | 13819 return NULL; |
13820 } | 13820 } |
13821 | 13821 |
13822 | 13822 |
13823 void Code::PrintDeoptLocation(FILE* out, Address pc) { | 13823 void Code::PrintDeoptLocation(FILE* out, Address pc) { |
13824 Deoptimizer::DeoptInfo info = Deoptimizer::GetDeoptInfo(this, pc); | 13824 Deoptimizer::DeoptInfo info = Deoptimizer::GetDeoptInfo(this, pc); |
13825 class SourcePosition pos = info.position; | 13825 class SourcePosition pos = info.position; |
13826 if (info.deopt_reason != Deoptimizer::kNoReason || !pos.IsUnknown()) { | 13826 if (info.deopt_reason != DeoptimizeReason::kNoReason || !pos.IsUnknown()) { |
13827 if (FLAG_hydrogen_track_positions) { | 13827 if (FLAG_hydrogen_track_positions) { |
13828 PrintF(out, " ;;; deoptimize at %d_%d: %s\n", | 13828 PrintF(out, " ;;; deoptimize at %d_%d: %s\n", |
13829 pos.inlining_id(), pos.position(), | 13829 pos.inlining_id(), pos.position(), |
13830 Deoptimizer::GetDeoptReason(info.deopt_reason)); | 13830 DeoptimizeReasonToString(info.deopt_reason)); |
13831 } else { | 13831 } else { |
13832 PrintF(out, " ;;; deoptimize at %d: %s\n", pos.raw(), | 13832 PrintF(out, " ;;; deoptimize at %d: %s\n", pos.raw(), |
13833 Deoptimizer::GetDeoptReason(info.deopt_reason)); | 13833 DeoptimizeReasonToString(info.deopt_reason)); |
13834 } | 13834 } |
13835 } | 13835 } |
13836 } | 13836 } |
13837 | 13837 |
13838 | 13838 |
13839 bool Code::CanDeoptAt(Address pc) { | 13839 bool Code::CanDeoptAt(Address pc) { |
13840 DeoptimizationInputData* deopt_data = | 13840 DeoptimizationInputData* deopt_data = |
13841 DeoptimizationInputData::cast(deoptimization_data()); | 13841 DeoptimizationInputData::cast(deoptimization_data()); |
13842 Address code_start_address = instruction_start(); | 13842 Address code_start_address = instruction_start(); |
13843 for (int i = 0; i < deopt_data->DeoptCount(); i++) { | 13843 for (int i = 0; i < deopt_data->DeoptCount(); i++) { |
(...skipping 5091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18935 | 18935 |
18936 Object* data_obj = | 18936 Object* data_obj = |
18937 constructor->shared()->get_api_func_data()->access_check_info(); | 18937 constructor->shared()->get_api_func_data()->access_check_info(); |
18938 if (data_obj->IsUndefined(isolate)) return nullptr; | 18938 if (data_obj->IsUndefined(isolate)) return nullptr; |
18939 | 18939 |
18940 return AccessCheckInfo::cast(data_obj); | 18940 return AccessCheckInfo::cast(data_obj); |
18941 } | 18941 } |
18942 | 18942 |
18943 } // namespace internal | 18943 } // namespace internal |
18944 } // namespace v8 | 18944 } // namespace v8 |
OLD | NEW |