| 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 3500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3511 // The load time in milliseconds since epoch. | 3511 // The load time in milliseconds since epoch. |
| 3512 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } | 3512 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } |
| 3513 | 3513 |
| 3514 RawArray* compile_time_constants() const { | 3514 RawArray* compile_time_constants() const { |
| 3515 return raw_ptr()->compile_time_constants_; | 3515 return raw_ptr()->compile_time_constants_; |
| 3516 } | 3516 } |
| 3517 void set_compile_time_constants(const Array& value) const; | 3517 void set_compile_time_constants(const Array& value) const; |
| 3518 | 3518 |
| 3519 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } | 3519 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } |
| 3520 | 3520 |
| 3521 RawArray* line_starts() const { return raw_ptr()->line_starts_; } | |
| 3522 | |
| 3523 void set_line_starts(const Array& value) const; | 3521 void set_line_starts(const Array& value) const; |
| 3524 | 3522 |
| 3525 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; | 3523 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; |
| 3526 | 3524 |
| 3527 RawLibrary* FindLibrary() const; | 3525 RawLibrary* FindLibrary() const; |
| 3528 RawString* GetLine(intptr_t line_number, | 3526 RawString* GetLine(intptr_t line_number, |
| 3529 Heap::Space space = Heap::kNew) const; | 3527 Heap::Space space = Heap::kNew) const; |
| 3530 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; | 3528 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; |
| 3531 RawString* GetSnippet(intptr_t from_line, | 3529 RawString* GetSnippet(intptr_t from_line, |
| 3532 intptr_t from_column, | 3530 intptr_t from_column, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3564 const String& source, | 3562 const String& source, |
| 3565 RawScript::Kind kind); | 3563 RawScript::Kind kind); |
| 3566 | 3564 |
| 3567 private: | 3565 private: |
| 3568 void set_url(const String& value) const; | 3566 void set_url(const String& value) const; |
| 3569 void set_resolved_url(const String& value) const; | 3567 void set_resolved_url(const String& value) const; |
| 3570 void set_source(const String& value) const; | 3568 void set_source(const String& value) const; |
| 3571 void set_kind(RawScript::Kind value) const; | 3569 void set_kind(RawScript::Kind value) const; |
| 3572 void set_load_timestamp(int64_t value) const; | 3570 void set_load_timestamp(int64_t value) const; |
| 3573 void set_tokens(const TokenStream& value) const; | 3571 void set_tokens(const TokenStream& value) const; |
| 3572 RawArray* line_starts() const { return raw_ptr()->line_starts_; } |
| 3574 | 3573 |
| 3575 static RawScript* New(); | 3574 static RawScript* New(); |
| 3576 | 3575 |
| 3577 FINAL_HEAP_OBJECT_IMPLEMENTATION(Script, Object); | 3576 FINAL_HEAP_OBJECT_IMPLEMENTATION(Script, Object); |
| 3578 friend class Class; | 3577 friend class Class; |
| 3579 friend class Precompiler; | 3578 friend class Precompiler; |
| 3580 }; | 3579 }; |
| 3581 | 3580 |
| 3582 | 3581 |
| 3583 class DictionaryIterator : public ValueObject { | 3582 class DictionaryIterator : public ValueObject { |
| (...skipping 5320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8904 | 8903 |
| 8905 inline void TypeArguments::SetHash(intptr_t value) const { | 8904 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8906 // This is only safe because we create a new Smi, which does not cause | 8905 // This is only safe because we create a new Smi, which does not cause |
| 8907 // heap allocation. | 8906 // heap allocation. |
| 8908 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8907 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8909 } | 8908 } |
| 8910 | 8909 |
| 8911 } // namespace dart | 8910 } // namespace dart |
| 8912 | 8911 |
| 8913 #endif // RUNTIME_VM_OBJECT_H_ | 8912 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |