| 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 3532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3543 // The load time in milliseconds since epoch. | 3543 // The load time in milliseconds since epoch. |
| 3544 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } | 3544 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } |
| 3545 | 3545 |
| 3546 RawArray* compile_time_constants() const { | 3546 RawArray* compile_time_constants() const { |
| 3547 return raw_ptr()->compile_time_constants_; | 3547 return raw_ptr()->compile_time_constants_; |
| 3548 } | 3548 } |
| 3549 void set_compile_time_constants(const Array& value) const; | 3549 void set_compile_time_constants(const Array& value) const; |
| 3550 | 3550 |
| 3551 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } | 3551 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } |
| 3552 | 3552 |
| 3553 RawArray* line_starts() const { return raw_ptr()->line_starts_; } | |
| 3554 | |
| 3555 void set_line_starts(const Array& value) const; | 3553 void set_line_starts(const Array& value) const; |
| 3556 | 3554 |
| 3557 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; | 3555 void Tokenize(const String& private_key, bool use_shared_tokens = true) const; |
| 3558 | 3556 |
| 3559 RawLibrary* FindLibrary() const; | 3557 RawLibrary* FindLibrary() const; |
| 3560 RawString* GetLine(intptr_t line_number, | 3558 RawString* GetLine(intptr_t line_number, |
| 3561 Heap::Space space = Heap::kNew) const; | 3559 Heap::Space space = Heap::kNew) const; |
| 3562 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; | 3560 RawString* GetSnippet(TokenPosition from, TokenPosition to) const; |
| 3563 RawString* GetSnippet(intptr_t from_line, | 3561 RawString* GetSnippet(intptr_t from_line, |
| 3564 intptr_t from_column, | 3562 intptr_t from_column, |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3596 const String& source, | 3594 const String& source, |
| 3597 RawScript::Kind kind); | 3595 RawScript::Kind kind); |
| 3598 | 3596 |
| 3599 private: | 3597 private: |
| 3600 void set_url(const String& value) const; | 3598 void set_url(const String& value) const; |
| 3601 void set_resolved_url(const String& value) const; | 3599 void set_resolved_url(const String& value) const; |
| 3602 void set_source(const String& value) const; | 3600 void set_source(const String& value) const; |
| 3603 void set_kind(RawScript::Kind value) const; | 3601 void set_kind(RawScript::Kind value) const; |
| 3604 void set_load_timestamp(int64_t value) const; | 3602 void set_load_timestamp(int64_t value) const; |
| 3605 void set_tokens(const TokenStream& value) const; | 3603 void set_tokens(const TokenStream& value) const; |
| 3604 RawArray* line_starts() const { return raw_ptr()->line_starts_; } |
| 3606 | 3605 |
| 3607 static RawScript* New(); | 3606 static RawScript* New(); |
| 3608 | 3607 |
| 3609 FINAL_HEAP_OBJECT_IMPLEMENTATION(Script, Object); | 3608 FINAL_HEAP_OBJECT_IMPLEMENTATION(Script, Object); |
| 3610 friend class Class; | 3609 friend class Class; |
| 3611 friend class Precompiler; | 3610 friend class Precompiler; |
| 3612 }; | 3611 }; |
| 3613 | 3612 |
| 3614 | 3613 |
| 3615 class DictionaryIterator : public ValueObject { | 3614 class DictionaryIterator : public ValueObject { |
| (...skipping 5320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8936 | 8935 |
| 8937 inline void TypeArguments::SetHash(intptr_t value) const { | 8936 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8938 // This is only safe because we create a new Smi, which does not cause | 8937 // This is only safe because we create a new Smi, which does not cause |
| 8939 // heap allocation. | 8938 // heap allocation. |
| 8940 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8939 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8941 } | 8940 } |
| 8942 | 8941 |
| 8943 } // namespace dart | 8942 } // namespace dart |
| 8944 | 8943 |
| 8945 #endif // RUNTIME_VM_OBJECT_H_ | 8944 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |