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 3212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3223 RawArray* ObjectPool() const { | 3223 RawArray* ObjectPool() const { |
3224 const Instructions& instr = Instructions::Handle(instructions()); | 3224 const Instructions& instr = Instructions::Handle(instructions()); |
3225 return instr.object_pool(); | 3225 return instr.object_pool(); |
3226 } | 3226 } |
3227 bool ContainsInstructionAt(uword addr) const { | 3227 bool ContainsInstructionAt(uword addr) const { |
3228 const Instructions& instr = Instructions::Handle(instructions()); | 3228 const Instructions& instr = Instructions::Handle(instructions()); |
3229 const uword offset = addr - instr.EntryPoint(); | 3229 const uword offset = addr - instr.EntryPoint(); |
3230 return offset < static_cast<uword>(instr.size()); | 3230 return offset < static_cast<uword>(instr.size()); |
3231 } | 3231 } |
3232 | 3232 |
| 3233 // Returns true if there is a debugger breakpoint set in this code object. |
| 3234 bool HasBreakpoint() const; |
| 3235 |
3233 RawPcDescriptors* pc_descriptors() const { | 3236 RawPcDescriptors* pc_descriptors() const { |
3234 return raw_ptr()->pc_descriptors_; | 3237 return raw_ptr()->pc_descriptors_; |
3235 } | 3238 } |
3236 void set_pc_descriptors(const PcDescriptors& descriptors) const { | 3239 void set_pc_descriptors(const PcDescriptors& descriptors) const { |
3237 ASSERT(descriptors.IsOld()); | 3240 ASSERT(descriptors.IsOld()); |
3238 StorePointer(&raw_ptr()->pc_descriptors_, descriptors.raw()); | 3241 StorePointer(&raw_ptr()->pc_descriptors_, descriptors.raw()); |
3239 } | 3242 } |
3240 | 3243 |
3241 // Array of DeoptInfo objects. | 3244 // Array of DeoptInfo objects. |
3242 RawArray* deopt_info_array() const { | 3245 RawArray* deopt_info_array() const { |
(...skipping 3389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6632 | 6635 |
6633 | 6636 |
6634 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6637 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6635 intptr_t index) { | 6638 intptr_t index) { |
6636 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6639 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6637 } | 6640 } |
6638 | 6641 |
6639 } // namespace dart | 6642 } // namespace dart |
6640 | 6643 |
6641 #endif // VM_OBJECT_H_ | 6644 #endif // VM_OBJECT_H_ |
OLD | NEW |