| 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 2564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2575 kSCallTableFunctionEntry = 1, | 2575 kSCallTableFunctionEntry = 1, |
| 2576 kSCallTableCodeEntry = 2, | 2576 kSCallTableCodeEntry = 2, |
| 2577 kSCallTableEntryLength = 3, | 2577 kSCallTableEntryLength = 3, |
| 2578 }; | 2578 }; |
| 2579 | 2579 |
| 2580 void set_static_calls_target_table(const Array& value) const; | 2580 void set_static_calls_target_table(const Array& value) const; |
| 2581 RawArray* static_calls_target_table() const { | 2581 RawArray* static_calls_target_table() const { |
| 2582 return raw_ptr()->static_calls_target_table_; | 2582 return raw_ptr()->static_calls_target_table_; |
| 2583 } | 2583 } |
| 2584 | 2584 |
| 2585 RawDeoptInfo* GetDeoptInfoAtPc(uword pc, intptr_t* deopt_reason) const; |
| 2586 |
| 2585 // Returns null if there is no static call at 'pc'. | 2587 // Returns null if there is no static call at 'pc'. |
| 2586 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; | 2588 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; |
| 2587 // Aborts if there is no static call at 'pc'. | 2589 // Aborts if there is no static call at 'pc'. |
| 2588 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; | 2590 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; |
| 2589 | 2591 |
| 2590 class Comments : public ZoneAllocated { | 2592 class Comments : public ZoneAllocated { |
| 2591 public: | 2593 public: |
| 2592 static Comments& New(intptr_t count); | 2594 static Comments& New(intptr_t count); |
| 2593 | 2595 |
| 2594 intptr_t Length() const; | 2596 intptr_t Length() const; |
| (...skipping 3656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6251 | 6253 |
| 6252 | 6254 |
| 6253 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6255 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6254 intptr_t index) { | 6256 intptr_t index) { |
| 6255 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6257 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6256 } | 6258 } |
| 6257 | 6259 |
| 6258 } // namespace dart | 6260 } // namespace dart |
| 6259 | 6261 |
| 6260 #endif // VM_OBJECT_H_ | 6262 #endif // VM_OBJECT_H_ |
| OLD | NEW |