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

Unified Diff: runtime/vm/debugger.cc

Issue 9169102: Add Dart_PropagateError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Removed some unneeded includes Created 8 years, 11 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 3415)
+++ runtime/vm/debugger.cc (working copy)
@@ -274,10 +274,14 @@
}
-Breakpoint* Debugger::SetBreakpointAtEntry(const Function& target_function) {
+Breakpoint* Debugger::SetBreakpointAtEntry(const Function& target_function,
+ Error* error) {
ASSERT(!target_function.IsNull());
if (!target_function.HasCode()) {
- Compiler::CompileFunction(target_function);
+ *error = Compiler::CompileFunction(target_function);
+ if (!error->IsNull()) {
+ return NULL;
+ }
}
Code& code = Code::Handle(target_function.code());
ASSERT(!code.IsNull());

Powered by Google App Engine
This is Rietveld 408576698