| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "platform/address_sanitizer.h" | 5 #include "platform/address_sanitizer.h" |
| 6 #include "platform/memory_sanitizer.h" | 6 #include "platform/memory_sanitizer.h" |
| 7 #include "platform/utils.h" | 7 #include "platform/utils.h" |
| 8 | 8 |
| 9 #include "vm/allocation.h" | 9 #include "vm/allocation.h" |
| 10 #include "vm/atomic.h" | 10 #include "vm/atomic.h" |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 | 1323 |
| 1324 class CodeLookupTableBuilder : public ObjectVisitor { | 1324 class CodeLookupTableBuilder : public ObjectVisitor { |
| 1325 public: | 1325 public: |
| 1326 explicit CodeLookupTableBuilder(CodeLookupTable* table) : table_(table) { | 1326 explicit CodeLookupTableBuilder(CodeLookupTable* table) : table_(table) { |
| 1327 ASSERT(table_ != NULL); | 1327 ASSERT(table_ != NULL); |
| 1328 } | 1328 } |
| 1329 | 1329 |
| 1330 ~CodeLookupTableBuilder() {} | 1330 ~CodeLookupTableBuilder() {} |
| 1331 | 1331 |
| 1332 void VisitObject(RawObject* raw_obj) { | 1332 void VisitObject(RawObject* raw_obj) { |
| 1333 uint32_t tags = raw_obj->ptr()->tags_; | 1333 uword tags = raw_obj->ptr()->tags_; |
| 1334 if (RawObject::ClassIdTag::decode(tags) == kCodeCid) { | 1334 if (RawObject::ClassIdTag::decode(tags) == kCodeCid) { |
| 1335 RawCode* raw_code = reinterpret_cast<RawCode*>(raw_obj); | 1335 RawCode* raw_code = reinterpret_cast<RawCode*>(raw_obj); |
| 1336 const Code& code = Code::Handle(raw_code); | 1336 const Code& code = Code::Handle(raw_code); |
| 1337 ASSERT(!code.IsNull()); | 1337 ASSERT(!code.IsNull()); |
| 1338 const Instructions& instructions = | 1338 const Instructions& instructions = |
| 1339 Instructions::Handle(code.instructions()); | 1339 Instructions::Handle(code.instructions()); |
| 1340 ASSERT(!instructions.IsNull()); | 1340 ASSERT(!instructions.IsNull()); |
| 1341 table_->Add(code); | 1341 table_->Add(code); |
| 1342 } | 1342 } |
| 1343 } | 1343 } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 | 1621 |
| 1622 | 1622 |
| 1623 ProcessedSampleBuffer::ProcessedSampleBuffer() | 1623 ProcessedSampleBuffer::ProcessedSampleBuffer() |
| 1624 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { | 1624 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { |
| 1625 ASSERT(code_lookup_table_ != NULL); | 1625 ASSERT(code_lookup_table_ != NULL); |
| 1626 } | 1626 } |
| 1627 | 1627 |
| 1628 #endif // !PRODUCT | 1628 #endif // !PRODUCT |
| 1629 | 1629 |
| 1630 } // namespace dart | 1630 } // namespace dart |
| OLD | NEW |