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

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

Issue 351373002: Coverage API revamp (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 <limits> 8 #include <limits>
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after
2512 intptr_t* line, intptr_t* column) const; 2512 intptr_t* line, intptr_t* column) const;
2513 2513
2514 // Returns index of first and last token on the given line. Returns both 2514 // Returns index of first and last token on the given line. Returns both
2515 // indices < 0 if no token exists on or after the line. If a token exists 2515 // indices < 0 if no token exists on or after the line. If a token exists
2516 // after, but not on given line, returns in *first_token_index the index of 2516 // after, but not on given line, returns in *first_token_index the index of
2517 // the first token after the line, and a negative value in *last_token_index. 2517 // the first token after the line, and a negative value in *last_token_index.
2518 void TokenRangeAtLine(intptr_t line_number, 2518 void TokenRangeAtLine(intptr_t line_number,
2519 intptr_t* first_token_index, 2519 intptr_t* first_token_index,
2520 intptr_t* last_token_index) const; 2520 intptr_t* last_token_index) const;
2521 2521
2522 RawLibrary* FindLibrary() const;
2523
2524 static intptr_t InstanceSize() { 2522 static intptr_t InstanceSize() {
2525 return RoundedAllocationSize(sizeof(RawScript)); 2523 return RoundedAllocationSize(sizeof(RawScript));
2526 } 2524 }
2527 2525
2528 static RawScript* New(const String& url, 2526 static RawScript* New(const String& url,
2529 const String& source, 2527 const String& source,
2530 RawScript::Kind kind); 2528 RawScript::Kind kind);
2531 2529
2532 static RawScript* FindByUrl(const String& url); 2530 static RawScript* FindByUrl(const String& url);
2533 2531
(...skipping 4600 matching lines...) Expand 10 before | Expand all | Expand 10 after
7134 7132
7135 7133
7136 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7134 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7137 intptr_t index) { 7135 intptr_t index) {
7138 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7136 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7139 } 7137 }
7140 7138
7141 } // namespace dart 7139 } // namespace dart
7142 7140
7143 #endif // VM_OBJECT_H_ 7141 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698