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

Side by Side Diff: runtime/vm/object.h

Issue 292663012: Retaining path in Observatory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.html ('k') | runtime/vm/object.cc » ('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) 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 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 if (value->IsNewObject() && raw()->IsOldObject() && 570 if (value->IsNewObject() && raw()->IsOldObject() &&
571 !raw()->IsRemembered()) { 571 !raw()->IsRemembered()) {
572 raw()->SetRememberedBit(); 572 raw()->SetRememberedBit();
573 Isolate::Current()->store_buffer()->AddObject(raw()); 573 Isolate::Current()->store_buffer()->AddObject(raw());
574 } 574 }
575 } 575 }
576 576
577 RawObject* raw_; // The raw object reference. 577 RawObject* raw_; // The raw object reference.
578 578
579 protected: 579 protected:
580 virtual void PrintJSONImpl(JSONStream* stream, bool ref) const { 580 virtual void PrintJSONImpl(JSONStream* stream, bool ref) const;
581 JSONObject jsobj(stream);
582 jsobj.AddProperty("type", JSONType(ref));
583 }
584 581
585 private: 582 private:
586 static intptr_t NextFieldOffset() { 583 static intptr_t NextFieldOffset() {
587 // Indicates this class cannot be extended by dart code. 584 // Indicates this class cannot be extended by dart code.
588 return -kWordSize; 585 return -kWordSize;
589 } 586 }
590 587
591 static void InitializeObject(uword address, intptr_t id, intptr_t size); 588 static void InitializeObject(uword address, intptr_t id, intptr_t size);
592 589
593 static void RegisterClass(const Class& cls, 590 static void RegisterClass(const Class& cls,
(...skipping 6475 matching lines...) Expand 10 before | Expand all | Expand 10 after
7069 7066
7070 7067
7071 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7068 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7072 intptr_t index) { 7069 intptr_t index) {
7073 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7070 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7074 } 7071 }
7075 7072
7076 } // namespace dart 7073 } // namespace dart
7077 7074
7078 #endif // VM_OBJECT_H_ 7075 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/client/lib/src/elements/instance_view.html ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698