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

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

Issue 1854713002: Correctly annotate eval origin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase 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 | « src/debug/debug-frames.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/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 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 1367
1368 Handle<String> original_source(String::cast(original->source())); 1368 Handle<String> original_source(String::cast(original->source()));
1369 Handle<Script> copy = isolate->factory()->NewScript(original_source); 1369 Handle<Script> copy = isolate->factory()->NewScript(original_source);
1370 1370
1371 copy->set_name(original->name()); 1371 copy->set_name(original->name());
1372 copy->set_line_offset(original->line_offset()); 1372 copy->set_line_offset(original->line_offset());
1373 copy->set_column_offset(original->column_offset()); 1373 copy->set_column_offset(original->column_offset());
1374 copy->set_type(original->type()); 1374 copy->set_type(original->type());
1375 copy->set_context_data(original->context_data()); 1375 copy->set_context_data(original->context_data());
1376 copy->set_eval_from_shared(original->eval_from_shared()); 1376 copy->set_eval_from_shared(original->eval_from_shared());
1377 copy->set_eval_from_instructions_offset( 1377 copy->set_eval_from_position(original->eval_from_position());
1378 original->eval_from_instructions_offset());
1379 1378
1380 // Copy all the flags, but clear compilation state. 1379 // Copy all the flags, but clear compilation state.
1381 copy->set_flags(original->flags()); 1380 copy->set_flags(original->flags());
1382 copy->set_compilation_state(Script::COMPILATION_STATE_INITIAL); 1381 copy->set_compilation_state(Script::COMPILATION_STATE_INITIAL);
1383 1382
1384 return copy; 1383 return copy;
1385 } 1384 }
1386 1385
1387 1386
1388 Handle<Object> LiveEdit::ChangeScriptSource(Handle<Script> original_script, 1387 Handle<Object> LiveEdit::ChangeScriptSource(Handle<Script> original_script,
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 isolate_->active_function_info_listener()->FunctionCode(code); 2034 isolate_->active_function_info_listener()->FunctionCode(code);
2036 } 2035 }
2037 2036
2038 2037
2039 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2038 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2040 return isolate->active_function_info_listener() != NULL; 2039 return isolate->active_function_info_listener() != NULL;
2041 } 2040 }
2042 2041
2043 } // namespace internal 2042 } // namespace internal
2044 } // namespace v8 2043 } // namespace v8
OLDNEW
« no previous file with comments | « src/debug/debug-frames.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698