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

Side by Side Diff: src/debug/liveedit.cc

Issue 2358503002: Change the CompilerDispatcherJob to take a SharedFunctionInfo (Closed)
Patch Set: updates Created 4 years, 3 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 | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/factory.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/compiler-dispatcher/compiler-dispatcher-job.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698