| Index: runtime/vm/debugger_api_impl.cc
|
| ===================================================================
|
| --- runtime/vm/debugger_api_impl.cc (revision 26007)
|
| +++ runtime/vm/debugger_api_impl.cc (working copy)
|
| @@ -5,6 +5,7 @@
|
| #include "include/dart_debugger_api.h"
|
|
|
| #include "vm/class_finalizer.h"
|
| +#include "vm/compiler.h"
|
| #include "vm/dart_api_impl.h"
|
| #include "vm/dart_api_state.h"
|
| #include "vm/debugger.h"
|
| @@ -289,6 +290,12 @@
|
| Isolate* isolate = Isolate::Current();
|
| DARTSCOPE(isolate);
|
| UNWRAP_AND_CHECK_PARAM(String, script_url, script_url_in);
|
| +
|
| + Dart_Handle state = Api::CheckIsolateState(isolate);
|
| + if (::Dart_IsError(state)) {
|
| + return state;
|
| + }
|
| +
|
| Debugger* debugger = isolate->debugger();
|
| ASSERT(debugger != NULL);
|
| SourceBreakpoint* bpt =
|
| @@ -491,6 +498,16 @@
|
| }
|
|
|
|
|
| +DART_EXPORT Dart_Handle Dart_EvaluateExpr(Dart_Handle object_in,
|
| + Dart_Handle expr_in) {
|
| + Isolate* isolate = Isolate::Current();
|
| + DARTSCOPE(isolate);
|
| + UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in);
|
| + UNWRAP_AND_CHECK_PARAM(String, expr, expr_in);
|
| + return Api::NewHandle(isolate, Compiler::Evaluate(obj, expr));
|
| +}
|
| +
|
| +
|
| DART_EXPORT Dart_Handle Dart_GetObjClass(Dart_Handle object_in) {
|
| Isolate* isolate = Isolate::Current();
|
| DARTSCOPE(isolate);
|
|
|