| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 #include "vm/disassembler.h" | 5 #include "vm/disassembler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 #include "vm/globals.h" | 8 #include "vm/globals.h" |
| 9 #include "vm/os.h" | 9 #include "vm/os.h" |
| 10 #include "vm/json_stream.h" | 10 #include "vm/json_stream.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 private: | 95 private: |
| 96 const uword addr_; | 96 const uword addr_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(FindAddrVisitor); | 98 DISALLOW_COPY_AND_ASSIGN(FindAddrVisitor); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 | 101 |
| 102 bool Disassembler::CanFindOldObject(uword addr) { | 102 bool Disassembler::CanFindOldObject(uword addr) { |
| 103 FindAddrVisitor visitor(addr); | 103 FindAddrVisitor visitor(addr); |
| 104 NoGCScope no_gc; |
| 104 return Isolate::Current()->heap()->FindOldObject(&visitor) != Object::null(); | 105 return Isolate::Current()->heap()->FindOldObject(&visitor) != Object::null(); |
| 105 } | 106 } |
| 106 | 107 |
| 107 } // namespace dart | 108 } // namespace dart |
| OLD | NEW |