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

Side by Side Diff: runtime/vm/debugger.cc

Issue 51123003: VM: Fix checked mode crash (issue 13831). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 1759 matching lines...) Expand 10 before | Expand all | Expand 10 after
1770 void Debugger::SetEventHandler(EventHandler* handler) { 1770 void Debugger::SetEventHandler(EventHandler* handler) {
1771 event_handler_ = handler; 1771 event_handler_ = handler;
1772 } 1772 }
1773 1773
1774 1774
1775 bool Debugger::IsDebuggable(const Function& func) { 1775 bool Debugger::IsDebuggable(const Function& func) {
1776 RawFunction::Kind fkind = func.kind(); 1776 RawFunction::Kind fkind = func.kind();
1777 if ((fkind == RawFunction::kImplicitGetter) || 1777 if ((fkind == RawFunction::kImplicitGetter) ||
1778 (fkind == RawFunction::kImplicitSetter) || 1778 (fkind == RawFunction::kImplicitSetter) ||
1779 (fkind == RawFunction::kImplicitStaticFinalGetter) || 1779 (fkind == RawFunction::kImplicitStaticFinalGetter) ||
1780 (fkind == RawFunction::kStaticInitializer) ||
1780 (fkind == RawFunction::kMethodExtractor) || 1781 (fkind == RawFunction::kMethodExtractor) ||
1781 (fkind == RawFunction::kNoSuchMethodDispatcher) || 1782 (fkind == RawFunction::kNoSuchMethodDispatcher) ||
1782 (fkind == RawFunction::kInvokeFieldDispatcher)) { 1783 (fkind == RawFunction::kInvokeFieldDispatcher)) {
1783 return false; 1784 return false;
1784 } 1785 }
1785 const Class& cls = Class::Handle(func.Owner()); 1786 const Class& cls = Class::Handle(func.Owner());
1786 const Library& lib = Library::Handle(cls.library()); 1787 const Library& lib = Library::Handle(cls.library());
1787 return lib.IsDebuggable(); 1788 return lib.IsDebuggable();
1788 } 1789 }
1789 1790
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
2102 } 2103 }
2103 2104
2104 2105
2105 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 2106 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
2106 ASSERT(bpt->next() == NULL); 2107 ASSERT(bpt->next() == NULL);
2107 bpt->set_next(code_breakpoints_); 2108 bpt->set_next(code_breakpoints_);
2108 code_breakpoints_ = bpt; 2109 code_breakpoints_ = bpt;
2109 } 2110 }
2110 2111
2111 } // namespace dart 2112 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698