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

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

Issue 1420633003: Include "BoundVariable" and "BoundField" types in service response (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 JSONArray jsvars(jsobj, "vars"); 1112 JSONArray jsvars(jsobj, "vars");
1113 const int num_vars = NumLocalVariables(); 1113 const int num_vars = NumLocalVariables();
1114 for (intptr_t v = 0; v < num_vars; v++) { 1114 for (intptr_t v = 0; v < num_vars; v++) {
1115 String& var_name = String::Handle(); 1115 String& var_name = String::Handle();
1116 Instance& var_value = Instance::Handle(); 1116 Instance& var_value = Instance::Handle();
1117 intptr_t token_pos; 1117 intptr_t token_pos;
1118 intptr_t end_token_pos; 1118 intptr_t end_token_pos;
1119 VariableAt(v, &var_name, &token_pos, &end_token_pos, &var_value); 1119 VariableAt(v, &var_name, &token_pos, &end_token_pos, &var_value);
1120 if (var_name.raw() != Symbols::AsyncOperation().raw()) { 1120 if (var_name.raw() != Symbols::AsyncOperation().raw()) {
1121 JSONObject jsvar(&jsvars); 1121 JSONObject jsvar(&jsvars);
1122 jsvar.AddProperty("type", "BoundVariable");
1122 jsvar.AddProperty("name", var_name.ToCString()); 1123 jsvar.AddProperty("name", var_name.ToCString());
1123 jsvar.AddProperty("value", var_value, !full); 1124 jsvar.AddProperty("value", var_value, !full);
1124 // TODO(turnidge): Do we really want to provide this on every 1125 // TODO(turnidge): Do we really want to provide this on every
1125 // stack dump? Should be associated with the function object, I 1126 // stack dump? Should be associated with the function object, I
1126 // think, and not the stack frame. 1127 // think, and not the stack frame.
1127 jsvar.AddProperty("_tokenPos", token_pos); 1128 jsvar.AddProperty("_tokenPos", token_pos);
1128 jsvar.AddProperty("_endTokenPos", end_token_pos); 1129 jsvar.AddProperty("_endTokenPos", end_token_pos);
1129 } 1130 }
1130 } 1131 }
1131 } 1132 }
(...skipping 2107 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 } 3240 }
3240 3241
3241 3242
3242 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 3243 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
3243 ASSERT(bpt->next() == NULL); 3244 ASSERT(bpt->next() == NULL);
3244 bpt->set_next(code_breakpoints_); 3245 bpt->set_next(code_breakpoints_);
3245 code_breakpoints_ = bpt; 3246 code_breakpoints_ = bpt;
3246 } 3247 }
3247 3248
3248 } // namespace dart 3249 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698