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

Side by Side Diff: src/liveedit.cc

Issue 353823004: Remove unused Debug::AfterCompileFlags flags (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 5 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.cc ('k') | no next file » | 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 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #include "src/liveedit.h" 8 #include "src/liveedit.h"
9 9
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after
1470 1470
1471 Handle<Object> LiveEdit::ChangeScriptSource(Handle<Script> original_script, 1471 Handle<Object> LiveEdit::ChangeScriptSource(Handle<Script> original_script,
1472 Handle<String> new_source, 1472 Handle<String> new_source,
1473 Handle<Object> old_script_name) { 1473 Handle<Object> old_script_name) {
1474 Isolate* isolate = original_script->GetIsolate(); 1474 Isolate* isolate = original_script->GetIsolate();
1475 Handle<Object> old_script_object; 1475 Handle<Object> old_script_object;
1476 if (old_script_name->IsString()) { 1476 if (old_script_name->IsString()) {
1477 Handle<Script> old_script = CreateScriptCopy(original_script); 1477 Handle<Script> old_script = CreateScriptCopy(original_script);
1478 old_script->set_name(String::cast(*old_script_name)); 1478 old_script->set_name(String::cast(*old_script_name));
1479 old_script_object = old_script; 1479 old_script_object = old_script;
1480 isolate->debug()->OnAfterCompile(old_script, Debug::SEND_WHEN_DEBUGGING); 1480 isolate->debug()->OnAfterCompile(old_script);
1481 } else { 1481 } else {
1482 old_script_object = isolate->factory()->null_value(); 1482 old_script_object = isolate->factory()->null_value();
1483 } 1483 }
1484 1484
1485 original_script->set_source(*new_source); 1485 original_script->set_source(*new_source);
1486 1486
1487 // Drop line ends so that they will be recalculated. 1487 // Drop line ends so that they will be recalculated.
1488 original_script->set_line_ends(isolate->heap()->undefined_value()); 1488 original_script->set_line_ends(isolate->heap()->undefined_value());
1489 1489
1490 return old_script_object; 1490 return old_script_object;
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) { 2078 void LiveEditFunctionTracker::RecordRootFunctionInfo(Handle<Code> code) {
2079 isolate_->active_function_info_listener()->FunctionCode(code); 2079 isolate_->active_function_info_listener()->FunctionCode(code);
2080 } 2080 }
2081 2081
2082 2082
2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { 2083 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) {
2084 return isolate->active_function_info_listener() != NULL; 2084 return isolate->active_function_info_listener() != NULL;
2085 } 2085 }
2086 2086
2087 } } // namespace v8::internal 2087 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698