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

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

Issue 804673003: Update tag bits atomically (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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/vm/gc_marker.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) 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 848
849 // An object visitor which will mark all visited objects. This is used to 849 // An object visitor which will mark all visited objects. This is used to
850 // premark all objects in the vm_isolate_ heap. 850 // premark all objects in the vm_isolate_ heap.
851 class PremarkingVisitor : public ObjectVisitor { 851 class PremarkingVisitor : public ObjectVisitor {
852 public: 852 public:
853 explicit PremarkingVisitor(Isolate* isolate) : ObjectVisitor(isolate) {} 853 explicit PremarkingVisitor(Isolate* isolate) : ObjectVisitor(isolate) {}
854 854
855 void VisitObject(RawObject* obj) { 855 void VisitObject(RawObject* obj) {
856 // RawInstruction objects are premarked on allocation. 856 // RawInstruction objects are premarked on allocation.
857 if (!obj->IsMarked()) { 857 if (!obj->IsMarked()) {
858 obj->SetMarkBit(); 858 obj->SetMarkBitUnsynchronized();
859 } 859 }
860 } 860 }
861 }; 861 };
862 862
863 863
864 #define SET_CLASS_NAME(class_name, name) \ 864 #define SET_CLASS_NAME(class_name, name) \
865 cls = class_name##_class(); \ 865 cls = class_name##_class(); \
866 cls.set_name(Symbols::name()); \ 866 cls.set_name(Symbols::name()); \
867 867
868 void Object::FinalizeVMIsolate(Isolate* isolate) { 868 void Object::FinalizeVMIsolate(Isolate* isolate) {
(...skipping 19716 matching lines...) Expand 10 before | Expand all | Expand 10 after
20585 return tag_label.ToCString(); 20585 return tag_label.ToCString();
20586 } 20586 }
20587 20587
20588 20588
20589 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 20589 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
20590 Instance::PrintJSONImpl(stream, ref); 20590 Instance::PrintJSONImpl(stream, ref);
20591 } 20591 }
20592 20592
20593 20593
20594 } // namespace dart 20594 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698