| 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 3762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3773 value_changed = true; | 3773 value_changed = true; |
| 3774 } else { | 3774 } else { |
| 3775 CHECK(previously_materialized_objects->get(i) == *value); | 3775 CHECK(previously_materialized_objects->get(i) == *value); |
| 3776 } | 3776 } |
| 3777 } | 3777 } |
| 3778 } | 3778 } |
| 3779 if (new_store && value_changed) { | 3779 if (new_store && value_changed) { |
| 3780 materialized_store->Set(stack_frame_pointer_, | 3780 materialized_store->Set(stack_frame_pointer_, |
| 3781 previously_materialized_objects); | 3781 previously_materialized_objects); |
| 3782 CHECK(frames_[0].kind() == TranslatedFrame::kFunction || | 3782 CHECK(frames_[0].kind() == TranslatedFrame::kFunction || |
| 3783 frames_[0].kind() == TranslatedFrame::kInterpretedFunction); | 3783 frames_[0].kind() == TranslatedFrame::kInterpretedFunction || |
| 3784 frames_[0].kind() == TranslatedFrame::kTailCallerFunction); |
| 3784 Object* const function = frames_[0].front().GetRawValue(); | 3785 Object* const function = frames_[0].front().GetRawValue(); |
| 3785 Deoptimizer::DeoptimizeFunction(JSFunction::cast(function)); | 3786 Deoptimizer::DeoptimizeFunction(JSFunction::cast(function)); |
| 3786 } | 3787 } |
| 3787 } | 3788 } |
| 3788 | 3789 |
| 3789 | 3790 |
| 3790 void TranslatedState::UpdateFromPreviouslyMaterializedObjects() { | 3791 void TranslatedState::UpdateFromPreviouslyMaterializedObjects() { |
| 3791 MaterializedObjectStore* materialized_store = | 3792 MaterializedObjectStore* materialized_store = |
| 3792 isolate_->materialized_object_store(); | 3793 isolate_->materialized_object_store(); |
| 3793 Handle<FixedArray> previously_materialized_objects = | 3794 Handle<FixedArray> previously_materialized_objects = |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3811 CHECK(value_info->IsMaterializedObject()); | 3812 CHECK(value_info->IsMaterializedObject()); |
| 3812 | 3813 |
| 3813 value_info->value_ = | 3814 value_info->value_ = |
| 3814 Handle<Object>(previously_materialized_objects->get(i), isolate_); | 3815 Handle<Object>(previously_materialized_objects->get(i), isolate_); |
| 3815 } | 3816 } |
| 3816 } | 3817 } |
| 3817 } | 3818 } |
| 3818 | 3819 |
| 3819 } // namespace internal | 3820 } // namespace internal |
| 3820 } // namespace v8 | 3821 } // namespace v8 |
| OLD | NEW |