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

Unified Diff: runtime/vm/debugger.cc

Issue 1564493002: Make Scanner::kNoSourcePos be a true sentinel value (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index 9ba75da4998f3b3040828641be698d7ac63a6cf9..39dc8a8e863e2a2a3f0f892e2226eefc068a6e47 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -93,8 +93,8 @@ BreakpointLocation::BreakpointLocation(const String& url,
intptr_t requested_column_number)
: script_(Script::null()),
url_(url.raw()),
- token_pos_(-1),
- end_token_pos_(-1),
+ token_pos_(Scanner::kNoSourcePos),
+ end_token_pos_(Scanner::kNoSourcePos),
is_resolved_(false),
next_(NULL),
conditions_(NULL),
@@ -239,7 +239,7 @@ ActivationFrame::ActivationFrame(
code_(Code::ZoneHandle(code.raw())),
function_(Function::ZoneHandle(code.function())),
token_pos_initialized_(false),
- token_pos_(-1),
+ token_pos_(Scanner::kNoSourcePos),
try_index_(-1),
line_number_(-1),
column_number_(-1),
« no previous file with comments | « runtime/vm/code_generator_test.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698