| 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 4667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4678 | 4678 |
| 4679 RawCodeSourceMap* code_source_map() const { | 4679 RawCodeSourceMap* code_source_map() const { |
| 4680 return raw_ptr()->code_source_map_; | 4680 return raw_ptr()->code_source_map_; |
| 4681 } | 4681 } |
| 4682 | 4682 |
| 4683 void set_code_source_map(const CodeSourceMap& code_source_map) const { | 4683 void set_code_source_map(const CodeSourceMap& code_source_map) const { |
| 4684 ASSERT(code_source_map.IsOld()); | 4684 ASSERT(code_source_map.IsOld()); |
| 4685 StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw()); | 4685 StorePointer(&raw_ptr()->code_source_map_, code_source_map.raw()); |
| 4686 } | 4686 } |
| 4687 | 4687 |
| 4688 RawArray* await_token_positions() const { | 4688 RawArray* await_token_positions() const; |
| 4689 #if defined(DART_PRECOMPILED_RUNTIME) | |
| 4690 return Array::null(); | |
| 4691 #else | |
| 4692 return raw_ptr()->await_token_positions_; | |
| 4693 #endif | |
| 4694 } | |
| 4695 | |
| 4696 void SetAwaitTokenPositions(const Array& await_token_positions) const; | 4689 void SetAwaitTokenPositions(const Array& await_token_positions) const; |
| 4697 | 4690 |
| 4698 // Used during reloading (see object_reload.cc). Calls Reset on all ICDatas | 4691 // Used during reloading (see object_reload.cc). Calls Reset on all ICDatas |
| 4699 // that are embedded inside the Code object. | 4692 // that are embedded inside the Code object. |
| 4700 void ResetICDatas(Zone* zone) const; | 4693 void ResetICDatas(Zone* zone) const; |
| 4701 | 4694 |
| 4702 // Array of DeoptInfo objects. | 4695 // Array of DeoptInfo objects. |
| 4703 RawArray* deopt_info_array() const { | 4696 RawArray* deopt_info_array() const { |
| 4704 #if defined(DART_PRECOMPILED_RUNTIME) | 4697 #if defined(DART_PRECOMPILED_RUNTIME) |
| 4705 UNREACHABLE(); | 4698 UNREACHABLE(); |
| (...skipping 4218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8924 | 8917 |
| 8925 inline void TypeArguments::SetHash(intptr_t value) const { | 8918 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8926 // This is only safe because we create a new Smi, which does not cause | 8919 // This is only safe because we create a new Smi, which does not cause |
| 8927 // heap allocation. | 8920 // heap allocation. |
| 8928 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8921 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8929 } | 8922 } |
| 8930 | 8923 |
| 8931 } // namespace dart | 8924 } // namespace dart |
| 8932 | 8925 |
| 8933 #endif // RUNTIME_VM_OBJECT_H_ | 8926 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |