OLD | NEW |
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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 3485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3496 // The load time in milliseconds since epoch. | 3496 // The load time in milliseconds since epoch. |
3497 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } | 3497 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } |
3498 | 3498 |
3499 RawArray* compile_time_constants() const { | 3499 RawArray* compile_time_constants() const { |
3500 return raw_ptr()->compile_time_constants_; | 3500 return raw_ptr()->compile_time_constants_; |
3501 } | 3501 } |
3502 void set_compile_time_constants(const Array& value) const; | 3502 void set_compile_time_constants(const Array& value) const; |
3503 | 3503 |
3504 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } | 3504 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } |
3505 | 3505 |
3506 RawArray* line_starts() const { return raw_ptr()->line_starts_; } | |
3507 | |
3508 void set_line_starts(const Array& value) const; | |
3509 | |
3510 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; | 3506 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; |
3511 | 3507 |
3512 RawLibrary* FindLibrary() const; | 3508 RawLibrary* FindLibrary() const; |
3513 RawString* GetLine(intptr_t line_number, | 3509 RawString* GetLine(intptr_t line_number, |
3514 Heap::Space space = Heap::kNew) const; | 3510 Heap::Space space = Heap::kNew) const; |
3515 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; | 3511 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; |
3516 RawString* GetSnippet(intptr_t from_line, | 3512 RawString* GetSnippet(intptr_t from_line, |
3517 intptr_t from_column, | 3513 intptr_t from_column, |
3518 intptr_t to_line, | 3514 intptr_t to_line, |
3519 intptr_t to_column) const; | 3515 intptr_t to_column) const; |
(...skipping 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8864 | 8860 |
8865 inline void TypeArguments::SetHash(intptr_t value) const { | 8861 inline void TypeArguments::SetHash(intptr_t value) const { |
8866 // This is only safe because we create a new Smi, which does not cause | 8862 // This is only safe because we create a new Smi, which does not cause |
8867 // heap allocation. | 8863 // heap allocation. |
8868 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8864 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
8869 } | 8865 } |
8870 | 8866 |
8871 } // namespace dart | 8867 } // namespace dart |
8872 | 8868 |
8873 #endif // RUNTIME_VM_OBJECT_H_ | 8869 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |