OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/deoptimizer.h" | 5 #include "src/deoptimizer.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/ast/prettyprinter.h" | 8 #include "src/ast/prettyprinter.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/disasm.h" | 10 #include "src/disasm.h" |
(...skipping 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3376 } | 3376 } |
3377 | 3377 |
3378 | 3378 |
3379 TranslatedState::TranslatedState(JavaScriptFrame* frame) | 3379 TranslatedState::TranslatedState(JavaScriptFrame* frame) |
3380 : isolate_(nullptr), | 3380 : isolate_(nullptr), |
3381 stack_frame_pointer_(nullptr), | 3381 stack_frame_pointer_(nullptr), |
3382 has_adapted_arguments_(false) { | 3382 has_adapted_arguments_(false) { |
3383 int deopt_index = Safepoint::kNoDeoptimizationIndex; | 3383 int deopt_index = Safepoint::kNoDeoptimizationIndex; |
3384 DeoptimizationInputData* data = | 3384 DeoptimizationInputData* data = |
3385 static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index); | 3385 static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index); |
| 3386 DCHECK(data != nullptr && deopt_index != Safepoint::kNoDeoptimizationIndex); |
3386 TranslationIterator it(data->TranslationByteArray(), | 3387 TranslationIterator it(data->TranslationByteArray(), |
3387 data->TranslationIndex(deopt_index)->value()); | 3388 data->TranslationIndex(deopt_index)->value()); |
3388 Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */, | 3389 Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */, |
3389 nullptr /* trace file */); | 3390 nullptr /* trace file */); |
3390 } | 3391 } |
3391 | 3392 |
3392 | 3393 |
3393 TranslatedState::TranslatedState() | 3394 TranslatedState::TranslatedState() |
3394 : isolate_(nullptr), | 3395 : isolate_(nullptr), |
3395 stack_frame_pointer_(nullptr), | 3396 stack_frame_pointer_(nullptr), |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3810 CHECK(value_info->IsMaterializedObject()); | 3811 CHECK(value_info->IsMaterializedObject()); |
3811 | 3812 |
3812 value_info->value_ = | 3813 value_info->value_ = |
3813 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3814 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
3814 } | 3815 } |
3815 } | 3816 } |
3816 } | 3817 } |
3817 | 3818 |
3818 } // namespace internal | 3819 } // namespace internal |
3819 } // namespace v8 | 3820 } // namespace v8 |
OLD | NEW |