OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/debug/liveedit.h" | 5 #include "src/debug/liveedit.h" |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/compilation-cache.h" | 9 #include "src/compilation-cache.h" |
10 #include "src/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1009 ReplaceCodeObject(old_code, new_code); | 1009 ReplaceCodeObject(old_code, new_code); |
1010 } | 1010 } |
1011 } | 1011 } |
1012 | 1012 |
1013 if (shared_info->HasDebugInfo()) { | 1013 if (shared_info->HasDebugInfo()) { |
1014 // Existing break points will be re-applied. Reset the debug info here. | 1014 // Existing break points will be re-applied. Reset the debug info here. |
1015 isolate->debug()->RemoveDebugInfoAndClearFromShared( | 1015 isolate->debug()->RemoveDebugInfoAndClearFromShared( |
1016 handle(shared_info->GetDebugInfo())); | 1016 handle(shared_info->GetDebugInfo())); |
1017 } | 1017 } |
1018 shared_info->set_scope_info(new_shared_info->scope_info()); | 1018 shared_info->set_scope_info(new_shared_info->scope_info()); |
| 1019 shared_info->set_outer_scope_info(new_shared_info->outer_scope_info()); |
1019 shared_info->DisableOptimization(kLiveEdit); | 1020 shared_info->DisableOptimization(kLiveEdit); |
1020 // Update the type feedback vector, if needed. | 1021 // Update the type feedback vector, if needed. |
1021 Handle<TypeFeedbackMetadata> new_feedback_metadata( | 1022 Handle<TypeFeedbackMetadata> new_feedback_metadata( |
1022 new_shared_info->feedback_metadata()); | 1023 new_shared_info->feedback_metadata()); |
1023 feedback_metadata_changed = | 1024 feedback_metadata_changed = |
1024 new_feedback_metadata->DiffersFrom(shared_info->feedback_metadata()); | 1025 new_feedback_metadata->DiffersFrom(shared_info->feedback_metadata()); |
1025 shared_info->set_feedback_metadata(*new_feedback_metadata); | 1026 shared_info->set_feedback_metadata(*new_feedback_metadata); |
1026 } | 1027 } |
1027 | 1028 |
1028 int start_position = compile_info_wrapper.GetStartPosition(); | 1029 int start_position = compile_info_wrapper.GetStartPosition(); |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1915 scope_info_length++; | 1916 scope_info_length++; |
1916 | 1917 |
1917 current_scope = current_scope->outer_scope(); | 1918 current_scope = current_scope->outer_scope(); |
1918 } | 1919 } |
1919 | 1920 |
1920 return scope_info_list; | 1921 return scope_info_list; |
1921 } | 1922 } |
1922 | 1923 |
1923 } // namespace internal | 1924 } // namespace internal |
1924 } // namespace v8 | 1925 } // namespace v8 |
OLD | NEW |