| 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 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1898 friend class Class; | 1898 friend class Class; |
| 1899 }; | 1899 }; |
| 1900 | 1900 |
| 1901 | 1901 |
| 1902 class PcDescriptors : public Object { | 1902 class PcDescriptors : public Object { |
| 1903 public: | 1903 public: |
| 1904 enum Kind { | 1904 enum Kind { |
| 1905 kDeopt = 0, // Deoptimization cotinuation point. | 1905 kDeopt = 0, // Deoptimization cotinuation point. |
| 1906 kPatchCode, // Buffer for patching code entry. | 1906 kPatchCode, // Buffer for patching code entry. |
| 1907 kIcCall, // IC call. | 1907 kIcCall, // IC call. |
| 1908 kFuncCall, // Call to known target, e.g. static call, closure call. |
| 1908 kReturn, // Return from function. | 1909 kReturn, // Return from function. |
| 1909 kOther | 1910 kOther |
| 1910 }; | 1911 }; |
| 1911 | 1912 |
| 1912 intptr_t Length() const; | 1913 intptr_t Length() const; |
| 1913 | 1914 |
| 1914 uword PC(intptr_t index) const; | 1915 uword PC(intptr_t index) const; |
| 1915 PcDescriptors::Kind DescriptorKind(intptr_t index) const; | 1916 PcDescriptors::Kind DescriptorKind(intptr_t index) const; |
| 1916 const char* KindAsStr(intptr_t index) const; | 1917 const char* KindAsStr(intptr_t index) const; |
| 1917 intptr_t NodeId(intptr_t index) const; | 1918 intptr_t NodeId(intptr_t index) const; |
| (...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3656 } | 3657 } |
| 3657 | 3658 |
| 3658 | 3659 |
| 3659 void Context::SetAt(intptr_t index, const Instance& value) const { | 3660 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 3660 StorePointer(InstanceAddr(index), value.raw()); | 3661 StorePointer(InstanceAddr(index), value.raw()); |
| 3661 } | 3662 } |
| 3662 | 3663 |
| 3663 } // namespace dart | 3664 } // namespace dart |
| 3664 | 3665 |
| 3665 #endif // VM_OBJECT_H_ | 3666 #endif // VM_OBJECT_H_ |
| OLD | NEW |