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

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

Issue 1312763010: Support column-based breakpoints in the VM and Observatory. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: hausner review Created 5 years, 3 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/json_stream.cc ('k') | 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 3204 matching lines...) Expand 10 before | Expand all | Expand 10 after
3215 RawLibrary* FindLibrary() const; 3215 RawLibrary* FindLibrary() const;
3216 RawString* GetLine(intptr_t line_number) const; 3216 RawString* GetLine(intptr_t line_number) const;
3217 RawString* GetSnippet(intptr_t from_line, 3217 RawString* GetSnippet(intptr_t from_line,
3218 intptr_t from_column, 3218 intptr_t from_column,
3219 intptr_t to_line, 3219 intptr_t to_line,
3220 intptr_t to_column) const; 3220 intptr_t to_column) const;
3221 3221
3222 void SetLocationOffset(intptr_t line_offset, intptr_t col_offset) const; 3222 void SetLocationOffset(intptr_t line_offset, intptr_t col_offset) const;
3223 3223
3224 void GetTokenLocation(intptr_t token_pos, 3224 void GetTokenLocation(intptr_t token_pos,
3225 intptr_t* line, intptr_t* column) const; 3225 intptr_t* line,
3226 intptr_t* column,
3227 intptr_t* token_len = NULL) const;
3226 3228
3227 // Returns index of first and last token on the given line. Returns both 3229 // Returns index of first and last token on the given line. Returns both
3228 // indices < 0 if no token exists on or after the line. If a token exists 3230 // indices < 0 if no token exists on or after the line. If a token exists
3229 // after, but not on given line, returns in *first_token_index the index of 3231 // after, but not on given line, returns in *first_token_index the index of
3230 // the first token after the line, and a negative value in *last_token_index. 3232 // the first token after the line, and a negative value in *last_token_index.
3231 void TokenRangeAtLine(intptr_t line_number, 3233 void TokenRangeAtLine(intptr_t line_number,
3232 intptr_t* first_token_index, 3234 intptr_t* first_token_index,
3233 intptr_t* last_token_index) const; 3235 intptr_t* last_token_index) const;
3234 3236
3235 static intptr_t InstanceSize() { 3237 static intptr_t InstanceSize() {
(...skipping 4890 matching lines...) Expand 10 before | Expand all | Expand 10 after
8126 8128
8127 8129
8128 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8130 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8129 intptr_t index) { 8131 intptr_t index) {
8130 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8132 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8131 } 8133 }
8132 8134
8133 } // namespace dart 8135 } // namespace dart
8134 8136
8135 #endif // VM_OBJECT_H_ 8137 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/json_stream.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698