Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: runtime/vm/profiler.cc

Issue 2953753002: Revert "Inline instance object hash code into object header on 64 bit." (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 1315
1316 class CodeLookupTableBuilder : public ObjectVisitor { 1316 class CodeLookupTableBuilder : public ObjectVisitor {
1317 public: 1317 public:
1318 explicit CodeLookupTableBuilder(CodeLookupTable* table) : table_(table) { 1318 explicit CodeLookupTableBuilder(CodeLookupTable* table) : table_(table) {
1319 ASSERT(table_ != NULL); 1319 ASSERT(table_ != NULL);
1320 } 1320 }
1321 1321
1322 ~CodeLookupTableBuilder() {} 1322 ~CodeLookupTableBuilder() {}
1323 1323
1324 void VisitObject(RawObject* raw_obj) { 1324 void VisitObject(RawObject* raw_obj) {
1325 uint32_t tags = raw_obj->ptr()->tags_; 1325 uword tags = raw_obj->ptr()->tags_;
1326 if (RawObject::ClassIdTag::decode(tags) == kCodeCid) { 1326 if (RawObject::ClassIdTag::decode(tags) == kCodeCid) {
1327 RawCode* raw_code = reinterpret_cast<RawCode*>(raw_obj); 1327 RawCode* raw_code = reinterpret_cast<RawCode*>(raw_obj);
1328 const Code& code = Code::Handle(raw_code); 1328 const Code& code = Code::Handle(raw_code);
1329 ASSERT(!code.IsNull()); 1329 ASSERT(!code.IsNull());
1330 const Instructions& instructions = 1330 const Instructions& instructions =
1331 Instructions::Handle(code.instructions()); 1331 Instructions::Handle(code.instructions());
1332 ASSERT(!instructions.IsNull()); 1332 ASSERT(!instructions.IsNull());
1333 table_->Add(code); 1333 table_->Add(code);
1334 } 1334 }
1335 } 1335 }
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 1613
1614 1614
1615 ProcessedSampleBuffer::ProcessedSampleBuffer() 1615 ProcessedSampleBuffer::ProcessedSampleBuffer()
1616 : code_lookup_table_(new CodeLookupTable(Thread::Current())) { 1616 : code_lookup_table_(new CodeLookupTable(Thread::Current())) {
1617 ASSERT(code_lookup_table_ != NULL); 1617 ASSERT(code_lookup_table_ != NULL);
1618 } 1618 }
1619 1619
1620 #endif // !PRODUCT 1620 #endif // !PRODUCT
1621 1621
1622 } // namespace dart 1622 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698