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

Unified Diff: runtime/vm/debugger.cc

Issue 10827288: - Support for patching of class methods and fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/debugger.cc
===================================================================
--- runtime/vm/debugger.cc (revision 10615)
+++ runtime/vm/debugger.cc (working copy)
@@ -69,8 +69,7 @@
RawScript* SourceBreakpoint::SourceCode() {
const Function& func = Function::Handle(function_);
- const Class& cls = Class::Handle(func.owner());
- return cls.script();
+ return func.script();
}
@@ -136,7 +135,7 @@
const char* Debugger::QualifiedFunctionName(const Function& func) {
const String& func_name = String::Handle(func.name());
- Class& func_class = Class::Handle(func.owner());
+ Class& func_class = Class::Handle(func.Owner());
String& class_name = String::Handle(func_class.Name());
const char* kFormat = "%s%s%s";
@@ -168,14 +167,13 @@
RawScript* ActivationFrame::SourceScript() {
const Function& func = DartFunction();
- const Class& cls = Class::Handle(func.owner());
- return cls.script();
+ return func.script();
}
RawLibrary* ActivationFrame::Library() {
const Function& func = DartFunction();
- const Class& cls = Class::Handle(func.owner());
+ const Class& cls = Class::Handle(func.Owner());
return cls.library();
}
@@ -488,8 +486,7 @@
RawScript* CodeBreakpoint::SourceCode() {
const Function& func = Function::Handle(function_);
- const Class& cls = Class::Handle(func.owner());
- return cls.script();
+ return func.script();
}
@@ -1275,7 +1272,7 @@
(fkind == RawFunction::kConstImplicitGetter)) {
return false;
}
- const Class& cls = Class::Handle(func.owner());
+ const Class& cls = Class::Handle(func.Owner());
const Library& lib = Library::Handle(cls.library());
return lib.IsDebuggable();
}
@@ -1426,7 +1423,7 @@
if (lookup_function.raw() == bpt->function()) {
// Check if the breakpoint is inside a closure or local function
// within the newly compiled function.
- Class& owner = Class::Handle(lookup_function.owner());
+ Class& owner = Class::Handle(lookup_function.Owner());
Function& closure =
Function::Handle(owner.LookupClosureFunction(bpt->token_pos()));
if (!closure.IsNull() && (closure.raw() != lookup_function.raw())) {
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/exceptions.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698