| 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 4618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4629 kPtrOffSize = 30, | 4629 kPtrOffSize = 30, |
| 4630 }; | 4630 }; |
| 4631 | 4631 |
| 4632 class OptimizedBit : public BitField<int32_t, bool, kOptimizedBit, 1> {}; | 4632 class OptimizedBit : public BitField<int32_t, bool, kOptimizedBit, 1> {}; |
| 4633 class AliveBit : public BitField<int32_t, bool, kAliveBit, 1> {}; | 4633 class AliveBit : public BitField<int32_t, bool, kAliveBit, 1> {}; |
| 4634 class PtrOffBits : | 4634 class PtrOffBits : |
| 4635 public BitField<int32_t, intptr_t, kPtrOffBit, kPtrOffSize> {}; | 4635 public BitField<int32_t, intptr_t, kPtrOffBit, kPtrOffSize> {}; |
| 4636 | 4636 |
| 4637 class SlowFindRawCodeVisitor : public FindObjectVisitor { | 4637 class SlowFindRawCodeVisitor : public FindObjectVisitor { |
| 4638 public: | 4638 public: |
| 4639 explicit SlowFindRawCodeVisitor(uword pc) | 4639 explicit SlowFindRawCodeVisitor(uword pc) : pc_(pc) { } |
| 4640 : FindObjectVisitor(Isolate::Current()), pc_(pc) { } | |
| 4641 virtual ~SlowFindRawCodeVisitor() { } | 4640 virtual ~SlowFindRawCodeVisitor() { } |
| 4642 | 4641 |
| 4643 // Check if object matches find condition. | 4642 // Check if object matches find condition. |
| 4644 virtual bool FindObject(RawObject* obj) const; | 4643 virtual bool FindObject(RawObject* obj) const; |
| 4645 | 4644 |
| 4646 private: | 4645 private: |
| 4647 const uword pc_; | 4646 const uword pc_; |
| 4648 | 4647 |
| 4649 DISALLOW_COPY_AND_ASSIGN(SlowFindRawCodeVisitor); | 4648 DISALLOW_COPY_AND_ASSIGN(SlowFindRawCodeVisitor); |
| 4650 }; | 4649 }; |
| (...skipping 3765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8416 | 8415 |
| 8417 | 8416 |
| 8418 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8417 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8419 intptr_t index) { | 8418 intptr_t index) { |
| 8420 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8419 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8421 } | 8420 } |
| 8422 | 8421 |
| 8423 } // namespace dart | 8422 } // namespace dart |
| 8424 | 8423 |
| 8425 #endif // VM_OBJECT_H_ | 8424 #endif // VM_OBJECT_H_ |
| OLD | NEW |