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

Side by Side 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 unified diff | 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 »
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ASSERT(!script.IsNull()); 86 ASSERT(!script.IsNull());
87 ASSERT(token_pos_ >= 0); 87 ASSERT(token_pos_ >= 0);
88 } 88 }
89 89
90 // Create a latent breakpoint at given url and line number. 90 // Create a latent breakpoint at given url and line number.
91 BreakpointLocation::BreakpointLocation(const String& url, 91 BreakpointLocation::BreakpointLocation(const String& url,
92 intptr_t requested_line_number, 92 intptr_t requested_line_number,
93 intptr_t requested_column_number) 93 intptr_t requested_column_number)
94 : script_(Script::null()), 94 : script_(Script::null()),
95 url_(url.raw()), 95 url_(url.raw()),
96 token_pos_(-1), 96 token_pos_(Scanner::kNoSourcePos),
97 end_token_pos_(-1), 97 end_token_pos_(Scanner::kNoSourcePos),
98 is_resolved_(false), 98 is_resolved_(false),
99 next_(NULL), 99 next_(NULL),
100 conditions_(NULL), 100 conditions_(NULL),
101 requested_line_number_(requested_line_number), 101 requested_line_number_(requested_line_number),
102 requested_column_number_(requested_column_number), 102 requested_column_number_(requested_column_number),
103 function_(Function::null()), 103 function_(Function::null()),
104 line_number_(-1), 104 line_number_(-1),
105 column_number_(-1) { 105 column_number_(-1) {
106 ASSERT(requested_line_number_ >= 0); 106 ASSERT(requested_line_number_ >= 0);
107 } 107 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 uword fp, 232 uword fp,
233 uword sp, 233 uword sp,
234 const Code& code, 234 const Code& code,
235 const Array& deopt_frame, 235 const Array& deopt_frame,
236 intptr_t deopt_frame_offset) 236 intptr_t deopt_frame_offset)
237 : pc_(pc), fp_(fp), sp_(sp), 237 : pc_(pc), fp_(fp), sp_(sp),
238 ctx_(Context::ZoneHandle()), 238 ctx_(Context::ZoneHandle()),
239 code_(Code::ZoneHandle(code.raw())), 239 code_(Code::ZoneHandle(code.raw())),
240 function_(Function::ZoneHandle(code.function())), 240 function_(Function::ZoneHandle(code.function())),
241 token_pos_initialized_(false), 241 token_pos_initialized_(false),
242 token_pos_(-1), 242 token_pos_(Scanner::kNoSourcePos),
243 try_index_(-1), 243 try_index_(-1),
244 line_number_(-1), 244 line_number_(-1),
245 column_number_(-1), 245 column_number_(-1),
246 context_level_(-1), 246 context_level_(-1),
247 deopt_frame_(Array::ZoneHandle(deopt_frame.raw())), 247 deopt_frame_(Array::ZoneHandle(deopt_frame.raw())),
248 deopt_frame_offset_(deopt_frame_offset), 248 deopt_frame_offset_(deopt_frame_offset),
249 vars_initialized_(false), 249 vars_initialized_(false),
250 var_descriptors_(LocalVarDescriptors::ZoneHandle()), 250 var_descriptors_(LocalVarDescriptors::ZoneHandle()),
251 desc_indices_(8), 251 desc_indices_(8),
252 pc_desc_(PcDescriptors::ZoneHandle()) { 252 pc_desc_(PcDescriptors::ZoneHandle()) {
(...skipping 2990 matching lines...) Expand 10 before | Expand all | Expand 10 after
3243 } 3243 }
3244 3244
3245 3245
3246 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 3246 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
3247 ASSERT(bpt->next() == NULL); 3247 ASSERT(bpt->next() == NULL);
3248 bpt->set_next(code_breakpoints_); 3248 bpt->set_next(code_breakpoints_);
3249 code_breakpoints_ = bpt; 3249 code_breakpoints_ = bpt;
3250 } 3250 }
3251 3251
3252 } // namespace dart 3252 } // namespace dart
OLDNEW
« 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