| 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 3322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3333 return RoundedAllocationSize(sizeof(RawCode) + (len * kBytesPerElement)); | 3333 return RoundedAllocationSize(sizeof(RawCode) + (len * kBytesPerElement)); |
| 3334 } | 3334 } |
| 3335 static RawCode* FinalizeCode(const Function& function, | 3335 static RawCode* FinalizeCode(const Function& function, |
| 3336 Assembler* assembler, | 3336 Assembler* assembler, |
| 3337 bool optimized = false); | 3337 bool optimized = false); |
| 3338 static RawCode* FinalizeCode(const char* name, | 3338 static RawCode* FinalizeCode(const char* name, |
| 3339 Assembler* assembler, | 3339 Assembler* assembler, |
| 3340 bool optimized = false); | 3340 bool optimized = false); |
| 3341 static RawCode* LookupCode(uword pc); | 3341 static RawCode* LookupCode(uword pc); |
| 3342 static RawCode* LookupCodeInVmIsolate(uword pc); | 3342 static RawCode* LookupCodeInVmIsolate(uword pc); |
| 3343 static RawCode* FindCode(uword pc, int64_t timestamp); |
| 3343 | 3344 |
| 3344 int32_t GetPointerOffsetAt(int index) const { | 3345 int32_t GetPointerOffsetAt(int index) const { |
| 3345 return *PointerOffsetAddrAt(index); | 3346 return *PointerOffsetAddrAt(index); |
| 3346 } | 3347 } |
| 3347 intptr_t GetTokenIndexOfPC(uword pc) const; | 3348 intptr_t GetTokenIndexOfPC(uword pc) const; |
| 3348 | 3349 |
| 3349 // Find pc, return 0 if not found. | 3350 // Find pc, return 0 if not found. |
| 3350 uword GetPatchCodePc() const; | 3351 uword GetPatchCodePc() const; |
| 3351 uword GetLazyDeoptPc() const; | 3352 uword GetLazyDeoptPc() const; |
| 3352 | 3353 |
| (...skipping 3380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6733 | 6734 |
| 6734 | 6735 |
| 6735 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6736 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6736 intptr_t index) { | 6737 intptr_t index) { |
| 6737 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6738 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6738 } | 6739 } |
| 6739 | 6740 |
| 6740 } // namespace dart | 6741 } // namespace dart |
| 6741 | 6742 |
| 6742 #endif // VM_OBJECT_H_ | 6743 #endif // VM_OBJECT_H_ |
| OLD | NEW |