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 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2567 kSCallTableFunctionEntry = 1, | 2567 kSCallTableFunctionEntry = 1, |
2568 kSCallTableCodeEntry = 2, | 2568 kSCallTableCodeEntry = 2, |
2569 kSCallTableEntryLength = 3, | 2569 kSCallTableEntryLength = 3, |
2570 }; | 2570 }; |
2571 | 2571 |
2572 void set_static_calls_target_table(const Array& value) const; | 2572 void set_static_calls_target_table(const Array& value) const; |
2573 RawArray* static_calls_target_table() const { | 2573 RawArray* static_calls_target_table() const { |
2574 return raw_ptr()->static_calls_target_table_; | 2574 return raw_ptr()->static_calls_target_table_; |
2575 } | 2575 } |
2576 | 2576 |
| 2577 RawDeoptInfo* GetDeoptInfoAtPc(uword pc, intptr_t* deopt_reason) const; |
| 2578 |
2577 // Returns null if there is no static call at 'pc'. | 2579 // Returns null if there is no static call at 'pc'. |
2578 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; | 2580 RawFunction* GetStaticCallTargetFunctionAt(uword pc) const; |
2579 // Aborts if there is no static call at 'pc'. | 2581 // Aborts if there is no static call at 'pc'. |
2580 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; | 2582 void SetStaticCallTargetCodeAt(uword pc, const Code& code) const; |
2581 | 2583 |
2582 class Comments : public ZoneAllocated { | 2584 class Comments : public ZoneAllocated { |
2583 public: | 2585 public: |
2584 static Comments& New(intptr_t count); | 2586 static Comments& New(intptr_t count); |
2585 | 2587 |
2586 intptr_t Length() const; | 2588 intptr_t Length() const; |
(...skipping 3656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6243 | 6245 |
6244 | 6246 |
6245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6247 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6246 intptr_t index) { | 6248 intptr_t index) { |
6247 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6249 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6248 } | 6250 } |
6249 | 6251 |
6250 } // namespace dart | 6252 } // namespace dart |
6251 | 6253 |
6252 #endif // VM_OBJECT_H_ | 6254 #endif // VM_OBJECT_H_ |
OLD | NEW |