| 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 2602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2613 #endif | 2613 #endif |
| 2614 } | 2614 } |
| 2615 | 2615 |
| 2616 void set_kernel_function(void* kernel_function) const { | 2616 void set_kernel_function(void* kernel_function) const { |
| 2617 #if !defined(DART_PRECOMPILED_RUNTIME) | 2617 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 2618 StoreNonPointer(&raw_ptr()->kernel_function_, kernel_function); | 2618 StoreNonPointer(&raw_ptr()->kernel_function_, kernel_function); |
| 2619 #endif | 2619 #endif |
| 2620 } | 2620 } |
| 2621 | 2621 |
| 2622 bool IsOptimizable() const; | 2622 bool IsOptimizable() const; |
| 2623 bool IsNativeAutoSetupScope() const; | |
| 2624 void SetIsOptimizable(bool value) const; | 2623 void SetIsOptimizable(bool value) const; |
| 2625 void SetIsNativeAutoSetupScope(bool value) const; | |
| 2626 | 2624 |
| 2627 bool CanBeInlined() const; | 2625 bool CanBeInlined() const; |
| 2628 | 2626 |
| 2629 MethodRecognizer::Kind recognized_kind() const { | 2627 MethodRecognizer::Kind recognized_kind() const { |
| 2630 return RecognizedBits::decode(raw_ptr()->kind_tag_); | 2628 return RecognizedBits::decode(raw_ptr()->kind_tag_); |
| 2631 } | 2629 } |
| 2632 void set_recognized_kind(MethodRecognizer::Kind value) const; | 2630 void set_recognized_kind(MethodRecognizer::Kind value) const; |
| 2633 | 2631 |
| 2634 bool IsRecognized() const { | 2632 bool IsRecognized() const { |
| 2635 return recognized_kind() != MethodRecognizer::kUnknown; | 2633 return recognized_kind() != MethodRecognizer::kUnknown; |
| (...skipping 6333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8969 | 8967 |
| 8970 inline void TypeArguments::SetHash(intptr_t value) const { | 8968 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8971 // This is only safe because we create a new Smi, which does not cause | 8969 // This is only safe because we create a new Smi, which does not cause |
| 8972 // heap allocation. | 8970 // heap allocation. |
| 8973 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8971 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8974 } | 8972 } |
| 8975 | 8973 |
| 8976 } // namespace dart | 8974 } // namespace dart |
| 8977 | 8975 |
| 8978 #endif // RUNTIME_VM_OBJECT_H_ | 8976 #endif // RUNTIME_VM_OBJECT_H_ |
| OLD | NEW |