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

Side by Side Diff: src/deoptimizer.cc

Issue 1884123002: Version 5.1.281.7 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.1
Patch Set: Created 4 years, 8 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 | « include/v8-version.h ('k') | test/mjsunit/regress/regress-crbug-601617.js » ('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 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
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
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
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | test/mjsunit/regress/regress-crbug-601617.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698