| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1745 }; | 1745 }; |
| 1746 | 1746 |
| 1747 | 1747 |
| 1748 class LocalVarDescriptors : public Object { | 1748 class LocalVarDescriptors : public Object { |
| 1749 public: | 1749 public: |
| 1750 intptr_t Length() const; | 1750 intptr_t Length() const; |
| 1751 | 1751 |
| 1752 RawString* GetName(intptr_t var_index) const; | 1752 RawString* GetName(intptr_t var_index) const; |
| 1753 void GetRange(intptr_t var_index, | 1753 void GetRange(intptr_t var_index, |
| 1754 intptr_t* begin_token_pos, intptr_t* end_token_pos) const; | 1754 intptr_t* begin_token_pos, intptr_t* end_token_pos) const; |
| 1755 intptr_t GetSlotIndex(intptr_t var_index) const; |
| 1755 | 1756 |
| 1756 void SetVar(intptr_t var_index, | 1757 void SetVar(intptr_t var_index, |
| 1757 const String& name, | 1758 const String& name, |
| 1758 intptr_t stack_slot, | 1759 intptr_t stack_slot, |
| 1759 intptr_t begin_pos, | 1760 intptr_t begin_pos, |
| 1760 intptr_t end_pos) const; | 1761 intptr_t end_pos) const; |
| 1761 | 1762 |
| 1762 static intptr_t InstanceSize() { | 1763 static intptr_t InstanceSize() { |
| 1763 ASSERT(sizeof(RawLocalVarDescriptors) == | 1764 ASSERT(sizeof(RawLocalVarDescriptors) == |
| 1764 OFFSET_OF(RawLocalVarDescriptors, data_)); | 1765 OFFSET_OF(RawLocalVarDescriptors, data_)); |
| (...skipping 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3347 } | 3348 } |
| 3348 | 3349 |
| 3349 | 3350 |
| 3350 void Context::SetAt(intptr_t index, const Instance& value) const { | 3351 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 3351 StorePointer(InstanceAddr(index), value.raw()); | 3352 StorePointer(InstanceAddr(index), value.raw()); |
| 3352 } | 3353 } |
| 3353 | 3354 |
| 3354 } // namespace dart | 3355 } // namespace dart |
| 3355 | 3356 |
| 3356 #endif // VM_OBJECT_H_ | 3357 #endif // VM_OBJECT_H_ |
| OLD | NEW |