| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |