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 VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
6 #define VM_OBJECT_H_ | 6 #define 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 3378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3389 RawScript::Kind kind() const { | 3389 RawScript::Kind kind() const { |
3390 return static_cast<RawScript::Kind>(raw_ptr()->kind_); | 3390 return static_cast<RawScript::Kind>(raw_ptr()->kind_); |
3391 } | 3391 } |
3392 const char* GetKindAsCString() const; | 3392 const char* GetKindAsCString() const; |
3393 intptr_t line_offset() const { return raw_ptr()->line_offset_; } | 3393 intptr_t line_offset() const { return raw_ptr()->line_offset_; } |
3394 intptr_t col_offset() const { return raw_ptr()->col_offset_; } | 3394 intptr_t col_offset() const { return raw_ptr()->col_offset_; } |
3395 | 3395 |
3396 // The load time in milliseconds since epoch. | 3396 // The load time in milliseconds since epoch. |
3397 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } | 3397 int64_t load_timestamp() const { return raw_ptr()->load_timestamp_; } |
3398 | 3398 |
| 3399 RawArray* compile_time_constants() const { |
| 3400 return raw_ptr()->compile_time_constants_; |
| 3401 } |
| 3402 void set_compile_time_constants(const Array& value) const; |
| 3403 |
3399 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } | 3404 RawTokenStream* tokens() const { return raw_ptr()->tokens_; } |
3400 | 3405 |
3401 void Tokenize(const String& private_key, | 3406 void Tokenize(const String& private_key, |
3402 bool use_shared_tokens = true) const; | 3407 bool use_shared_tokens = true) const; |
3403 | 3408 |
3404 RawLibrary* FindLibrary() const; | 3409 RawLibrary* FindLibrary() const; |
3405 RawString* GetLine(intptr_t line_number, | 3410 RawString* GetLine(intptr_t line_number, |
3406 Heap::Space space = Heap::kNew) const; | 3411 Heap::Space space = Heap::kNew) const; |
3407 RawString* GetSnippet(intptr_t from_line, | 3412 RawString* GetSnippet(intptr_t from_line, |
3408 intptr_t from_column, | 3413 intptr_t from_column, |
(...skipping 5241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8650 | 8655 |
8651 inline void TypeArguments::SetHash(intptr_t value) const { | 8656 inline void TypeArguments::SetHash(intptr_t value) const { |
8652 // This is only safe because we create a new Smi, which does not cause | 8657 // This is only safe because we create a new Smi, which does not cause |
8653 // heap allocation. | 8658 // heap allocation. |
8654 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8659 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
8655 } | 8660 } |
8656 | 8661 |
8657 } // namespace dart | 8662 } // namespace dart |
8658 | 8663 |
8659 #endif // VM_OBJECT_H_ | 8664 #endif // VM_OBJECT_H_ |
OLD | NEW |