| 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 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 friend class Class; | 1915 friend class Class; |
| 1916 }; | 1916 }; |
| 1917 | 1917 |
| 1918 | 1918 |
| 1919 class PcDescriptors : public Object { | 1919 class PcDescriptors : public Object { |
| 1920 public: | 1920 public: |
| 1921 enum Kind { | 1921 enum Kind { |
| 1922 kDeopt = 0, // Deoptimization cotinuation point. | 1922 kDeopt = 0, // Deoptimization cotinuation point. |
| 1923 kPatchCode, // Buffer for patching code entry. | 1923 kPatchCode, // Buffer for patching code entry. |
| 1924 kIcCall, // IC call. | 1924 kIcCall, // IC call. |
| 1925 kFuncCall, // Call to known target, e.g. static call, closure call. |
| 1925 kReturn, // Return from function. | 1926 kReturn, // Return from function. |
| 1926 kOther | 1927 kOther |
| 1927 }; | 1928 }; |
| 1928 | 1929 |
| 1929 intptr_t Length() const; | 1930 intptr_t Length() const; |
| 1930 | 1931 |
| 1931 uword PC(intptr_t index) const; | 1932 uword PC(intptr_t index) const; |
| 1932 PcDescriptors::Kind DescriptorKind(intptr_t index) const; | 1933 PcDescriptors::Kind DescriptorKind(intptr_t index) const; |
| 1933 const char* KindAsStr(intptr_t index) const; | 1934 const char* KindAsStr(intptr_t index) const; |
| 1934 intptr_t NodeId(intptr_t index) const; | 1935 intptr_t NodeId(intptr_t index) const; |
| (...skipping 1807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3742 } | 3743 } |
| 3743 | 3744 |
| 3744 | 3745 |
| 3745 void Context::SetAt(intptr_t index, const Instance& value) const { | 3746 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 3746 StorePointer(InstanceAddr(index), value.raw()); | 3747 StorePointer(InstanceAddr(index), value.raw()); |
| 3747 } | 3748 } |
| 3748 | 3749 |
| 3749 } // namespace dart | 3750 } // namespace dart |
| 3750 | 3751 |
| 3751 #endif // VM_OBJECT_H_ | 3752 #endif // VM_OBJECT_H_ |
| OLD | NEW |