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 2270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2281 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n]. | 2281 // Each (*node_ids)[n] has a an extracted ic data array (*arrays)[n]. |
2282 // Returns the maximum id found. | 2282 // Returns the maximum id found. |
2283 intptr_t ExtractIcDataArraysAtCalls( | 2283 intptr_t ExtractIcDataArraysAtCalls( |
2284 GrowableArray<intptr_t>* node_ids, | 2284 GrowableArray<intptr_t>* node_ids, |
2285 const GrowableObjectArray& ic_data_objs) const; | 2285 const GrowableObjectArray& ic_data_objs) const; |
2286 | 2286 |
2287 private: | 2287 private: |
2288 // An object finder visitor interface. | 2288 // An object finder visitor interface. |
2289 class FindRawCodeVisitor : public FindObjectVisitor { | 2289 class FindRawCodeVisitor : public FindObjectVisitor { |
2290 public: | 2290 public: |
2291 explicit FindRawCodeVisitor(uword pc) : pc_(pc) { } | 2291 explicit FindRawCodeVisitor(uword pc) |
| 2292 : FindObjectVisitor(Isolate::Current()), pc_(pc) { } |
2292 virtual ~FindRawCodeVisitor() { } | 2293 virtual ~FindRawCodeVisitor() { } |
2293 | 2294 |
2294 // Check if object matches find condition. | 2295 // Check if object matches find condition. |
2295 virtual bool FindObject(RawObject* obj); | 2296 virtual bool FindObject(RawObject* obj); |
2296 | 2297 |
2297 private: | 2298 private: |
2298 const uword pc_; | 2299 const uword pc_; |
2299 | 2300 |
2300 DISALLOW_COPY_AND_ASSIGN(FindRawCodeVisitor); | 2301 DISALLOW_COPY_AND_ASSIGN(FindRawCodeVisitor); |
2301 }; | 2302 }; |
(...skipping 2657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4959 } | 4960 } |
4960 | 4961 |
4961 | 4962 |
4962 intptr_t Stackmap::SizeInBits() const { | 4963 intptr_t Stackmap::SizeInBits() const { |
4963 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4964 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
4964 } | 4965 } |
4965 | 4966 |
4966 } // namespace dart | 4967 } // namespace dart |
4967 | 4968 |
4968 #endif // VM_OBJECT_H_ | 4969 #endif // VM_OBJECT_H_ |
OLD | NEW |