| 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 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3594 RawTypedData* kernel_string_offsets() const { | 3594 RawTypedData* kernel_string_offsets() const { |
| 3595 return raw_ptr()->kernel_string_offsets_; | 3595 return raw_ptr()->kernel_string_offsets_; |
| 3596 } | 3596 } |
| 3597 void set_kernel_string_offsets(const TypedData& offsets) const; | 3597 void set_kernel_string_offsets(const TypedData& offsets) const; |
| 3598 | 3598 |
| 3599 RawTypedData* kernel_string_data() const { | 3599 RawTypedData* kernel_string_data() const { |
| 3600 return raw_ptr()->kernel_string_data_; | 3600 return raw_ptr()->kernel_string_data_; |
| 3601 } | 3601 } |
| 3602 void set_kernel_string_data(const TypedData& data) const; | 3602 void set_kernel_string_data(const TypedData& data) const; |
| 3603 | 3603 |
| 3604 RawTypedData* kernel_canonical_names() const { |
| 3605 return raw_ptr()->kernel_canonical_names_; |
| 3606 } |
| 3607 void set_kernel_canonical_names(const TypedData& names) const; |
| 3608 |
| 3604 RawTokenStream* tokens() const { | 3609 RawTokenStream* tokens() const { |
| 3605 ASSERT(kind() != RawScript::kKernelTag); | 3610 ASSERT(kind() != RawScript::kKernelTag); |
| 3606 return raw_ptr()->tokens_; | 3611 return raw_ptr()->tokens_; |
| 3607 } | 3612 } |
| 3608 | 3613 |
| 3609 void set_line_starts(const Array& value) const; | 3614 void set_line_starts(const Array& value) const; |
| 3610 | 3615 |
| 3611 void set_debug_positions(const Array& value) const; | 3616 void set_debug_positions(const Array& value) const; |
| 3612 | 3617 |
| 3613 void set_yield_positions(const Array& value) const; | 3618 void set_yield_positions(const Array& value) const; |
| (...skipping 5399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9013 | 9018 |
| 9014 inline void TypeArguments::SetHash(intptr_t value) const { | 9019 inline void TypeArguments::SetHash(intptr_t value) const { |
| 9015 // This is only safe because we create a new Smi, which does not cause | 9020 // This is only safe because we create a new Smi, which does not cause |
| 9016 // heap allocation. | 9021 // heap allocation. |
| 9017 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9022 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 9018 } | 9023 } |
| 9019 | 9024 |
| 9020 } // namespace dart | 9025 } // namespace dart |
| 9021 | 9026 |
| 9022 #endif // RUNTIME_VM_OBJECT_H_ | 9027 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |