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

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

Issue 1767113007: Fix crash when setting breakpoint in Observatory (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | no next file » | 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 3327 matching lines...) Expand 10 before | Expand all | Expand 10 after
3338 3338
3339 3339
3340 void Class::set_token_pos(TokenPosition token_pos) const { 3340 void Class::set_token_pos(TokenPosition token_pos) const {
3341 ASSERT(!token_pos.IsClassifying()); 3341 ASSERT(!token_pos.IsClassifying());
3342 StoreNonPointer(&raw_ptr()->token_pos_, token_pos); 3342 StoreNonPointer(&raw_ptr()->token_pos_, token_pos);
3343 } 3343 }
3344 3344
3345 3345
3346 TokenPosition Class::ComputeEndTokenPos() const { 3346 TokenPosition Class::ComputeEndTokenPos() const {
3347 // Return the begin token for synthetic classes. 3347 // Return the begin token for synthetic classes.
3348 if (IsMixinApplication() || IsTopLevel()) { 3348 if (is_synthesized_class() || IsMixinApplication() || IsTopLevel()) {
3349 return token_pos(); 3349 return token_pos();
3350 } 3350 }
3351 const Script& scr = Script::Handle(script()); 3351 const Script& scr = Script::Handle(script());
3352 ASSERT(!scr.IsNull()); 3352 ASSERT(!scr.IsNull());
3353 const TokenStream& tkns = TokenStream::Handle(scr.tokens()); 3353 const TokenStream& tkns = TokenStream::Handle(scr.tokens());
3354 TokenStream::Iterator tkit(tkns, 3354 TokenStream::Iterator tkit(tkns,
3355 token_pos(), 3355 token_pos(),
3356 TokenStream::Iterator::kNoNewlines); 3356 TokenStream::Iterator::kNoNewlines);
3357 intptr_t level = 0; 3357 intptr_t level = 0;
3358 while (tkit.CurrentTokenKind() != Token::kEOS) { 3358 while (tkit.CurrentTokenKind() != Token::kEOS) {
(...skipping 18517 matching lines...) Expand 10 before | Expand all | Expand 10 after
21876 return UserTag::null(); 21876 return UserTag::null();
21877 } 21877 }
21878 21878
21879 21879
21880 const char* UserTag::ToCString() const { 21880 const char* UserTag::ToCString() const {
21881 const String& tag_label = String::Handle(label()); 21881 const String& tag_label = String::Handle(label());
21882 return tag_label.ToCString(); 21882 return tag_label.ToCString();
21883 } 21883 }
21884 21884
21885 } // namespace dart 21885 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698