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

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

Issue 392933003: vm/observatory: Clean up script access (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
« no previous file with comments | « runtime/vm/coverage_test.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 <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 2496 matching lines...) Expand 10 before | Expand all | Expand 10 after
2507 return static_cast<RawScript::Kind>(raw_ptr()->kind_); 2507 return static_cast<RawScript::Kind>(raw_ptr()->kind_);
2508 } 2508 }
2509 const char* GetKindAsCString() const; 2509 const char* GetKindAsCString() const;
2510 intptr_t line_offset() const { return raw_ptr()->line_offset_; } 2510 intptr_t line_offset() const { return raw_ptr()->line_offset_; }
2511 intptr_t col_offset() const { return raw_ptr()->col_offset_; } 2511 intptr_t col_offset() const { return raw_ptr()->col_offset_; }
2512 2512
2513 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } 2513 RawTokenStream* tokens() const { return raw_ptr()->tokens_; }
2514 2514
2515 void Tokenize(const String& private_key) const; 2515 void Tokenize(const String& private_key) const;
2516 2516
2517 RawLibrary* FindLibrary() const;
2517 RawString* GetLine(intptr_t line_number) const; 2518 RawString* GetLine(intptr_t line_number) const;
2518 RawString* GetSnippet(intptr_t from_token_pos, 2519 RawString* GetSnippet(intptr_t from_token_pos,
2519 intptr_t to_token_pos) const; 2520 intptr_t to_token_pos) const;
2520 RawString* GetSnippet(intptr_t from_line, 2521 RawString* GetSnippet(intptr_t from_line,
2521 intptr_t from_column, 2522 intptr_t from_column,
2522 intptr_t to_line, 2523 intptr_t to_line,
2523 intptr_t to_column) const; 2524 intptr_t to_column) const;
2524 2525
2525 void SetLocationOffset(intptr_t line_offset, intptr_t col_offset) const; 2526 void SetLocationOffset(intptr_t line_offset, intptr_t col_offset) const;
2526 2527
(...skipping 4650 matching lines...) Expand 10 before | Expand all | Expand 10 after
7177 7178
7178 7179
7179 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7180 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7180 intptr_t index) { 7181 intptr_t index) {
7181 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7182 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7182 } 7183 }
7183 7184
7184 } // namespace dart 7185 } // namespace dart
7185 7186
7186 #endif // VM_OBJECT_H_ 7187 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/coverage_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698