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

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

Issue 2065933002: [gcmole] Fix source files pattern in GYP parsing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix found issues. Created 4 years, 6 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 | tools/gcmole/gcmole.lua » ('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/scopeinfo.h" 7 #include "src/ast/scopeinfo.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 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 1248
1249 for (interpreter::SourcePositionTableIterator iterator( 1249 for (interpreter::SourcePositionTableIterator iterator(
1250 bytecode->source_position_table()); 1250 bytecode->source_position_table());
1251 !iterator.done(); iterator.Advance()) { 1251 !iterator.done(); iterator.Advance()) {
1252 int position = iterator.source_position(); 1252 int position = iterator.source_position();
1253 int new_position = TranslatePosition(position, position_change_array); 1253 int new_position = TranslatePosition(position, position_change_array);
1254 builder.AddPosition(iterator.bytecode_offset(), new_position, 1254 builder.AddPosition(iterator.bytecode_offset(), new_position,
1255 iterator.is_statement()); 1255 iterator.is_statement());
1256 } 1256 }
1257 1257
1258 bytecode->set_source_position_table(*builder.ToSourcePositionTable()); 1258 Handle<ByteArray> source_position_table = builder.ToSourcePositionTable();
1259 bytecode->set_source_position_table(*source_position_table);
1259 } 1260 }
1260 } // namespace 1261 } // namespace
1261 1262
1262 void LiveEdit::PatchFunctionPositions(Handle<JSArray> shared_info_array, 1263 void LiveEdit::PatchFunctionPositions(Handle<JSArray> shared_info_array,
1263 Handle<JSArray> position_change_array) { 1264 Handle<JSArray> position_change_array) {
1264 SharedInfoWrapper shared_info_wrapper(shared_info_array); 1265 SharedInfoWrapper shared_info_wrapper(shared_info_array);
1265 Handle<SharedFunctionInfo> info = shared_info_wrapper.GetInfo(); 1266 Handle<SharedFunctionInfo> info = shared_info_wrapper.GetInfo();
1266 1267
1267 int old_function_start = info->start_position(); 1268 int old_function_start = info->start_position();
1268 int new_function_start = TranslatePosition(old_function_start, 1269 int new_function_start = TranslatePosition(old_function_start,
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 scope_info_length++; 2043 scope_info_length++;
2043 2044
2044 current_scope = current_scope->outer_scope(); 2045 current_scope = current_scope->outer_scope();
2045 } 2046 }
2046 2047
2047 return scope_info_list; 2048 return scope_info_list;
2048 } 2049 }
2049 2050
2050 } // namespace internal 2051 } // namespace internal
2051 } // namespace v8 2052 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | tools/gcmole/gcmole.lua » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698