| 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/become.h" | 10 #include "vm/become.h" |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 if (counter_ == 0) counter_++; | 1032 if (counter_ == 0) counter_++; |
| 1033 Object::SetCachedHash(obj, counter_); | 1033 Object::SetCachedHash(obj, counter_); |
| 1034 } | 1034 } |
| 1035 } | 1035 } |
| 1036 #endif | 1036 #endif |
| 1037 } | 1037 } |
| 1038 } | 1038 } |
| 1039 | 1039 |
| 1040 private: | 1040 private: |
| 1041 #if defined(HASH_IN_OBJECT_HEADER) | 1041 #if defined(HASH_IN_OBJECT_HEADER) |
| 1042 int counter_; | 1042 int32_t counter_; |
| 1043 #endif | 1043 #endif |
| 1044 }; | 1044 }; |
| 1045 | 1045 |
| 1046 | 1046 |
| 1047 #define SET_CLASS_NAME(class_name, name) \ | 1047 #define SET_CLASS_NAME(class_name, name) \ |
| 1048 cls = class_name##_class(); \ | 1048 cls = class_name##_class(); \ |
| 1049 cls.set_name(Symbols::name()); | 1049 cls.set_name(Symbols::name()); |
| 1050 | 1050 |
| 1051 void Object::FinalizeVMIsolate(Isolate* isolate) { | 1051 void Object::FinalizeVMIsolate(Isolate* isolate) { |
| 1052 // Should only be run by the vm isolate. | 1052 // Should only be run by the vm isolate. |
| (...skipping 22493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23546 return UserTag::null(); | 23546 return UserTag::null(); |
| 23547 } | 23547 } |
| 23548 | 23548 |
| 23549 | 23549 |
| 23550 const char* UserTag::ToCString() const { | 23550 const char* UserTag::ToCString() const { |
| 23551 const String& tag_label = String::Handle(label()); | 23551 const String& tag_label = String::Handle(label()); |
| 23552 return tag_label.ToCString(); | 23552 return tag_label.ToCString(); |
| 23553 } | 23553 } |
| 23554 | 23554 |
| 23555 } // namespace dart | 23555 } // namespace dart |
| OLD | NEW |