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

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

Issue 2788413004: [inspector] cache stack frame for call sites (Closed)
Patch Set: ready for review Created 3 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 | « no previous file | src/factory.cc » ('j') | src/isolate.cc » ('J')
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/assembler-inl.h" 7 #include "src/assembler-inl.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/compilation-cache.h" 10 #include "src/compilation-cache.h"
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 SourcePosition position = iterator.source_position(); 1036 SourcePosition position = iterator.source_position();
1037 position.SetScriptOffset( 1037 position.SetScriptOffset(
1038 TranslatePosition(position.ScriptOffset(), position_change_array)); 1038 TranslatePosition(position.ScriptOffset(), position_change_array));
1039 builder.AddPosition(iterator.code_offset(), position, 1039 builder.AddPosition(iterator.code_offset(), position,
1040 iterator.is_statement()); 1040 iterator.is_statement());
1041 } 1041 }
1042 1042
1043 Handle<ByteArray> new_source_position_table( 1043 Handle<ByteArray> new_source_position_table(
1044 builder.ToSourcePositionTable(isolate, code)); 1044 builder.ToSourcePositionTable(isolate, code));
1045 code->set_source_position_table(*new_source_position_table); 1045 code->set_source_position_table(*new_source_position_table);
1046 code->set_stack_frame_cache(Smi::kZero);
1046 } 1047 }
1047 } // namespace 1048 } // namespace
1048 1049
1049 void LiveEdit::PatchFunctionPositions(Handle<JSArray> shared_info_array, 1050 void LiveEdit::PatchFunctionPositions(Handle<JSArray> shared_info_array,
1050 Handle<JSArray> position_change_array) { 1051 Handle<JSArray> position_change_array) {
1051 SharedInfoWrapper shared_info_wrapper(shared_info_array); 1052 SharedInfoWrapper shared_info_wrapper(shared_info_array);
1052 Handle<SharedFunctionInfo> info = shared_info_wrapper.GetInfo(); 1053 Handle<SharedFunctionInfo> info = shared_info_wrapper.GetInfo();
1053 1054
1054 int old_function_start = info->start_position(); 1055 int old_function_start = info->start_position();
1055 int new_function_start = TranslatePosition(old_function_start, 1056 int new_function_start = TranslatePosition(old_function_start,
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1644 scope_info_length++; 1645 scope_info_length++;
1645 1646
1646 current_scope = current_scope->outer_scope(); 1647 current_scope = current_scope->outer_scope();
1647 } 1648 }
1648 1649
1649 return scope_info_list; 1650 return scope_info_list;
1650 } 1651 }
1651 1652
1652 } // namespace internal 1653 } // namespace internal
1653 } // namespace v8 1654 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698