| 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 5451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5462 virtual RawAbstractTypeArguments* GetTypeArguments() const { | 5462 virtual RawAbstractTypeArguments* GetTypeArguments() const { |
| 5463 return raw_ptr()->type_arguments_; | 5463 return raw_ptr()->type_arguments_; |
| 5464 } | 5464 } |
| 5465 virtual void SetTypeArguments(const AbstractTypeArguments& value) const { | 5465 virtual void SetTypeArguments(const AbstractTypeArguments& value) const { |
| 5466 StorePointer(&raw_ptr()->type_arguments_, value.raw()); | 5466 StorePointer(&raw_ptr()->type_arguments_, value.raw()); |
| 5467 } | 5467 } |
| 5468 static intptr_t type_arguments_offset() { | 5468 static intptr_t type_arguments_offset() { |
| 5469 return OFFSET_OF(RawClosure, type_arguments_); | 5469 return OFFSET_OF(RawClosure, type_arguments_); |
| 5470 } | 5470 } |
| 5471 | 5471 |
| 5472 // TODO(iposva): Remove smrck support once mapping to arbitrary is available. | |
| 5473 RawInteger* smrck() const { return raw_ptr()->smrck_; } | |
| 5474 void set_smrck(const Integer& smrck) const { | |
| 5475 StorePointer(&raw_ptr()->smrck_, smrck.raw()); | |
| 5476 } | |
| 5477 static intptr_t smrck_offset() { return OFFSET_OF(RawClosure, smrck_); } | |
| 5478 | |
| 5479 static intptr_t InstanceSize() { | 5472 static intptr_t InstanceSize() { |
| 5480 return RoundedAllocationSize(sizeof(RawClosure)); | 5473 return RoundedAllocationSize(sizeof(RawClosure)); |
| 5481 } | 5474 } |
| 5482 | 5475 |
| 5483 static RawClosure* New(const Function& function, | 5476 static RawClosure* New(const Function& function, |
| 5484 const Context& context, | 5477 const Context& context, |
| 5485 Heap::Space space = Heap::kNew); | 5478 Heap::Space space = Heap::kNew); |
| 5486 | 5479 |
| 5487 private: | 5480 private: |
| 5488 void set_function(const Function& value) const; | 5481 void set_function(const Function& value) const; |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5735 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5728 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5736 return false; | 5729 return false; |
| 5737 } | 5730 } |
| 5738 } | 5731 } |
| 5739 return true; | 5732 return true; |
| 5740 } | 5733 } |
| 5741 | 5734 |
| 5742 } // namespace dart | 5735 } // namespace dart |
| 5743 | 5736 |
| 5744 #endif // VM_OBJECT_H_ | 5737 #endif // VM_OBJECT_H_ |
| OLD | NEW |